XC Open source finite element analysis program
Concrete01.h
1 //----------------------------------------------------------------------------
2 // XC program; finite element analysis code
3 // for structural analysis and design.
4 //
5 // Copyright (C) Luis Claudio Pérez Tato
6 //
7 // This program derives from OpenSees <http://opensees.berkeley.edu>
8 // developed by the «Pacific earthquake engineering research center».
9 //
10 // Except for the restrictions that may arise from the copyright
11 // of the original program (see copyright_opensees.txt)
12 // XC is free software: you can redistribute it and/or modify
13 // it under the terms of the GNU General Public License as published by
14 // the Free Software Foundation, either version 3 of the License, or
15 // (at your option) any later version.
16 //
17 // This software is distributed in the hope that it will be useful, but
18 // WITHOUT ANY WARRANTY; without even the implied warranty of
19 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20 // GNU General Public License for more details.
21 //
22 //
23 // You should have received a copy of the GNU General Public License
24 // along with this program.
25 // If not, see <http://www.gnu.org/licenses/>.
26 //----------------------------------------------------------------------------
27 /* ****************************************************************** **
28 ** OpenSees - Open System for Earthquake Engineering Simulation **
29 ** Pacific Earthquake Engineering Research Center **
30 ** **
31 ** **
32 ** (C) Copyright 1999, The Regents of the University of California **
33 ** All Rights Reserved. **
34 ** **
35 ** Commercial use of this program without express permission of the **
36 ** University of California, Berkeley, is strictly prohibited. See **
37 ** file 'COPYRIGHT' in main directory for information on usage and **
38 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
39 ** **
40 ** Developed by: **
41 ** Frank McKenna (fmckenna@ce.berkeley.edu) **
42 ** Gregory L. Fenves (fenves@ce.berkeley.edu) **
43 ** Filip C. Filippou (filippou@ce.berkeley.edu) **
44 ** **
45 ** ****************************************************************** */
46 
47 // $Revision: 1.9 $
48 // $Date: 2003/03/05 00:53:21 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/material/uniaxial/Concrete01.h,v $
50 
51 
52 #ifndef Concrete01_h
53 #define Concrete01_h
54 
55 // File: Concrete01.h
56 //
57 // Written: MHS
58 // Created: 06/99
59 // Revision: A
60 //
61 //
62 // What: "@(#) Concrete01.h, revA"
63 
64 
65 #include <material/uniaxial/concrete/ConcreteBase.h>
66 #include <utility/matrix/Matrix.h>
67 
68 namespace XC {
70 //
81 class Concrete01: public ConcreteBase
82  {
83  private:
84  /*** Material Properties ***/
85  double fpcu;
86 
87  void make_negative(void);
88  void setup_parameters(void);
89  void determineTrialState(double dStrain);
90 
91  void reload(void);
92  void unload(void);
93  void envelope(void);
94 
95 // AddingSensitivity:BEGIN //////////////////////////////////////////
96  int parameterID;
97  Matrix SHVs;
98 // AddingSensitivity:END ///////////////////////////////////////////
99  protected:
100  int sendData(CommParameters &);
101  int recvData(const CommParameters &);
102 
103  void calcula_trial_state(const double &strain);
104  public:
105  Concrete01(int tag, double fpc, double eco, double fpcu, double ecu);
106  Concrete01(int tag);
107  Concrete01(void);
108  ~Concrete01(void);
109 
110  int setTrialStrain(double strain, double strainRate = 0.0);
111  int setTrial(double strain, double &stress, double &tangent, double strainRate = 0.0);
112 
114  inline double getInitialTangent(void) const
115  {return 2.0*fpc/epsc0;}
116 
117  void setFpcu(const double &d);
118  double getFpcu(void) const;
119 
120  int commitState(void);
121  int revertToLastCommit(void);
122  int revertToStart(void);
123 
124  UniaxialMaterial *getCopy(void) const;
125 
126  int sendSelf(CommParameters &);
127  int recvSelf(const CommParameters &);
128 
129  void Print(std::ostream &s, int flag =0);
130 
131 
132 // AddingSensitivity:BEGIN //////////////////////////////////////////
133  int setParameter(const std::vector<std::string> &argv, Parameter &param);
134  int updateParameter(int parameterID, Information &info);
135  int activateParameter(int parameterID);
136  double getStressSensitivity(int gradNumber, bool conditional);
137  int commitSensitivity(const double &strainGradient, int gradNumber, int numGrads);
138 // AddingSensitivity:END ///////////////////////////////////////////
139  };
140 } // end of XC namespace
141 
142 
143 #endif
144 
145 
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: Concrete01.cpp:431
~Concrete01(void)
Destructor.
Definition: Concrete01.cpp:141
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: Concrete01.cpp:377
void setFpcu(const double &d)
Assigns concrete compressive strenght.
Definition: Concrete01.cpp:126
Information about an element.
Definition: Information.h:80
double getInitialTangent(void) const
Returns initial tangent stiffness.
Definition: Concrete01.h:114
double fpc
Compression strength.
Definition: RawConcrete.h:44
Uniaxial Kent-Scott-Park concrete model with linear unloading/reloading according to the work of Kars...
Definition: Concrete01.h:81
double epsc0
Strain when compression strength is reached.
Definition: RawConcrete.h:45
int revertToLastCommit(void)
Returns to the last commited state.
Definition: Concrete01.cpp:353
Definition: Matrix.h:82
int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: Concrete01.cpp:398
int revertToStart(void)
Returns to the initial state.
Definition: Concrete01.cpp:360
UniaxialMaterial * getCopy(void) const
Returns a material copy.
Definition: Concrete01.cpp:373
void calcula_trial_state(const double &strain)
Calculate the trial state given the change in strain.
Definition: Concrete01.cpp:145
Definition: Parameter.h:65
Base class for concrete materials.
Definition: ConcreteBase.h:41
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: Concrete01.cpp:387
Communication parameters between processes.
Definition: CommParameters.h:65
double getFpcu(void) const
Returns concrete compressive strenght.
Definition: Concrete01.cpp:137
int setTrialStrain(double strain, double strainRate=0.0)
Sets the trial strain value.
Definition: Concrete01.cpp:174
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: Concrete01.cpp:412
================================================================================
Definition: ContinuaReprComponent.h:34
int commitState(void)
Commits material state.
Definition: Concrete01.cpp:345
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:88