XC Open source finite element analysis program
J2PlaneStrain.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 // $Revision: 1.5 $
43 // $Date: 2003/02/14 23:01:25 $
44 // $Source: /usr/local/cvs/OpenSees/SRC/material/nD/J2PlaneStrain.h,v $
45 
46 #ifndef J2PlaneStrain_h
47 #define J2PlaneStrain_h
48 
49 // Written: Ed "C++" Love
50 //
51 // J2PlaneStrain isotropic hardening material class
52 //
53 // Elastic Model
54 // sigma = K*trace(epsilion_elastic) + (2*G)*dev(epsilon_elastic)
55 //
56 // Yield Function
57 // phi(sigma,q) = || dev(sigma) || - sqrt(2/3)*q(xi)
58 //
59 // Saturation Isotropic Hardening with linear term
60 // q(xi) = simga_0 + (sigma_infty - sigma_0)*exp(-delta*xi) + H*xi
61 //
62 // Flow Rules
63 // \dot{epsilon_p} = gamma * d_phi/d_sigma
64 // \dot{xi} = -gamma * d_phi/d_q
65 //
66 // Linear Viscosity
67 // gamma = phi / eta ( if phi > 0 )
68 //
69 // Backward Euler Integration Routine
70 // Yield condition enforced at time n+1
71 //
72 // Send strains in following format :
73 //
74 // strain_vec = { eps_00
75 // eps_11
76 // 2 eps_01 } <--- note the 2
77 //
78 // set eta := 0 for rate independent case
79 //
80 
81 #include <material/nD/J2Plasticity.h>
82 
83 namespace XC{
85 //
89  {
90  private:
91  //static vectors and matrices
92  static Vector strain_vec ; //strain in vector notation
93  static Vector stress_vec ; //stress in vector notation
94  static Matrix tangent_matrix ; //material tangent in matrix notation
95 
96  public:
97  //null constructor
98  J2PlaneStrain( ) ;
99 
100  //full constructor
101  J2PlaneStrain( int tag,
102  double K,
103  double G,
104  double yield0,
105  double yield_infty,
106  double d,
107  double H,
108  double viscosity = 0 ) ;
109 
110 
111  J2PlaneStrain(int tag) ;
112  //elastic constructor
113  J2PlaneStrain( int tag, double K, double G ) ;
114 
115  //make a clone of this material
116  NDMaterial* getCopy(void) const;
117 
118  //send back type of material
119  const std::string &getType( ) const ;
120 
121  //send back order of strain in vector form
122  int getOrder( ) const ;
123 
124 
125  //get the strain and integrate plasticity equations
126  int setTrialStrain( const Vector &strain_from_element) ;
127 
128  //unused trial strain functions
129  int setTrialStrain( const Vector &v, const Vector &r ) ;
130  int setTrialStrainIncr( const Vector &v ) ;
131  int setTrialStrainIncr( const Vector &v, const Vector &r ) ;
132 
133  //send back the strain
134  const Vector& getStrain(void) const;
135 
136  //send back the stress
137  const Vector& getStress(void) const ;
138 
139  //send back the tangent
140  const Matrix& getTangent(void) const;
141  const Matrix& getInitialTangent(void) const;
142 
143  //this is mike's problem
144  int setTrialStrain(const Tensor &v) ;
145  int setTrialStrain(const Tensor &v, const Tensor &r) ;
146  int setTrialStrainIncr(const Tensor &v) ;
147  int setTrialStrainIncr(const Tensor &v, const Tensor &r) ;
148  const Tensor& getTangentTensor( ) ;
149 
150  //jeremic@ucdavis.edu 22jan2001 const Tensor& getStressTensor( ) ;
151  //jeremic@ucdavis.edu 22jan2001 const Tensor& getStrainTensor( ) ;
152 
153  //swap history variables
154  int commitState( ) ;
155  int revertToLastCommit( ) ;
156  int revertToStart( ) ;
157  };
158 
159 } //end of XC namespace
160 
161 #endif
162 
Base class for 2D and 3D materials.
Definition: NDMaterial.h:91
const Matrix & getTangent(void) const
Return the tangent stiffness matrix.
Definition: J2PlaneStrain.cpp:206
Definition: Vector.h:82
J2 Isotropic hardening material class.
Definition: J2Plasticity.h:90
const Vector & getStress(void) const
Returns stress.
Definition: J2PlaneStrain.cpp:196
Definition: Matrix.h:82
NDMaterial * getCopy(void) const
Virtual constructor.
Definition: J2PlaneStrain.cpp:133
const Vector & getStrain(void) const
Returns strain.
Definition: J2PlaneStrain.cpp:185
int setTrialStrain(const Vector &strain_from_element)
Asigna el trial strain value.
Definition: J2PlaneStrain.cpp:149
================================================================================
Definition: ContinuaReprComponent.h:34
J2 Isotropic hardening material class for plane strain problems.
Definition: J2PlaneStrain.h:88
int setTrialStrainIncr(const Vector &v)
Asigna el valor del incremento de la trial strain.
Definition: J2PlaneStrain.cpp:170