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 #include "material/uniaxial/concrete/ConcreteHistoryVars.h"
54 
55 namespace XC {
56 
58  {
59  protected:
60  // matpar : Concrete FIXED PROPERTIES
61  // double fcT; // Time Dependent Strength
62  double ft;
63  // double ftT; //Time dependent strength (tension)
64  double Ets;
65  double Ec; //Concrete stiffness, Added by AMK
66  // double EcT; //Time dependent stiffness
67  //double sigCr; //!< stress that creep curve is based on
68  double beta;
69 
70  // hstvP : Concerete HISTORY VARIABLES last committed step
72 
73  // hstv : Concerete HISTORY VARIABLES current step
75 
76  //Added by AMK:
77  int iter; //Iteration number
78 
79  void Compr_Envlp(double epsc, double &sigc, double &Ect);
80  protected:
81  int sendData(Communicator &);
82  int recvData(const Communicator &);
83  public:
84  TDConcreteBase(int tag, int classTag);
85  TDConcreteBase(int tag, int classTag, double _fc, double _ft, double _Ets, double _Ec, double _beta);
86  void setup_parameters(void);
87 
88  double getInitialTangent(void) const;
89 
90  bool needsUpdate(void) const;
91 
92  double getCurrentTime(void) const; //Added by AMK
93  double getStress(void) const;
94  double getTangent(void) const;
95  void setFt(const double &);
96  double getFt(void) const;
97  void setEts(const double &);
98  double getEts(void) const;
99  void setEc(const double &);
100  double getEc(void) const;
101  void setBeta(const double &);
102  double getBeta(void) const;
103 
105  virtual void setEt(const double &)= 0;
107  virtual double getEt(void) const= 0;
108 
110  virtual void setAge(const double &)= 0;
112  virtual double getAge(void) const= 0;
113 
115  virtual void setTCast(const double &)= 0;
117  virtual double getTCast(void) const= 0;
118 
119  int sendSelf(Communicator &);
120  int recvSelf(const Communicator &);
121 
122  void Print(std::ostream &s, int flag =0) const;
123 
124  int getVariable(const std::string &variable, Information &) const;
125 
126 
127  //Added by AMK for recording Creep and Mechanical Strain:
128  Response *setResponse(const std::vector<std::string> &, Information &);
129 
130  };
131 
132 } // end of XC namespace
133 
134 #endif
135 
void setup_parameters(void)
Sets initial values for the concrete parameters.
Definition: TDConcreteBase.cc:97
double getFt(void) const
Returns concrete tensile strength.
Definition: TDConcreteBase.cc:196
double getStress(void) const
Return the current value of stress.
Definition: TDConcreteBase.cc:155
Definition: TDConcreteBase.h:57
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: TDConcreteBase.cc:272
Information about an element.
Definition: Information.h:81
Communication parameters between processes.
Definition: Communicator.h:66
void setEc(const double &)
Assigns concrete stiffness.
Definition: TDConcreteBase.cc:200
Base class response objects.
Definition: Response.h:81
int recvSelf(const Communicator &)
Receives object through the communicator argument.
Definition: TDConcreteBase.cc:250
virtual double getAge(void) const =0
Return the concrete age at first loading.
double beta
tension softening parameter.
Definition: TDConcreteBase.h:68
TDConcreteBase(int tag, int classTag)
Constructor.
Definition: TDConcreteBase.cc:114
CreepConcreteHistoryVars hstv
= values at current step (trial values)
Definition: TDConcreteBase.h:74
void setBeta(const double &)
Assigns beta.
Definition: TDConcreteBase.cc:208
double ft
concrete tensile strength : mp(6)
Definition: TDConcreteBase.h:62
CreepConcreteHistoryVars hstvP
= values at previous converged step
Definition: TDConcreteBase.h:71
virtual void setAge(const double &)=0
Assign the concrete age at first loading.
int sendSelf(Communicator &)
Sends object through the communicator argument.
Definition: TDConcreteBase.cc:234
double getEts(void) const
Returns the tension softening stiffness (absolute value) (slope of the linear tension softening branc...
Definition: TDConcreteBase.cc:192
virtual void setTCast(const double &)=0
Assign the analysis time corresponding to concrete casting in days.
Base class for concrete materials.
Definition: RawConcrete.h:42
Definition: ConcreteHistoryVars.h:102
double Ets
tension stiffening slope : mp(7)
Definition: TDConcreteBase.h:64
double getTangent(void) const
Return the current value of the tangent for the trial strain.
Definition: TDConcreteBase.cc:160
double getEc(void) const
Returns concrete stiffness.
Definition: TDConcreteBase.cc:204
bool needsUpdate(void) const
Return true if the material needs to update its internal state even if the trial strains have not cha...
Definition: TDConcreteBase.cc:137
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: TDConcreteBase.cc:216
virtual double getTCast(void) const =0
Return the analysis time corresponding to concrete casting in days.
void setEts(const double &)
Set the tension softening stiffness (absolute value) (slope of the linear tension softening branch)...
Definition: TDConcreteBase.cc:179
virtual void setEt(const double &)=0
Assign current concrete stiffness.
double getBeta(void) const
Returns beta.
Definition: TDConcreteBase.cc:212
virtual double getEt(void) const =0
Returns current concrete stiffness.
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
void setFt(const double &)
Assigns concrete tensile strength.
Definition: TDConcreteBase.cc:166
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: TDConcreteBase.cc:225