XC Open source finite element analysis program
HardeningMaterial.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/11 03:49:27 $
49 // $Source: /usr/local/cvs/OpenSees/SRC/material/uniaxial/HardeningMaterial.h,v $
50 
51 #ifndef HardeningMaterial_h
52 #define HardeningMaterial_h
53 
54 // Written: MHS
55 // Created: May 2000
56 //
57 // Description: This file contains the class definition for
58 // HardeningMaterial. HardeningMaterial provides the abstraction
59 // for a one-dimensional rate-independent plasticity model
60 // with combined isotropic and kinematic hardening.
61 
62 #include <material/uniaxial/UniaxialMaterial.h>
63 
64 namespace XC {
66 //
71  {
72  private:
73  // Material parameters
74  double E; // Elastic modulus
75  double sigmaY; // Yield stress
76  double Hiso; // Isotropic hardening parameter
77  double Hkin; // Kinematic hardening parameter
78  double eta;
79 
80  // Committed history variables
81  double CplasticStrain; // Committed plastic strain
82  double CbackStress; // Committed back stress;
83  double Chardening; // Committed internal hardening variable
84 
85  // Trial history variables
86  double TplasticStrain; // Trial plastic strain
87  double TbackStress; // Trial back stress
88  double Thardening; // Trial internal hardening variable
89 
90  // Trial state variables
91  double Tstrain; // Trial strain
92  double Tstress; // Trial stress
93  double Ttangent; // Trial tangent
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  public:
103  HardeningMaterial(int tag, double E, double sigmaY,
104  double K, double H, double eta = 0.0);
105  HardeningMaterial(int tag);
106  HardeningMaterial(void);
108  HardeningMaterial &operator=(const HardeningMaterial &otro);
109  ~HardeningMaterial(void);
110 
111  int setTrialStrain(double strain, double strainRate = 0.0);
112  double getStrain(void) const;
113  double getStress(void) const;
114  double getTangent(void) const;
115  inline double getInitialTangent(void) const {return E;};
116 
117  int commitState(void);
118  int revertToLastCommit(void);
119  int revertToStart(void);
120 
121  UniaxialMaterial *getCopy(void) const;
122 
123  int sendSelf(CommParameters &);
124  int recvSelf(const CommParameters &);
125 
126  void Print(std::ostream &s, int flag =0);
127 
128 // AddingSensitivity:BEGIN //////////////////////////////////////////
129  int setParameter(const std::vector<std::string> &argv, Parameter &param);
130  int updateParameter(int parameterID, Information &info);
131  int activateParameter (int parameterID);
132  double getStressSensitivity (int gradNumber, bool conditional);
133  double getInitialTangentSensitivity (int gradNumber);
134  int commitSensitivity (double strainGradient, int gradNumber, int numGrads);
135 // AddingSensitivity:END ///////////////////////////////////////////
136  };
137 } // end of XC namespace
138 
139 
140 #endif
141 
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: HardeningMaterial.cpp:256
Information about an element.
Definition: Information.h:80
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: HardeningMaterial.cpp:297
Definition: Matrix.h:82
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: HardeningMaterial.cpp:244
UniaxialMaterial * getCopy(void) const
Virtual constructor.
Definition: HardeningMaterial.cpp:240
Definition: Parameter.h:65
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:88
HardeningMaterial provides the abstraction for a one-dimensional rate-independent plasticity model wi...
Definition: HardeningMaterial.h:70