xc
SteelBase0103.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 
29 #ifndef SteelBase0103_h
30 #define SteelBase0103_h
31 
32 #include "material/uniaxial/steel/SteelBase.h"
33 
34 
35 namespace XC {
36 
37 // Default values for isotropic hardening parameters a1, a2, a3, and a4
38 const double STEEL_0103_DEFAULT_A1= 0.0;
39 const double STEEL_0103_DEFAULT_A2= 55.0;
40 const double STEEL_0103_DEFAULT_A3= 0.0;
41 const double STEEL_0103_DEFAULT_A4= 55.0;
42 
44 //
46 class SteelBase0103: public SteelBase
47  {
48  protected:
49  /*** CONVERGED History Variables ***/
50  double CminStrain;
51  double CmaxStrain;
52  double CshiftP;
53  double CshiftN;
54  int Cloading;
55  // 1 = loading (positive strain increment)
56  // -1 = unloading (negative strain increment)
57  // 0 initially
58 
59  /*** CONVERGED State Variables ***/
60  double Cstrain;
61  double Cstress;
62  double Ctangent;
63 
64  /*** TRIAL State Variables ***/
65  double Tstrain;
66  double Tstress;
67  double Ttangent; // Not really a state variable, but declared here
68  // for convenience
69 
70  /*** TRIAL History Variables ***/
71  double TminStrain;
72  double TmaxStrain;
73  double TshiftP;
74  double TshiftN;
75  int Tloading;
76 
77  double Energy;
78 
79  virtual void determineTrialState(double dStrain)= 0;
80  virtual double get_total_strain(void) const
81  { return Tstrain-ezero; }
82 
83  protected:
84  int sendData(Communicator &);
85  int recvData(const Communicator &);
86 
87  virtual int setup_parameters(void);
88  public:
89  SteelBase0103(int tag, int classTag, double fy, double E0, double b,
90  double a1 = STEEL_0103_DEFAULT_A1, double a2 = STEEL_0103_DEFAULT_A2,
91  double a3 = STEEL_0103_DEFAULT_A3, double a4 = STEEL_0103_DEFAULT_A4);
92  SteelBase0103(int tag, int classTag);
93  SteelBase0103(int classTag);
94 
95  int setTrialStrain(double strain, double strainRate = 0.0);
96  int setTrial(double strain, double &stress, double &tangent, double strainRate = 0.0);
97  double getStrain(void) const;
98  double getStress(void) const;
99  double getTangent(void) const;
100 
101  inline virtual double getEnergy()
102  { return Energy; }
103 
104  int commitState(void);
105  int revertToLastCommit(void);
106  int revertToStart(void);
107 
108  void Print(std::ostream &s, int flag =0) const;
109  };
110 } // end of XC namespace
111 
112 #endif
double Energy
Energy stored in the material.
Definition: SteelBase0103.h:77
virtual double getEnergy()
Return the energy stored in the material.
Definition: SteelBase0103.h:101
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: SteelBase0103.cc:186
Communication parameters between processes.
Definition: Communicator.h:66
double a3
isotropic hardening parameter, increase of tension yield envelope as proportion of yield strength aft...
Definition: SteelBase.h:47
double getTangent(void) const
Return the material tangent stiffness.
Definition: SteelBase0103.cc:126
int revertToStart(void)
Revert the material to its initial state.
Definition: SteelBase0103.cc:166
double a4
coefficient for isotropic hardening in tension (see a3)
Definition: SteelBase.h:48
double CshiftN
Shift in hysteresis loop for negative loading.
Definition: SteelBase0103.h:53
int revertToLastCommit(void)
Reset material to last committed state.
Definition: SteelBase0103.cc:150
double CminStrain
Minimum strain in compression.
Definition: SteelBase0103.h:50
double CshiftP
Shift in hysteresis loop for positive loading.
Definition: SteelBase0103.h:52
double E0
Initial stiffness.
Definition: SteelBase.h:43
int setTrialStrain(double strain, double strainRate=0.0)
Sets the value of the trial strain.
Definition: SteelBase0103.cc:77
int commitState(void)
Commit the state of the material.
Definition: SteelBase0103.cc:130
Base class for Steel01 and Steel03.
Definition: SteelBase0103.h:46
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: SteelBase0103.cc:175
double fy
Yield stress.
Definition: SteelBase.h:42
double b
Hardening ratio (b = Esh/E0)
Definition: SteelBase.h:44
double getStress(void) const
Return the current value of stress.
Definition: SteelBase0103.cc:122
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Base class for steel uniaxial materials.
Definition: SteelBase.h:38
SteelBase0103(int tag, int classTag, double fy, double E0, double b, double a1=STEEL_0103_DEFAULT_A1, double a2=STEEL_0103_DEFAULT_A2, double a3=STEEL_0103_DEFAULT_A3, double a4=STEEL_0103_DEFAULT_A4)
Constructor.
Definition: SteelBase0103.cc:66
double CmaxStrain
Maximum strain in tension.
Definition: SteelBase0103.h:51
int Cloading
Flag for loading/unloading.
Definition: SteelBase0103.h:54
double a1
increase of compression yield envelope as proportion of yield strength after a plastic strain of a2∗...
Definition: SteelBase.h:45
virtual int setup_parameters(void)
Sets all history and state variables to initial values.
Definition: SteelBase0103.cc:39
double ezero
Initial strain.
Definition: SteelBase.h:49
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: SteelBase0103.cc:197
double a2
coefficient for isotropic hardening in compression (see a1).
Definition: SteelBase.h:46