xc
TDConcrete.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  // Developed by:
50  // Adam M. Knaack (adam.knaack@schaefer-inc.com)
51  // Schaefer-Inc, Cincinnati, Ohio, USA
52  // Nikola D. Tosic (ntosic@imk.grf.bg.ac.rs)
53  // Department for Materials and Structure, Faculty of Civil Engineering, University of Belgrade, Serbia
54  // Yahya C. Kurama (ykurama@nd.edu)
55  // Department of Civil and Environmental Engineering and Earth Sciences, College of Engineering, University of Notre Dame, Notre Dame, Indiana, USA
56  //----------------------------------------------------------------------------------------------------------------------------
57 
58  //----------------------------------------------------------------------------------------------------------------------------
59  // Created: 2012
60  // Last updated: 2019
61  //----------------------------------------------------------------------------------------------------------------------------
62 
63  //----------------------------------------------------------------------------------------------------------------------------
64  // Description: This file contains the source code of TDConcrete.
65  // TDConcrete is a time-dependent concrete material model that calculates
66  // creep and shrinkage strains.
67  /*-------------------------------
68  ! Concrete Compression - Linear
69  ! Concrete Tension - Tamai, S., Shima, H., Izumo, J., Okamura, H. 1988. Average Stress-Strain Relationship in Post Yield Range of Steel Bar in Concrete, Concrete Library of JSCE, No. 11, 117-129.
70  ! Concrete Creep - Linear superposition of creep coefficient, ACI 209 time function
71  ! Concrete Shrinkage - ACI 209 time function
72  -------------------------------*/
73  // Detailed descriptions of the model and its implementation can be found in the following:
74  // (1) Knaack, A.M., Kurama, Y.C. 2018. Modeling Time-Dependent Deformations: Application for Reinforced Concrete Beams with
75  // Recycled Concrete Aggregates. ACI Structural J. 115, 175�190. doi:10.14359/51701153
76  // (2) Knaack, A.M., 2013. Sustainable concrete structures using recycled concrete aggregate: short-term and long-term behavior
77  // considering material variability. PhD Dissertation, Civil and Environmental Engineering and Earth Sciences, University of Notre Dame, Notre Dame, Indiana, USA, 680 pp.
78  // A manual describing the use of the model and sample files can be found at:
79  // <https://data.mendeley.com/datasets/z4gxnhchky/3>
80  //----------------------------------------------------------------------------------------------------------------------------
81 
82  //----------------------------------------------------------------------------------------------------------------------------
83  // Disclaimer: This software is provided �as is�, without any warranties, expressed or implied. In no event shall the developers be liable for any claim, damages, or liability arising from or in connection with this software.
84  //----------------------------------------------------------------------------------------------------------------------------
85 
86 
87 #ifndef TDConcrete_h
88 #define TDConcrete_h
89 
90 #include "material/uniaxial/concrete/TDConcreteBase.h"
91 
92 namespace XC {
93 
94 class TDConcrete : public TDConcreteBase
95  {
96  private:
97  // matpar : Concrete FIXED PROPERTIES
98  // double fcT; // Time Dependent Strength
99  double tcr;
100  double epsshu;
101  double epssha;
102  double epscru;
103  double epscra;
104  double epscrd;
105 
106  //Added by AMK:
107  double eps_cr;
108  double eps_sh;
109  double epsP_cr;
110  double epsP_sh;
111  double phi_i;
112 
113  std::vector<float> PHI_i;
114 
115  void Tens_Envlp (double epsc, double &sigc, double &Ect);
116  void Compr_Envlp (double epsc, double &sigc, double &Ect);
117  protected:
118  size_t resize(void);
119  int sendData(Communicator &);
120  int recvData(const Communicator &);
121 
122  public:
123  TDConcrete(int tag= 0);
124  TDConcrete(int tag, double _fc, double _ft, double _Ec, double _beta, double _age, double _epsshu, double _epssha, double _tcr, double _epscru, double _epscra, double _epscrd, double _tcast);
125  virtual ~TDConcrete(void);
126  void setup_parameters(void);
127 
128  UniaxialMaterial *getCopy(void) const;
129 
130  int setTrialStrain(double strain, double strainRate = 0.0);
131  double setCreepStrain(double time, double stress); //Added by AMK
132  double setStress(double strain, double &stiff); //Added by AMK
133  double getPHI_i(void) const; //Added by AMK
134  double getCreep(void) const; //Added by AMK
135  double setPhi(double time, double tp); //Added by AMK
136  double setShrink(double time); //Added by AMK
137  double getShrink(void) const; //Added by AMK
138 
139  void setUltimateShrinkage(const double &);
140  double getUltimateShrinkage(void) const;
141  void setShrinkageParameter(const double &);
142  double getShrinkageParameter(void) const;
143  void setCreepRelationshipAge(const double &);
144  double getCreepRelationshipAge(void) const;
145  void setUltimateConcreteCreep(const double &);
146  double getUltimateConcreteCreep(void) const;
147  void setCreepExponentParameter(const double &);
148  double getCreepExponentParameter(void) const;
149  void setCreepDParameter(const double &);
150  double getCreepDParameter(void) const;
151 
152 
153  int commitState(void);
154  int revertToLastCommit(void);
155  int revertToStart(void);
156 
157  int sendSelf(Communicator &);
158  int recvSelf(const Communicator &);
159 
160  void Print(std::ostream &s, int flag =0) const;
161 
162  int getVariable(const std::string &variable, Information &) const;
163 
164 
165  //Added by AMK for recording Creep and Mechanical Strain:
166  Response *setResponse(const std::vector<std::string> &, Information &);
167  int getResponse(int responseID, Information &matInformation);
168 
169  };
170 
171 } // end of XC namespace
172 
173 #endif
174 
void setCreepRelationshipAge(const double &)
Assigns creep relationship age.
Definition: TDConcrete.cpp:351
double getCreepExponentParameter(void) const
Return creep exponent parameter.
Definition: TDConcrete.cpp:371
Definition: TDConcrete.h:94
Definition: TDConcreteBase.h:56
Information about an element.
Definition: Information.h:81
Communication parameters between processes.
Definition: Communicator.h:66
Base class response objects.
Definition: Response.h:81
double getCreepRelationshipAge(void) const
Return creep relationship age.
Definition: TDConcrete.cpp:355
UniaxialMaterial * getCopy(void) const
Virtual constructor.
Definition: TDConcrete.cpp:149
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:93
int setTrialStrain(double strain, double strainRate=0.0)
Sets the value of the trial strain.
Definition: TDConcrete.cpp:194
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: TDConcrete.cpp:521
void setup_parameters(void)
Sets initial values for the concrete parameters.
Definition: TDConcrete.cpp:96
void setUltimateShrinkage(const double &)
Assigns ultimate shrinkage.
Definition: TDConcrete.cpp:335
double getCreepDParameter(void) const
Return creep exponent parameter.
Definition: TDConcrete.cpp:379
int recvSelf(const Communicator &)
Receives object through the communicator argument.
Definition: TDConcrete.cpp:542
void setCreepDParameter(const double &)
Assigns creep exponent parameter.
Definition: TDConcrete.cpp:375
double getShrinkageParameter(void) const
Return shrinkage parameter.
Definition: TDConcrete.cpp:347
TDConcrete(int tag=0)
Constructor.
Definition: TDConcrete.cpp:120
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: TDConcrete.cpp:513
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
void setShrinkageParameter(const double &)
Assigns shrinkage parameter.
Definition: TDConcrete.cpp:343
double getUltimateShrinkage(void) const
Return ultimate shrinkage.
Definition: TDConcrete.cpp:339
void setCreepExponentParameter(const double &)
Assigns creep exponent parameter.
Definition: TDConcrete.cpp:367
void setUltimateConcreteCreep(const double &)
Assigns creep exponent parameter.
Definition: TDConcrete.cpp:359
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: TDConcrete.cpp:560
double getUltimateConcreteCreep(void) const
Return creep exponent parameter.
Definition: TDConcrete.cpp:363
int getResponse(int responseID, Information &matInformation)
Returns material response.
Definition: TDConcrete.cpp:715
int sendSelf(Communicator &)
Sends object through the communicator argument.
Definition: TDConcrete.cpp:528