XC Open source finite element analysis program
MultiaxialCyclicPlasticity.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 ** ****************************************************************** */
41 
42 
43 /*----+----+----+----+----+----+----+----+----+----+----+----+----+----+----*
44  | |
45  | MultiaxialCyclicPlasticity NDMaterial |
46  + +
47  |--------------------------------------------------------------------------|
48  | |
49  + Authors: Gang Wang AND Professor Nicholas Sitar +
50  | |
51  | Department of Civil and Environmental Engineering |
52  + Univeristy of California, Berkeley, CA 94720, USA +
53  | |
54  | Email: wang@ce.berkeley.edu (G.W.) |
55  + +
56  | Disclaimers: |
57  | (1) This is implemenation of MultiaxialCyclicPlasticity for clays |
58  + Model References: +
59  | Borja R.I, Amies, A.P. Multiaxial Cyclic Plasticity Model for |
60  | Clays, ASCE J. Geotech. Eng. Vol 120, No 6, 1051-1070 |
61  + Montans F.J, Borja R.I. Implicit J2-bounding Surface Plasticity +
62  | using Prager's translation rule. Int. J. Numer. Meth. Engng. |
63  | 55:1129-1166, 2002 |
64  + Code References: +
65  | Ignacio Romero and Adrian Rodriguez Marek, Brick element model with |
66  | a Multiaxial Cyclic Plasticity Model, in GEOFEAP, UC Berkeley |
67  + (2) Questions regarding this code should be directed to Gang Wang +
68  | (3) Documentation could be found at |
69  | www.ce.berkeley.edu/~wang/papers/MultiaxialCyclicPlasticity.pdf |
70  + +
71  | Development History: |
72  | First Draft -- April 2004 |
73  + Rewrite -- Nov 2004 +
74  | Final Release -- |
75  | |
76  +----+----+----+----+----+----+----+----+----+----+----+----+----+----+----*/
77 
78 /* ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
79 
80  User Command
81 
82  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
83  nDMaterial MultiaxialCyclicPlasticity $tag, $rho, $K, $G,
84  $Su , $Ho , $h, $m, $beta, $KCoeff
85  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
86  where:
87  tag : tag for this material
88  rho : density
89  K : buck modulus
90  G : maximum (small strain) shear modulus
91  Su : undrained shear strength, size of bounding surface R=sqrt(8/3)*Su
92  Ho : linear kinematic hardening modulus of bounding surface
93  h : hardening parameter
94  m : hardening parameter
95  beta : integration parameter, usually beta=0.5
96  KCoeff: coefficient of earth pressure, K0
97 
98  ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/
99 
100 
101 #ifndef MultiaxialCyclicPlasticity_h
102 #define MultiaxialCyclicPlasticity_h
103 
104 #include <cstdio>
105 #include <cstdlib>
106 #include <cmath>
107 
108 #include <utility/matrix/Vector.h>
109 #include <utility/matrix/Matrix.h>
110 #include <material/nD/NDMaterial.h>
111 
112 
113 namespace XC{
115 //
118  {
119  protected :
120  //this is mike's problem
121  static Tensor rank2;
122  static Tensor rank4;
123 
124  // Material parameter used for K0 condition
125  double K0; //lateral earth pressure coefficient
126  double bulk_K0;
127  double shear_K0;
128 
129  // Parameters used for Bounding Surface
130  double bulk ; //bulk modulus
131  double shear ; //shear modulus
132  double density; //material density (mass/volume)
133  double R; //Radius of Bounding Surface, R=sqrt(8/3)*Su
134  double Ho; //Limit value of hardening modulus Ho=Hard
135  double h; //Exponential degradation parameter H=h*kappa^m
136  double m; //Exponential degradation parameter H=h*kappa^m
137  double beta; //integration parameter
138  double eta; //viscosity // not used now
139 
140  // some flags
141  int flagjustunload; // not used
142  int flagfirstload; // very first loading, initialize so_n
143  int icounter; // iteration counter, local newton
144  int iternum; // iteration counter, global newton
145 
146  int plasticflag; // flags indicate stage of plasticity at current step
147  int plasticflag_n; // flags indicate stage of plasticity at t=n
148 
149  // state variables
150  double kappa; //kappa at t=n
151  double Psi; //Psi at t=n
152  double X[3]; //X[1]:Psi X[2]:kappa at t=n+1
153  double alp; //alp for strain split across B.S.
154  double load; //loading/unloading indicator
155 
156  //material input
157  Matrix strain ; // strain @ t=n+1, input from element
158  //material response
159  Matrix stress ; // stress @ t=n+1, computed this step
160  Matrix backs; // back stress for BS @ t=n
161  Matrix so; // unload deviatoric back stress
162  //memory variables
163  Matrix strain_n; // strain @ t=n; stored before
164  Matrix stress_n; // stress @ t=n; stored before
165  Matrix backs_n; // back stress for BS @ t=n+1
166  Matrix so_n; // unload point for t=n
167 
168  double tangent[3][3][3][3] ; // material tangent
169  static double initialTangent[3][3][3][3] ; //material tangent
170  static double IIdev[3][3][3][3] ; //rank 4 deviatoric
171  static double IbunI[3][3][3][3] ; //rank 4 I bun I
172 
173 
174  // element tag associated with this material; added method by Gang Wang
175  int EleTag;
176  static int MaterialStageID; // classwide tag
177  static int IncrFormulationFlag;
178 
179 
180  //parameters
181  static const double one3 ;
182  static const double two3 ;
183  static const double four3 ;
184  static const double root23 ;
185  static const double infinity ;
186 
187  static Vector MCPparameter; // debug tool
188 
189 
190  void initialize(void); //initialize internal variables
191  void plastic_integrator(void); //plasticity integration routine, used in MaterialStageID==2
192  void elastic_integrator(void);//elasticity integration routine, used in MaterialStageID==1 (K0)
193 
194  void doInitialTangent(void) const;
195  virtual void index_map( int matrix_index, int &i, int &j ) const;//matrix index to tensor index mapping
196 
197 
198  protected:
199  int sendData(CommParameters &);
200  int recvData(const CommParameters &);
201  public :
202  //null constructor
204  MultiaxialCyclicPlasticity(int tag,int classtag= ND_TAG_MultiaxialCyclicPlasticity);
205 
206 
207 //full constructor
209  int classTag,
210  double rho,
211  double K,
212  double G,
213  double Su,
214  double Ho_kin,
215  double Parameter_h,
216  double Parameter_m,
217  double Parameter_beta,
218  double Kcoeff,
219  double viscosity = 0
220  );
221 
222 
223  //elastic constructor
224  MultiaxialCyclicPlasticity( int tag, int classTag, double rho, double K, double G );
225 
226  virtual NDMaterial* getCopy(const std::string &) const;
227 
228  //swap history variables
229  virtual int commitState(void);
230  //revert to last saved state
231  virtual int revertToLastCommit(void);
232  //revert to start
233  virtual int revertToStart(void);
234 
235  //sending and receiving
236  virtual int sendSelf(CommParameters &);
237  virtual int recvSelf(const CommParameters &);
238 
239  //print out material data
240  void Print(std::ostream &s, int flag = 0);
241 
242  virtual NDMaterial *getCopy(void) const;
243  virtual const std::string &getType(void) const ;
244  virtual int getOrder (void) const ;
245 
246  double getRho(void) const;
247  int updateParameter(int responseID, Information &eleInformation);
248  Vector& getMCPparameter(void); // used for debug only
249  }; //end of MultiaxialCyclicPlasticity declarations
250 
251 } //end of XC namespace
252 
253 #endif
void plastic_integrator(void)
Definition: MultiaxialCyclicPlasticity.cpp:850
Base class for 2D and 3D materials.
Definition: NDMaterial.h:91
Definition: Vector.h:82
??.
Definition: MultiaxialCyclicPlasticity.h:117
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: MultiaxialCyclicPlasticity.cpp:501
Information about an element.
Definition: Information.h:80
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: MultiaxialCyclicPlasticity.cpp:776
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: MultiaxialCyclicPlasticity.cpp:750
virtual int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: MultiaxialCyclicPlasticity.cpp:802
Definition: Matrix.h:82
virtual int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: MultiaxialCyclicPlasticity.cpp:816
double getRho(void) const
Return the densidad del material.
Definition: MultiaxialCyclicPlasticity.cpp:835
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
virtual NDMaterial * getCopy(void) const
Virtual constructor.
Definition: MultiaxialCyclicPlasticity.cpp:693