XC Open source finite element analysis program
BeamColumnWithSectionFD.h
1 //----------------------------------------------------------------------------
2 // XC program; finite element analysis code
3 // for structural analysis and design.
4 //
5 // Copyright (C) Luis Claudio Pérez Tato
6 //
7 // This program derives from OpenSees <http://opensees.berkeley.edu>
8 // developed by the «Pacific earthquake engineering research center».
9 //
10 // Except for the restrictions that may arise from the copyright
11 // of the original program (see copyright_opensees.txt)
12 // XC is free software: you can redistribute it and/or modify
13 // it under the terms of the GNU General Public License as published by
14 // the Free Software Foundation, either version 3 of the License, or
15 // (at your option) any later version.
16 //
17 // This software is distributed in the hope that it will be useful, but
18 // WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU General Public License for more details.
21 //
22 //
23 // You should have received a copy of the GNU General Public License
24 // along with this program.
25 // If not, see <http://www.gnu.org/licenses/>.
26 //----------------------------------------------------------------------------
27 //BeamColumnWithSectionFDs.h
28 
29 #ifndef BeamColumnWithSectionFD_h
30 #define BeamColumnWithSectionFD_h
31 
32 #include <domain/mesh/element/Element1D.h>
33 #include "material/section/VectorSeccionesBarraPrismatica.h"
34 #include "SectionMatrices.h"
35 
36 
37 namespace XC {
38 
40 //
43  {
44  protected:
46 
47 
48  SectionMatrices section_matrices;
49 
50  int sendData(CommParameters &cp);
51  int recvData(const CommParameters &cp);
52  public:
53  BeamColumnWithSectionFD(int tag, int classTag,const size_t &numSecc= 1);
54  BeamColumnWithSectionFD(int tag, int classTag,const size_t &numSecc,const Material *m);
55  BeamColumnWithSectionFD(int tag, int classTag,const size_t &numSecc,const SeccionBarraPrismatica *sccModel);
56  BeamColumnWithSectionFD(int tag, int classTag,const size_t &numSecc,const SeccionBarraPrismatica *sccModel,int Nd1,int Nd2);
57 
58  const SeccionBarraPrismatica *getSectionPtr(const size_t &i) const;
59 
60  void setTrialSectionDeformations(const std::vector<Vector> &vs);
61 
62  virtual void setSection(const SeccionBarraPrismatica *sccModel);
63  bool setSections(const std::vector<SeccionBarraPrismatica *> &sectionPtrs);
64  inline size_t getNumSections(void) const
65  { return theSections.size(); }
66  inline VectorSeccionesBarraPrismatica &getSections(void)
67  { return theSections; }
68 
69  Response *setSectionResponse(SeccionBarraPrismatica *,const std::vector<std::string> &,const size_t &,Information &);
70  int setSectionParameter(SeccionBarraPrismatica *,const std::vector<std::string> &,const size_t &, Parameter &);
71 
72  // public methods to set the state of the element
73  int commitState(void);
74  int revertToLastCommit(void);
75  int revertToStart(void);
76 
77  void zeroLoad(void);
78  };
79 
80 } //end of XC namespace
81 #endif
int recvData(const CommParameters &cp)
Receives members through the channel being passed as parameter.
Definition: BeamColumnWithSectionFD.cc:133
Base class for materials.
Definition: Material.h:85
Matrices for each section (used in BeamColumnWithSectionFD)
Definition: SectionMatrices.h:41
const SeccionBarraPrismatica * getSectionPtr(const size_t &i) const
Returns a pointer to the i-th section of the element.
Definition: BeamColumnWithSectionFD.cc:96
VectorSeccionesBarraPrismatica theSections
pointers to the SeccionBarraPrismatica objects
Definition: BeamColumnWithSectionFD.h:45
int commitState(void)
Consuma el estado of the element.
Definition: BeamColumnWithSectionFD.cc:61
Vector of pointers to SeccionBarraPrismaticaes. used to store the sections for each integration point...
Definition: VectorSeccionesBarraPrismatica.h:48
Information about an element.
Definition: Information.h:80
int sendData(CommParameters &cp)
Send members through the channel being passed as parameter.
Definition: BeamColumnWithSectionFD.cc:124
Base class for beam-column cross sections. Constitutive equations of the section. ...
Definition: SeccionBarraPrismatica.h:50
Base class for one-dimensional elements (beam,truss,...)
Definition: Element1D.h:51
void zeroLoad(void)
Zeroes loads on element.
Definition: BeamColumnWithSectionFD.cc:55
Beam-column element with SeccionBarraPrismatica material.
Definition: BeamColumnWithSectionFD.h:42
Definition: Parameter.h:65
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
Definition: Response.h:71