xc
Steel02.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 ** OpenSees - Open System for Earthquake Engineering Simulation **
30 ** Pacific Earthquake Engineering Research Center **
31 ** **
32 ** **
33 ** (C) Copyright 1999, The Regents of the University of California **
34 ** All Rights Reserved. **
35 ** **
36 ** Commercial use of this program without express permission of the **
37 ** University of California, Berkeley, is strictly prohibited. See **
38 ** file 'COPYRIGHT' in main directory for information on usage and **
39 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
40 ** **
41 ** Developed by: **
42 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
43 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
44 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
45 ** **
46 ** ****************************************************************** */
47 
48 // $Revision: 1.2 $
49 // $Date: 2006/08/03 23:42:19 $
50 // $Source: /usr/local/cvs/OpenSees/SRC/material/uniaxial/Steel02.h,v $
51 
52 // Written: fmk
53 // Created: 03/06
54 //
55 // Description: This file contains the class definition for
56 // Steel02. Steel02 is based on an f2c of the FEDEAS material
57 // Steel02.f which is:
58 //-----------------------------------------------------------------------
59 // MENEGOTTO-PINTO STEEL MODEL WITH FILIPPOU ISOTROPIC HARDENING
60 // written by MOHD YASSIN (1993)
61 // adapted to FEDEAS material library
62 // by E. Spacone, G. Monti and F.C. Filippou (1994)
63 //-----------------------------------------------------------------------
64 
65 
66 #ifndef Steel02_h
67 #define Steel02_h
68 
69 #include "material/uniaxial/steel/SteelBase.h"
70 
71 namespace XC {
73 //
76 class Steel02: public SteelBase
77  {
78  private:
79  double sigini;
80  // matpar : STEEL FIXED PROPERTIES
81  double R0;
82  double cR1;
83  double cR2;
84  // hstvP : STEEL HISTORY VARIABLES
85  double epsminP;
86  double epsmaxP;
87  double epsplP;
88  double epss0P;
89  double sigs0P;
90  double epssrP;
91  double sigsrP;
92  int konP;
93  // hstv : STEEL HISTORY VARIABLES
94  double epsP;
95  double sigP;
96  double eP;
97 
98  double epsmin;
99  double epsmax;
100  double epspl;
101  double epss0;
102  double sigs0;
103  double epsr;
104  double sigr;
105  int kon;
106  double sig;
107  double e;
108  double eps;
109  protected:
110  int setup_parameters(void);
111  DbTagData &getDbTagData(void) const;
112  int sendData(Communicator &);
113  int recvData(const Communicator &);
114 
115  public:
116  Steel02(int tag= 0);
117  Steel02(int tag, double fy, double E0, double b,
118  double R0, double cR1, double cR2,
119  double a1, double a2, double a3, double a4, const double &sigInit =0.0, const double &epsInit= 0.0);
120  Steel02(int tag, double fy, double E0, double b,double R0, double cR1, double cR2);
121  // Constructor for no isotropic hardening
122  // Also provides default values for R0, cR1, and cR2
123  Steel02(int tag, double fy, double E0, double b);
124 
125  UniaxialMaterial *getCopy(void) const;
126 
127  int setTrialStrain(double strain, double strainRate = 0.0);
128  double getStrain(void) const;
129  double getStress(void) const;
130  double getTangent(void) const;
131 
132  int commitState(void);
133  int revertToLastCommit(void);
134  int revertToStart(void);
135 
136  int setInitialStrain(const double &);
137  int incrementInitialStrain(const double &);
138  void zeroInitialStrain(void);
139  void setInitialStress(const double &);
140  inline double getInitialStress(void) const
141  { return sigini; }
142 
143  double getR0(void) const;
144  void setR0(const double &d= 15);
145  double getCR1(void) const;
146  void setCR1(const double &d= 0.925);
147  double getCR2(void) const;
148  void setCR2(const double &d= 0.15);
149  void setParams(const std::vector<double> &);
150  void setParamsPy(const boost::python::list &);
151 
152 
153  int sendSelf(Communicator &);
154  int recvSelf(const Communicator &);
155 // AddingSensitivity:BEGIN //////////////////////////////////////////
156  int setParameter(const std::vector<std::string> &argv, Parameter &param);
157  int updateParameter(int parameterID, Information &info);
158 // AddingSensitivity:END ///////////////////////////////////////////
159 
160  void Print(std::ostream &s, int flag =0) const;
161  };
162 } // end of XC namespace
163 
164 #endif
165 
Uniaxial material for steel.
Definition: Steel02.h:76
void setCR1(const double &d=0.925)
Set second parameter that controls the transition from elastic to plastic branches.
Definition: Steel02.cpp:131
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: Steel02.cpp:416
int revertToStart(void)
Revert the material to its initial state.
Definition: Steel02.cpp:387
Information about an element.
Definition: Information.h:81
Communication parameters between processes.
Definition: Communicator.h:66
void setInitialStress(const double &)
Sets the initial stress value.
Definition: Steel02.cpp:186
DbTagData & getDbTagData(void) const
Returns a vector to store the dbTags of the class members.
Definition: Steel02.cpp:397
int setParameter(const std::vector< std::string > &argv, Parameter &param)
Sets the value param to the parameter argv.
Definition: Steel02.cpp:464
int recvSelf(const Communicator &)
Receives object through the communicator argument.
Definition: Steel02.cpp:442
UniaxialMaterial * getCopy(void) const
Virtual constructor.
Definition: Steel02.cpp:192
double a3
isotropic hardening parameter, increase of tension yield envelope as proportion of yield strength aft...
Definition: SteelBase.h:47
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:93
int setInitialStrain(const double &)
Sets initial strain.
Definition: Steel02.cpp:165
Vector that stores the dbTags of the class members.
Definition: DbTagData.h:44
double getTangent(void) const
Return tangent stiffness.
Definition: Steel02.cpp:346
double a4
coefficient for isotropic hardening in tension (see a3)
Definition: SteelBase.h:48
Steel02(int tag=0)
Default constructor.
Definition: Steel02.cpp:97
void setCR2(const double &d=0.15)
Set third parameter that controls the transition from elastic to plastic branches.
Definition: Steel02.cpp:138
double getR0(void) const
Get the first parameter that controls the transition from elastic to plastic branches.
Definition: Steel02.cpp:121
double E0
Initial stiffness.
Definition: SteelBase.h:43
int setup_parameters(void)
Sets all history and state variables to initial values.
Definition: Steel02.cpp:73
int sendSelf(Communicator &)
Sends object through the communicator argument.
Definition: Steel02.cpp:428
double fy
Yield stress.
Definition: SteelBase.h:42
double getStress(void) const
Return material stress.
Definition: Steel02.cpp:342
int incrementInitialStrain(const double &)
Increments initial strain.
Definition: Steel02.cpp:174
int revertToLastCommit(void)
Revert the material to its last commited state.
Definition: Steel02.cpp:369
double b
Hardening ratio (b = Esh/E0)
Definition: SteelBase.h:44
void setParamsPy(const boost::python::list &)
Set coefficients for isotropic hardening [a1, a2, a3, a4].
Definition: Steel02.cpp:153
void setR0(const double &d=15)
Set the first parameter that controls the transition from elastic to plastic branches.
Definition: Steel02.cpp:124
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: Steel02.cpp:404
void setParams(const std::vector< double > &)
Set coefficients for isotropic hardening [a1, a2, a3, a4].
Definition: Steel02.cpp:142
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: Steel02.cpp:182
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: Steel02.cpp:460
double getStrain(void) const
Return material strain.
Definition: Steel02.cpp:338
int commitState(void)
Commit material state.
Definition: Steel02.cpp:350
Parameter.
Definition: Parameter.h:68
int setTrialStrain(double strain, double strainRate=0.0)
Sets the value of the trial strain.
Definition: Steel02.cpp:195
double a1
increase of compression yield envelope as proportion of yield strength after a plastic strain of a2∗...
Definition: SteelBase.h:45
double getCR1(void) const
Get second parameter that controls the transition from elastic to plastic branches.
Definition: Steel02.cpp:128
int updateParameter(int parameterID, Information &info)
Updates the parameter identified by parameterID with info.
Definition: Steel02.cpp:474
double getCR2(void) const
Get third parameter that controls the transition from elastic to plastic branches.
Definition: Steel02.cpp:135
double a2
coefficient for isotropic hardening in compression (see a1).
Definition: SteelBase.h:46