xc
SteelBase.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 //SteelBase.h
29 #ifndef SteelBase_h
30 #define SteelBase_h
31 
32 #include <material/uniaxial/UniaxialMaterial.h>
33 
34 namespace XC {
36 //
39  {
40  protected:
41  /*** Material Properties ***/
42  double fy;
43  double E0;
44  double b;
45  double a1;
46  double a2;
47  double a3;
48  double a4;
49  double ezero;
50 
51  int sendData(Communicator &);
52  int recvData(const Communicator &);
53 
54  virtual int setup_parameters(void)= 0;
55  public:
56  SteelBase(int tag,int classTag,const double &fy,const double &e0,const double &b,const double &a1,const double &a2,const double &a3,const double &a4, const double &initialStrain= 0.0);
57  SteelBase(int tag,int classTag);
58 
59  int setInitialStrain(const double &);
60  int incrementInitialStrain(const double &);
61  void zeroInitialStrain(void);
62  inline double getInitialStrain(void) const
63  { return ezero; }
64  void setInitialTangent(const double &);
65  double getInitialTangent(void) const;
66  void setFy(const double &);
67  double getFy(void) const;
68 
69  double getA1(void) const;
70  void setA1(const double &);
71  double getA2(void) const;
72  void setA2(const double &);
73  double getA3(void) const;
74  void setA3(const double &);
75  double getA4(void) const;
76  void setA4(const double &);
77 
78  inline void setHardeningRatio(const double &d)
79  { b= d; }
80  inline double getHardeningRatio(void) const
81  { return b; }
82  inline double getEsh(void) const
83  { return b*E0; }
84  inline double getEpsy(void) const
85  { return fy/E0; }
86 
87  int revertToStart(void);
88 
89 // AddingSensitivity:BEGIN //////////////////////////////////////////
90  int setParameter(const std::vector<std::string> &argv, Parameter &param);
91  int updateParameter(int parameterID, Information &info);
92 // AddingSensitivity:END ///////////////////////////////////////////
93  };
94 } // end of XC namespace
95 
96 #endif
double getInitialTangent(void) const
Returns initial Young&#39;s modulus.
Definition: SteelBase.cc:70
int revertToStart(void)
Revert the material to its initial state.
Definition: SteelBase.cc:113
Information about an element.
Definition: Information.h:81
Communication parameters between processes.
Definition: Communicator.h:66
double getFy(void) const
Returns yield stress.
Definition: SteelBase.cc:81
double getInitialStrain(void) const
Return the initial strain.
Definition: SteelBase.h:62
double a3
isotropic hardening parameter, increase of tension yield envelope as proportion of yield strength aft...
Definition: SteelBase.h:47
int setInitialStrain(const double &)
Sets initial strain.
Definition: SteelBase.cc:44
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:93
double getA2(void) const
Get second coefficient for isotropic hardening in compression (a2)
Definition: SteelBase.cc:92
double a4
coefficient for isotropic hardening in tension (see a3)
Definition: SteelBase.h:48
SteelBase(int tag, int classTag, const double &fy, const double &e0, const double &b, const double &a1, const double &a2, const double &a3, const double &a4, const double &initialStrain=0.0)
Constructor.
Definition: SteelBase.cc:36
void setA3(const double &)
Set first coefficient for isotropic hardening in tension (a3).
Definition: SteelBase.cc:102
void setA2(const double &)
Set second coefficient for isotropic hardening in compression (a2)
Definition: SteelBase.cc:95
void setA1(const double &)
Set first coefficient for isotropic hardening in compression (a1)
Definition: SteelBase.cc:88
void setA4(const double &)
Set second coefficient for isotropic hardening in tension (a4).
Definition: SteelBase.cc:109
double E0
Initial stiffness.
Definition: SteelBase.h:43
void setInitialTangent(const double &)
Assigns initial Young&#39;s modulus.
Definition: SteelBase.cc:63
double getA3(void) const
Get first coefficient for isotropic hardening in tension (a3).
Definition: SteelBase.cc:99
int updateParameter(int parameterID, Information &info)
Updates the parameter identified by parameterID with info.
Definition: SteelBase.cc:180
double fy
Yield stress.
Definition: SteelBase.h:42
double b
Hardening ratio (b = Esh/E0)
Definition: SteelBase.h:44
double getA4(void) const
Get second coefficient for isotropic hardening in tension (a4).
Definition: SteelBase.cc:106
int setParameter(const std::vector< std::string > &argv, Parameter &param)
Sets the value param to the parameter argv.
Definition: SteelBase.cc:138
int incrementInitialStrain(const double &)
Increments initial strain.
Definition: SteelBase.cc:52
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: SteelBase.cc:120
void setFy(const double &)
Assigns yield stress.
Definition: SteelBase.cc:74
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Base class for steel uniaxial materials.
Definition: SteelBase.h:38
void zeroInitialStrain(void)
Zeroes the initial strain.
Definition: SteelBase.cc:59
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: SteelBase.cc:129
Parameter.
Definition: Parameter.h:68
double a1
increase of compression yield envelope as proportion of yield strength after a plastic strain of a2∗...
Definition: SteelBase.h:45
double getA1(void) const
Get first coefficient for isotropic hardening in compression (a1)
Definition: SteelBase.cc:85
double ezero
Initial strain.
Definition: SteelBase.h:49
double a2
coefficient for isotropic hardening in compression (see a1).
Definition: SteelBase.h:46