XC Open source finite element analysis program
TrussStrainLoad.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 //TrussStrainLoad.h
28 
29 #ifndef TrussStrainLoad_h
30 #define TrussStrainLoad_h
31 
32 #include "domain/load/ElementBodyLoad.h"
33 
34 namespace XC {
36 //
39  {
40  private:
41  double e1;
42  double e2;
43  protected:
44 
45  public:
46  // Constructors based on 2 temperature changes given
47  TrussStrainLoad(int tag, const double &e1, const double &e2, const ID &theElementTags);
48  TrussStrainLoad(int tag, const double &e_uniform, const ID &theElementTags);
49  TrussStrainLoad(int tag, const ID &theElementTags);
50  TrussStrainLoad(int tag);
51  TrussStrainLoad(void);
52 
53  inline const double &E1(void) const
54  { return e1; }
55  inline void setE1(const double &d)
56  { e1= d; }
57  inline const double &E2(void) const
58  { return e2; }
59  inline void setE2(const double &d)
60  { e2= d; }
61 
62  int sendSelf(CommParameters &);
63  int recvSelf(const CommParameters &);
64  void Print(std::ostream &s, int flag =0) const;
65 
66  };
67 } // end of XC namespace
68 
69 #endif
70 
Definition: ID.h:77
Base class for body loads over elements.
Definition: ElementBodyLoad.h:43
Load due to restricted material expansion or contraction on truss elements.
Definition: TrussStrainLoad.h:38
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34