xc
BeamStrainLoad.h
1 // -*-c++-*-
2 //----------------------------------------------------------------------------
3 // XC program; finite element analysis code
4 // for structural analysis and design.
5 //
6 // Copyright (C) Luis C. Pérez Tato
7 //
8 // This program derives from OpenSees <http://opensees.berkeley.edu>
9 // developed by the «Pacific earthquake engineering research center».
10 //
11 // Except for the restrictions that may arise from the copyright
12 // of the original program (see copyright_opensees.txt)
13 // XC is free software: you can redistribute it and/or modify
14 // it under the terms of the GNU General Public License as published by
15 // the Free Software Foundation, either version 3 of the License, or
16 // (at your option) any later version.
17 //
18 // This software is distributed in the hope that it will be useful, but
19 // WITHOUT ANY WARRANTY; without even the implied warranty of
20 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 // GNU General Public License for more details.
22 //
23 //
24 // You should have received a copy of the GNU General Public License
25 // along with this program.
26 // If not, see <http://www.gnu.org/licenses/>.
27 //----------------------------------------------------------------------------
28 //BeamStrainLoad.h
29 
30 #ifndef BeamStrainLoad_h
31 #define BeamStrainLoad_h
32 
33 
34 #include <domain/load/beam_loads/BeamLoad.h>
35 #include "material/section/interaction_diagram/DeformationPlane.h"
36 
37 namespace XC {
38 class Matrix;
39 class CrossSectionProperties2d;
40 class CrossSectionProperties3d;
41 
43 //
45 class BeamStrainLoad: public BeamLoad
46  {
47  DeformationPlane backEndDeformationsPlane;
48  DeformationPlane frontEndDeformationPlane;
49  protected:
50  int sendData(Communicator &comm);
51  int recvData(const Communicator &comm);
52 
53  public:
54  BeamStrainLoad(int tag, const ID &theElementTags);
55  BeamStrainLoad(int tag= 0);
56 
57  inline const DeformationPlane &getDeformationPlane1(void) const
58  { return backEndDeformationsPlane; }
59  inline void setDeformationPlane1(const DeformationPlane &p)
60  { backEndDeformationsPlane= p; }
61  inline const DeformationPlane &getDeformationPlane2(void) const
62  { return frontEndDeformationPlane; }
63  inline void setDeformationPlane2(const DeformationPlane &p)
64  { frontEndDeformationPlane= p; }
65  const Vector &getSection1Deformation(const size_t &order,const ResponseId &code) const;
66  const Vector &getSection2Deformation(const size_t &order,const ResponseId &code) const;
67  const Vector &getData(int &type, const double &loadFactor) const;
68 
69  int sendSelf(Communicator &);
70  int recvSelf(const Communicator &);
71 
72  //void Print(std::ostream &s, int flag =0) const;
73 
74  };
75 } // end of XC namespace
76 
77 #endif
78 
Float vector abstraction.
Definition: Vector.h:94
int sendData(Communicator &comm)
Send data through the communicator argument.
Definition: BeamStrainLoad.cc:52
Communication parameters between processes.
Definition: Communicator.h:66
Vector of integers.
Definition: ID.h:95
int recvSelf(const Communicator &)
Receive the object.
Definition: BeamStrainLoad.cc:80
Deformation plane for a cross-section.
Definition: DeformationPlane.h:54
Load over beam elements.
Definition: BeamLoad.h:43
int sendSelf(Communicator &)
Send the object.
Definition: BeamStrainLoad.cc:69
Stiffness material contribution response identifiers.
Definition: ResponseId.h:61
Load due to restricted material expansion or contraction on beam elements.
Definition: BeamStrainLoad.h:45
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
int recvData(const Communicator &comm)
Receive data through the communicator argument.
Definition: BeamStrainLoad.cc:61