xc
CreepMaterial.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  // Michael H. Scott
51  //
52  // Based on TDConcrete implementations by:
53  // Adam M. Knaack (adam.knaack@schaefer-inc.com)
54  // Schaefer-Inc, Cincinnati, Ohio, USA
55  // Nikola D. Tosic (ntosic@imk.grf.bg.ac.rs)
56  // Department for Materials and Structure, Faculty of Civil Engineering, University of Belgrade, Serbia
57  // Yahya C. Kurama (ykurama@nd.edu)
58  // Department of Civil and Environmental Engineering and Earth Sciences, College of Engineering, University of Notre Dame, Notre Dame, Indiana, USA
59  //----------------------------------------------------------------------------------------------------------------------------
60 
61  //----------------------------------------------------------------------------------------------------------------------------
62  // Description: This file contains the source code of CreepMaterial.
63  // CreepMaterial is a wrapper that imposes creep and shrinkage evoluation equations
64  // to any uniaxialMaterial.
65  //----------------------------------------------------------------------------------------------------------------------------
66 
67 #ifndef CreepMaterial_h
68 #define CreepMaterial_h
69 
70 #include "material/uniaxial/EncapsulatedUniaxialMaterial.h"
71 #include "material/uniaxial/concrete/ConcreteHistoryVars.h"
72 #include "material/uniaxial/concrete/ACICreepShrinkageParameters.h"
73 #include "material/uniaxial/concrete/ACICreepSteps.h"
74 #include "material/uniaxial/concrete/ACICreepShrinkageState.h"
75 
76 namespace XC {
77 
78 class RawConcrete;
79 
81 //
84  {
85  private:
86 
87  // matpar : Concrete FIXED PROPERTIES
88  // double fcT; //Time Dependent Strength
89  double beta;
90  ACICreepShrinkageState creepShrinkageState;
91 
92  double phi_i;
93 
94  int iter;
95 
96  ACICreepShrinkageParameters creepShrinkageParameters;
97 
98  // hstvP : Concerete HISTORY VARIABLES last committed step
100 
101  // hstv : Concerete HISTORY VARIABLES current step
103 
104  ACICreepSteps creepSteps;
105 
106  const RawConcrete *_get_concrete_material(void) const;
107  protected:
108  int sendData(Communicator &);
109  int recvData(const Communicator &);
110  public:
111  CreepMaterial(int tag= 0);
112  CreepMaterial(int tag, double _fc, double _fcu, double _epscu, double _ft, double _Ec, double _beta, double _age, double _tcast, const ACICreepShrinkageParameters &);
113  CreepMaterial(int tag, UniaxialMaterial &matl, double _age, double _tcast, const ACICreepShrinkageParameters &);
114  void setup_parameters(void);
115 
116  double getInitialTangent(void) const;
117  UniaxialMaterial *getCopy(void) const;
118 
119  void setCreepShrinkageParameters(const ACICreepShrinkageParameters &);
120  const ACICreepShrinkageParameters &getCreepShrinkageParameters(void) const;
121 
122  int setTrialStrain(double strain, double strainRate = 0.0);
123  double setCreepStrain(double time, double stress); //Added by AMK
124  double getCurrentTime(void) const; //Added by AMK
125  double getStrain(void) const;
126  double getPHI_i(void) const; //Added by AMK
127  double getStress(void) const;
128  double getTangent(void) const;
129  double getCreep(void) const; //Added by AMK
130  double getMech(void) const; //Added by AMK
131  double setPhi(double time, double tp) const; //Added by AMK
132  double setShrink(double time); //Added by AMK
133  double getShrink(void) const; //Added by AMK
134 
135  int commitState(void);
136  int revertToLastCommit(void);
137  int revertToStart(void);
138 
139  int sendSelf(Communicator &);
140  int recvSelf(const Communicator &);
141 
142  void Print(std::ostream &s, int flag =0) const;
143 
144  int getVariable(const std::string &variable, Information &) const;
145 
146  //Added by AMK for recording Creep and Mechanical Strain:
147  Response *setResponse(const std::vector<std::string> &, Information &);
148  int getResponse(int responseID, Information &matInformation);
149 
150  };
151 } // end of XC namespace
152 
153 
154 #endif
155 
int sendSelf(Communicator &)
Sends object through the communicator argument.
Definition: CreepMaterial.cpp:397
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: CreepMaterial.cpp:373
Information about an element.
Definition: Information.h:81
Communication parameters between processes.
Definition: Communicator.h:66
Class that groups the variables that keep track of the creep and shrinkage strains according to the A...
Definition: ACICreepShrinkageState.h:39
Base class response objects.
Definition: Response.h:81
int recvSelf(const Communicator &)
Receives object through the communicator argument.
Definition: CreepMaterial.cpp:413
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:93
Base class for concrete materials.
Definition: RawConcrete.h:42
Definition: ConcreteHistoryVars.h:102
UniaxialMaterial * getCopy(void) const
Virtual constructor.
Definition: CreepMaterial.cpp:142
Definition: ACICreepSteps.h:37
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: CreepMaterial.cpp:384
void setup_parameters(void)
Sets initial values for the concrete parameters.
Definition: CreepMaterial.cpp:125
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: CreepMaterial.cpp:436
int setTrialStrain(double strain, double strainRate=0.0)
Sets the value of the trial strain.
Definition: CreepMaterial.cpp:191
double getTangent(void) const
Return the current value of the tangent for the trial strain.
Definition: CreepMaterial.cpp:264
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
double getStress(void) const
Return the current value of stress.
Definition: CreepMaterial.cpp:261
Parameters that define creep and shrinkage behaviour according to the ACI code.
Definition: ACICreepShrinkageParameters.h:39
Creep material.
Definition: CreepMaterial.h:83
int getResponse(int responseID, Information &matInformation)
Returns material response.
Definition: CreepMaterial.cpp:542
Encapsulates a copy to an uniaxial material.
Definition: EncapsulatedUniaxialMaterial.h:39