xc
EPPBaseMaterial.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 //EPPBaseMaterial.h
29 
30 #ifndef EPPBaseMaterial_h
31 #define EPPBaseMaterial_h
32 
33 #include <material/uniaxial/ElasticBaseMaterial.h>
34 
35 namespace XC {
39  {
40  protected:
41  double commitStrain;
42  double trialStress;
43  double trialTangent;
44  int sendData(Communicator &);
45  int recvData(const Communicator &);
46  public:
47  EPPBaseMaterial(int tag, int classtag, double E= 0.0, double e0= 0.0);
48 
49 
50  inline double getStress(void) const
51  { return trialStress; }
52  inline double getTangent(void) const
53  { return trialTangent; }
54  void setTangent(const double &);
55 
56  int commitState(void);
57  int revertToLastCommit(void);
58  int revertToStart(void);
59  };
60 } // end of XC namespace
61 
62 
63 #endif
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: EPPBaseMaterial.cc:74
Communication parameters between processes.
Definition: Communicator.h:66
double E
Elastic modulus.
Definition: ElasticBaseMaterial.h:45
double trialTangent
current trial tangent
Definition: EPPBaseMaterial.h:43
double getTangent(void) const
Return the current value of the tangent for the trial strain.
Definition: EPPBaseMaterial.h:52
double commitStrain
plastic strain at last commit
Definition: EPPBaseMaterial.h:41
EPPBaseMaterial(int tag, int classtag, double E=0.0, double e0=0.0)
Constructor.
Definition: EPPBaseMaterial.cc:37
int commitState(void)
Commit the state of the material.
Definition: EPPBaseMaterial.cc:43
Base class for elastic perfectly plastic materials.
Definition: EPPBaseMaterial.h:38
void setTangent(const double &)
Set the value of the material tangent modulus.
Definition: EPPBaseMaterial.cc:67
double getStress(void) const
Return the current value of stress.
Definition: EPPBaseMaterial.h:50
int revertToStart(void)
Returns the material to its initial state.
Definition: EPPBaseMaterial.cc:57
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: EPPBaseMaterial.cc:82
int revertToLastCommit(void)
Revert to the last commited state.
Definition: EPPBaseMaterial.cc:50
double trialStress
current trial stress
Definition: EPPBaseMaterial.h:42
Base class for uniaxial elastic materials.
Definition: ElasticBaseMaterial.h:39