xc
steel02_history_variables.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 steel02_history_variables_h
30 #define steel02_history_variables_h
31 
32 namespace XC {
33 
36  {
37  double epsmin;
38  double epsmax;
39  double epspl;
40  double epss0;
41  double sigs0;
42  double epssr;
43  double sigsr;
44  int kon;
45 
47  void setup_parameters(const double &, const double &);
48  void partial_revert_to_last_commit(const steel02_history_variables &);
49  };
50 
51 inline steel02_history_variables::steel02_history_variables(void)
52  : epsmin(0.0), epsmax(0.0), epspl(0.0), epss0(0.0),
53  sigs0(0.0), epssr(0.0), sigsr(0.0), kon(0)
54  {}
55 
56 inline void steel02_history_variables::setup_parameters(const double &E0, const double &fy)
57  {
58  this->epsmax= fy/E0;
59  epsmin= -this->epsmax;
60  this->epspl= 0.0;
61  this->epss0= 0.0;
62  this->sigs0= 0.0;
63  this->epssr= 0.0;
64  this->sigsr= 0.0;
65  }
66 
67 inline void steel02_history_variables::partial_revert_to_last_commit(const steel02_history_variables &hstvP)
68  {
69  this->epsmax= hstvP.epsmax; // XXX = std::max(this->epsmax, hstvP.epsmax) ??
70  this->epsmin= hstvP.epsmin; // XXX = std::min(this->epsmin, hstvP.epsmin) ??
71  this->epspl= hstvP.epspl;
72  this->epss0= hstvP.epss0;
73  this->sigs0= hstvP.sigs0;
74  this->epssr= hstvP.epssr;
75  this->sigsr= hstvP.sigsr;
76  this->kon= hstvP.kon;
77  }
78 
79 } // end of XC namespace
80 
81 #endif
82 
double epsmin
max eps in compression
Definition: steel02_history_variables.h:37
Variables to keep track of the material history.
Definition: steel02_history_variables.h:35
double sigsr
sig at last inversion point
Definition: steel02_history_variables.h:43
double epss0
eps at asymptotes intersection
Definition: steel02_history_variables.h:40
double sigs0
sig at asymptotes intersection
Definition: steel02_history_variables.h:41
double epspl
plastic excursion
Definition: steel02_history_variables.h:39
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
double epssr
eps at last inversion point
Definition: steel02_history_variables.h:42
int kon
index for loading/unloading
Definition: steel02_history_variables.h:44
double epsmax
max eps in tension
Definition: steel02_history_variables.h:38