XC Open source finite element analysis program
BeamStrainLoad.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 //BeamStrainLoad.h
28 
29 #ifndef BeamStrainLoad_h
30 #define BeamStrainLoad_h
31 
32 
33 #include <domain/load/beam_loads/BeamLoad.h>
34 #include "material/section/interaction_diagram/DeformationPlane.h"
35 
36 namespace XC {
37 class Matrix;
38 class CrossSectionProperties2d;
39 class CrossSectionProperties3d;
40 
42 //
44 class BeamStrainLoad : public BeamLoad
45  {
46  DeformationPlane planoDefDorsal;
47  DeformationPlane planoDefFrontal;
48  protected:
49  int sendData(CommParameters &cp);
50  int recvData(const CommParameters &cp);
51 
52  public:
53  BeamStrainLoad(int tag, const ID &theElementTags);
54  BeamStrainLoad(int tag= 0);
55 
56  inline const DeformationPlane &getDeformationPlane1(void) const
57  { return planoDefDorsal; }
58  inline void setDeformationPlane1(const DeformationPlane &p)
59  { planoDefDorsal= p; }
60  inline const DeformationPlane &getDeformationPlane2(void) const
61  { return planoDefFrontal; }
62  inline void setDeformationPlane2(const DeformationPlane &p)
63  { planoDefFrontal= p; }
64  const Vector &getSection1Deformation(const size_t &order,const ResponseId &code) const;
65  const Vector &getSection2Deformation(const size_t &order,const ResponseId &code) const;
66 
67  int sendSelf(CommParameters &);
68  int recvSelf(const CommParameters &);
69 
70  void Print(std::ostream &s, int flag =0) const;
71 
72  };
73 } // end of XC namespace
74 
75 #endif
76 
int recvData(const CommParameters &cp)
Receive data through the channel being passed as parameter.
Definition: BeamStrainLoad.cc:52
Definition: Vector.h:82
Load due to restricted material expansion or contraction on beam elements.
Definition: BeamStrainLoad.h:44
Stiffness material contribution response identifiers.
Definition: ResponseId.h:60
Load over beam elements.
Definition: BeamLoad.h:42
Definition: ID.h:77
Deformation plane for a cross-section.
Definition: DeformationPlane.h:53
int sendData(CommParameters &cp)
Send data through the channel being passed as parameter.
Definition: BeamStrainLoad.cc:43
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34