XC Open source finite element analysis program
ElasticBaseMaterial.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 //ElasticBaseMaterial.h
28 
29 #ifndef ElasticBaseMaterial_h
30 #define ElasticBaseMaterial_h
31 
32 #include <material/uniaxial/UniaxialMaterial.h>
33 
34 namespace XC {
36 //
39  {
40  protected:
41  double trialStrain;
42  double E;
43  double ezero;
44  protected:
45  int sendData(CommParameters &);
46  int recvData(const CommParameters &);
47 
48  inline virtual double def_total(void) const { return trialStrain-ezero; }
49  public:
50  ElasticBaseMaterial(int tag= 0, int classtag= 0, double E= 0.0, double e0= 0.0);
51 
52  inline double getE(void) const
53  {return E;}
54  inline void setE(const double &e)
55  {E= e;}
56 
57  int setInitialStrain(double strain);
58  inline double getStrain(void) const
59  {return trialStrain;}
60  inline double getInitialStrain(void) const
61  {return ezero;}
62  inline double getInitialTangent(void) const
63  {return E;}
64 
65  int sendSelf(CommParameters &);
66  int recvSelf(const CommParameters &);
67 
68 
69  };
70 } // end of XC namespace
71 
72 
73 #endif
ElasticBaseMaterial(int tag=0, int classtag=0, double E=0.0, double e0=0.0)
Constructor.
Definition: ElasticBaseMaterial.cc:35
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: ElasticBaseMaterial.cc:54
double E
Elastic modulus.
Definition: ElasticBaseMaterial.h:42
Base class for uniaxial elastic materials.
Definition: ElasticBaseMaterial.h:38
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: ElasticBaseMaterial.cc:46
double getInitialStrain(void) const
Return the initial strain.
Definition: ElasticBaseMaterial.h:60
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: ElasticBaseMaterial.cc:76
int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: ElasticBaseMaterial.cc:62
int setInitialStrain(double strain)
Establece el valor de la tensión inicial.
Definition: ElasticBaseMaterial.cc:39
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
double ezero
Initial deformation.
Definition: ElasticBaseMaterial.h:43
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:88