XC Open source finite element analysis program
BaseElasticSection.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 //BaseElasticSection.h
28 
29 #ifndef BaseElasticSection_h
30 #define BaseElasticSection_h
31 
32 #include <material/section/SeccionBarraPrismatica.h>
33 #include <utility/matrix/Vector.h>
34 
35 namespace XC {
36 
38 //
40 //
42 //
45  {
46  protected:
50 
51  int sendData(CommParameters &);
52  int recvData(const CommParameters &);
53 
54 
55  public:
56  BaseElasticSection(int tag,int classTag,const size_t &dim,MaterialLoader *mat_ldr= nullptr);
57 
58  int commitState(void);
59  int revertToLastCommit (void);
60  int revertToStart (void);
61 
62  virtual void sectionGeometry(const std::string &)= 0;
63 
64  int setInitialSectionDeformation(const Vector&);
65  int setTrialSectionDeformation(const Vector&);
66  void zeroInitialSectionDeformation(void)
67  { eInic.Zero(); }
68  inline const Vector &getInitialSectionDeformation(void) const
69  { return eInic; }
70  const Vector &getSectionDeformation(void) const;
71 
72 
73  void Print(std::ostream &s, int flag =0) const;
74  };
75 } // end of XC namespace
76 
77 #endif
Definition: Vector.h:82
Vector eInic
section initial deformations
Definition: BaseElasticSection.h:48
Vector eCommit
section commited deformations
Definition: BaseElasticSection.h:49
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: BaseElasticSection.cc:79
Base class for beam-column cross sections. Constitutive equations of the section. ...
Definition: SeccionBarraPrismatica.h:50
Material handler (definition, searching,...).
Definition: MaterialLoader.h:45
Base class for cross sections with linear elastic material.
Definition: BaseElasticSection.h:44
Communication parameters between processes.
Definition: CommParameters.h:65
Vector eTrial
section trial deformations
Definition: BaseElasticSection.h:47
================================================================================
Definition: ContinuaReprComponent.h:34
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: BaseElasticSection.cc:89
const Vector & getSectionDeformation(void) const
Returns material&#39;s trial deformation.
Definition: BaseElasticSection.cc:71