xc
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 backEndDeformationsPlane;
47  DeformationPlane frontEndDeformationPlane;
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 backEndDeformationsPlane; }
58  inline void setDeformationPlane1(const DeformationPlane &p)
59  { backEndDeformationsPlane= p; }
60  inline const DeformationPlane &getDeformationPlane2(void) const
61  { return frontEndDeformationPlane; }
62  inline void setDeformationPlane2(const DeformationPlane &p)
63  { frontEndDeformationPlane= 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  const Vector &getData(int &type, const double &loadFactor) const;
67 
68  int sendSelf(CommParameters &);
69  int recvSelf(const CommParameters &);
70 
71  void Print(std::ostream &s, int flag =0) const;
72 
73  };
74 } // end of XC namespace
75 
76 #endif
77 
int sendSelf(CommParameters &)
Send the object.
Definition: BeamStrainLoad.cc:69
Float vector abstraction.
Definition: Vector.h:93
int sendData(CommParameters &cp)
Send data through the channel being passed as parameter.
Definition: BeamStrainLoad.cc:52
int recvData(const CommParameters &cp)
Receive data through the channel being passed as parameter.
Definition: BeamStrainLoad.cc:61
Vector of integers.
Definition: ID.h:93
Deformation plane for a cross-section.
Definition: DeformationPlane.h:53
Load over beam elements.
Definition: BeamLoad.h:42
Stiffness material contribution response identifiers.
Definition: ResponseId.h:60
Load due to restricted material expansion or contraction on beam elements.
Definition: BeamStrainLoad.h:44
int recvSelf(const CommParameters &)
Receive the object.
Definition: BeamStrainLoad.cc:80
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
Communication parameters between processes.
Definition: CommParameters.h:65