xc
TDConcreteBase.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 
49 #ifndef TDConcreteBase_h
50 #define TDConcreteBase_h
51 
52 #include "material/uniaxial/concrete/RawConcrete.h"
53 
54 namespace XC {
55 
57  {
58  protected:
59  // matpar : Concrete FIXED PROPERTIES
60  // double fcT; // Time Dependent Strength
61  double ft;
62  // double ftT; //Time dependent strength (tension)
63  double Ets;
64  double Ec; //Concrete stiffness, Added by AMK
65  // double EcT; //Time dependent stiffness
66  double age;
67  //double sigCr; //!< stress that creep curve is based on
68  double beta;
69  double tcast;
70 
71  // hstvP : Concerete HISTORY VARIABLES last committed step
72  double ecminP;
73  double ecmaxP;
74  double deptP;
75  double epsP;
76  double sigP;
77  double eP;
78 
79  // hstv : Concerete HISTORY VARIABLES current step
80  double ecmin;
81  double ecmax;
82  double dept;
83  double sig;
84  double e;
85  double eps;
86 
87  //Added by AMK:
88  int count;
89  double epsInit;
90  double sigInit;
91  double eps_T;
92  double eps_m;
93  double epsP_m;
94  double eps_total;
95  double epsP_total;
96  double e_total;
97  double eP_total;
98  double t; //Time
99  double t_load; //loaded time
100  double Et;
101  int crack_flag;
102  int crackP_flag;
103  int iter; //Iteration number
104 
105  std::vector<float> E_i;
106  std::vector<float> DSIG_i;
107  std::vector<float> dsig_i;
108  std::vector<float> TIME_i; //Time from the previous time step
109  std::vector<float> DTIME_i;
110 
111  static int creepControl;
112  static double creepDt;
113 
114  void Compr_Envlp (double epsc, double &sigc, double &Ect);
115  protected:
116  int sendData(Communicator &);
117  int recvData(const Communicator &);
118  size_t resize(void);
119 
120  public:
121  TDConcreteBase(int tag, int classTag);
122  TDConcreteBase(int tag, int classTag, double _fc, double _ft, double _Ec, double _beta, double _age, double _tcast);
123  void setup_parameters(void);
124 
125  double getInitialTangent(void) const;
126 
127  double getCurrentTime(void) const; //Added by AMK
128  double getStrain(void) const;
129  double getStress(void) const;
130  double getTangent(void) const;
131  double getMech(void) const; //Added by AMK
132  void setFt(const double &);
133  double getFt(void) const;
134  void setEc(const double &);
135  double getEc(void) const;
136  void setEt(const double &);
137  double getEt(void) const;
138  void setBeta(const double &);
139  double getBeta(void) const;
140  void setAge(const double &);
141  double getAge(void) const;
142  void setTCast(const double &);
143  double getTCast(void) const;
144 
145  int sendSelf(Communicator &);
146  int recvSelf(const Communicator &);
147 
148  void Print(std::ostream &s, int flag =0) const;
149 
150  int getVariable(const std::string &variable, Information &) const;
151 
152 
153  //Added by AMK for recording Creep and Mechanical Strain:
154  Response *setResponse(const std::vector<std::string> &, Information &);
155 
156  static void setCreepOn(void);
157  static void setCreepOff(void);
158  static void setCreepDt(const double &);
159  static double getCreepDt(void);
160  };
161 
162  inline void set_creep_on(void)
163  { TDConcreteBase::setCreepOn(); }
164  inline void set_creep_off(void)
165  { TDConcreteBase::setCreepOff(); }
166  inline void set_creep_dt(const double &d)
167  { TDConcreteBase::setCreepDt(d); }
168  inline double get_creep_dt(void)
169  { return TDConcreteBase::getCreepDt(); }
170 
171 } // end of XC namespace
172 
173 #endif
174 
void setup_parameters(void)
Sets initial values for the concrete parameters.
Definition: TDConcreteBase.cc:99
double getFt(void) const
Returns concrete tensile strength.
Definition: TDConcreteBase.cc:224
double getStress(void) const
Return the current value of stress.
Definition: TDConcreteBase.cc:195
Definition: TDConcreteBase.h:56
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: TDConcreteBase.cc:328
Information about an element.
Definition: Information.h:81
Communication parameters between processes.
Definition: Communicator.h:66
double ecmaxP
added by AMK
Definition: TDConcreteBase.h:73
void setEc(const double &)
Assigns concrete stiffness.
Definition: TDConcreteBase.cc:228
Base class response objects.
Definition: Response.h:81
int recvSelf(const Communicator &)
Receives object through the communicator argument.
Definition: TDConcreteBase.cc:310
double eP
stiffness modulus at last converged step;
Definition: TDConcreteBase.h:77
double ecminP
hstP(1)
Definition: TDConcreteBase.h:72
double beta
tension softening parameter
Definition: TDConcreteBase.h:68
TDConcreteBase(int tag, int classTag)
Constructor.
Definition: TDConcreteBase.cc:157
void setBeta(const double &)
Assigns beta.
Definition: TDConcreteBase.cc:244
double ft
concrete tensile strength : mp(6)
Definition: TDConcreteBase.h:61
double getEt(void) const
Returns current concrete stiffness.
Definition: TDConcreteBase.cc:240
int sendSelf(Communicator &)
Sends object through the communicator argument.
Definition: TDConcreteBase.cc:296
void setEt(const double &)
Assign current concrete stiffness.
Definition: TDConcreteBase.cc:236
Base class for concrete materials.
Definition: RawConcrete.h:42
double Ets
tension stiffening slope : mp(7)
Definition: TDConcreteBase.h:63
double getTangent(void) const
Return the current value of the tangent for the trial strain.
Definition: TDConcreteBase.cc:200
double getEc(void) const
Returns concrete stiffness.
Definition: TDConcreteBase.cc:232
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: TDConcreteBase.cc:281
double deptP
hstP(2)
Definition: TDConcreteBase.h:74
double ecmax
added by AMK
Definition: TDConcreteBase.h:81
void setTCast(const double &)
Assign tcast.
Definition: TDConcreteBase.cc:260
static int creepControl
Controls creep calculation (see setTrialStrain).
Definition: TDConcreteBase.h:111
double age
concrete age at first loading, Added by AMK
Definition: TDConcreteBase.h:66
double epsP
= strain at previous converged step
Definition: TDConcreteBase.h:75
double tcast
the analysis time corresponding to concrete casting in days
Definition: TDConcreteBase.h:69
double sigP
= stress at previous converged step
Definition: TDConcreteBase.h:76
double getBeta(void) const
Returns beta.
Definition: TDConcreteBase.cc:248
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
void setFt(const double &)
Assigns concrete tensile strength.
Definition: TDConcreteBase.cc:211
void setAge(const double &)
Assigns age.
Definition: TDConcreteBase.cc:252
double getAge(void) const
Returns age.
Definition: TDConcreteBase.cc:256
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: TDConcreteBase.cc:289
double getTCast(void) const
Return tcast.
Definition: TDConcreteBase.cc:264