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 #include "material/uniaxial/steel/steel02_state_variables.h"
71 #include "material/uniaxial/steel/steel02_history_variables.h"
72 
73 namespace XC {
75 //
78 class Steel02: public SteelBase
79  {
80  private:
81  double sigini;
82  // matpar : STEEL FIXED PROPERTIES
83  double R0;
84  double cR1;
85  double cR2;
86  // hstvP : STEEL HISTORY VARIABLES
88  // hstv : STEEL HISTORY VARIABLES
90 
92 
94 
95  protected:
96  int setup_parameters(void);
97  DbTagData &getDbTagData(void) const;
98  int sendData(Communicator &);
99  int recvData(const Communicator &);
100 
101  public:
102  Steel02(int tag= 0);
103  Steel02(int tag, double fy, double E0, double b,
104  double R0, double cR1, double cR2,
105  double a1, double a2, double a3, double a4, const double &sigInit =0.0, const double &epsInit= 0.0);
106  Steel02(int tag, double fy, double E0, double b,double R0, double cR1, double cR2);
107  // Constructor for no isotropic hardening
108  // Also provides default values for R0, cR1, and cR2
109  Steel02(int tag, double fy, double E0, double b);
110 
111  UniaxialMaterial *getCopy(void) const;
112 
113  int setTrialStrain(double strain, double strainRate = 0.0);
114  double getStrain(void) const;
115  double getStress(void) const;
116  double getTangent(void) const;
117 
118  int commitState(void);
119  int revertToLastCommit(void);
120  int revertToStart(void);
121 
122  int setInitialStrain(const double &);
123  int incrementInitialStrain(const double &);
124  void zeroInitialStrain(void);
125  void setInitialStress(const double &);
126  inline double getInitialStress(void) const
127  { return sigini; }
128 
129  double getR0(void) const;
130  void setR0(const double &d= 15);
131  double getCR1(void) const;
132  void setCR1(const double &d= 0.925);
133  double getCR2(void) const;
134  void setCR2(const double &d= 0.15);
135  void setParams(const std::vector<double> &);
136  void setParamsPy(const boost::python::list &);
137 
138 
139  int sendSelf(Communicator &);
140  int recvSelf(const Communicator &);
141 // AddingSensitivity:BEGIN //////////////////////////////////////////
142  int setParameter(const std::vector<std::string> &argv, Parameter &param);
143  int updateParameter(int parameterID, Information &info);
144 // AddingSensitivity:END ///////////////////////////////////////////
145 
146  void Print(std::ostream &s, int flag =0) const;
147  };
148 } // end of XC namespace
149 
150 #endif
151 
Uniaxial material for steel.
Definition: Steel02.h:78
void setCR1(const double &d=0.925)
Set second parameter that controls the transition from elastic to plastic branches.
Definition: Steel02.cpp:118
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: Steel02.cpp:378
int revertToStart(void)
Revert the material to its initial state.
Definition: Steel02.cpp:349
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:173
DbTagData & getDbTagData(void) const
Returns a vector to store the dbTags of the class members.
Definition: Steel02.cpp:359
int setParameter(const std::vector< std::string > &argv, Parameter &param)
Sets the value param to the parameter argv.
Definition: Steel02.cpp:426
int recvSelf(const Communicator &)
Receives object through the communicator argument.
Definition: Steel02.cpp:404
UniaxialMaterial * getCopy(void) const
Virtual constructor.
Definition: Steel02.cpp:179
Variables to keep track of the material history.
Definition: steel02_history_variables.h:35
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:152
Vector that stores the dbTags of the class members.
Definition: DbTagData.h:44
double getTangent(void) const
Return tangent stiffness.
Definition: Steel02.cpp:326
double a4
coefficient for isotropic hardening in tension (see a3)
Definition: SteelBase.h:48
Steel02(int tag=0)
Default constructor.
Definition: Steel02.cpp:84
void setCR2(const double &d=0.15)
Set third parameter that controls the transition from elastic to plastic branches.
Definition: Steel02.cpp:125
double getR0(void) const
Get the first parameter that controls the transition from elastic to plastic branches.
Definition: Steel02.cpp:108
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
Variables to keep track of the material state.
Definition: steel02_state_variables.h:35
int sendSelf(Communicator &)
Sends object through the communicator argument.
Definition: Steel02.cpp:390
double fy
Yield stress.
Definition: SteelBase.h:42
double getStress(void) const
Return material stress.
Definition: Steel02.cpp:322
int incrementInitialStrain(const double &)
Increments initial strain.
Definition: Steel02.cpp:161
int revertToLastCommit(void)
Revert the material to its last commited state.
Definition: Steel02.cpp:340
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:140
void setR0(const double &d=15)
Set the first parameter that controls the transition from elastic to plastic branches.
Definition: Steel02.cpp:111
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: Steel02.cpp:366
void setParams(const std::vector< double > &)
Set coefficients for isotropic hardening [a1, a2, a3, a4].
Definition: Steel02.cpp:129
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:169
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: Steel02.cpp:422
double getStrain(void) const
Return material strain.
Definition: Steel02.cpp:318
int commitState(void)
Commit material state.
Definition: Steel02.cpp:330
Parameter.
Definition: Parameter.h:68
int setTrialStrain(double strain, double strainRate=0.0)
Sets the value of the trial strain.
Definition: Steel02.cpp:182
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:115
int updateParameter(int parameterID, Information &info)
Updates the parameter identified by parameterID with info.
Definition: Steel02.cpp:436
double getCR2(void) const
Get third parameter that controls the transition from elastic to plastic branches.
Definition: Steel02.cpp:122
double a2
coefficient for isotropic hardening in compression (see a1).
Definition: SteelBase.h:46