XC Open source finite element analysis program
J2PlaneStress.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/J2PlaneStress.h,v $
45 
46 #ifndef J2PlaneStress_h
47 #define J2PlaneStress_h
48 
49 // Written: Ed "C++" Love
50 //
51 // J2PlaneStress 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  double commitEps22;
97 
98  //index mapping special for plane stress because of
99  // condensation on tangent
100  void index_map( int matrix_index, int &i, int &j );
101  protected:
102  int sendData(CommParameters &);
103  int recvData(const CommParameters &);
104  public :
105  //null constructor
106  J2PlaneStress( ) ;
107 
108  //full constructor
109  J2PlaneStress( int tag,
110  double K,
111  double G,
112  double yield0,
113  double yield_infty,
114  double d,
115  double H,
116  double viscosity ) ;
117 
118 
119  J2PlaneStress(int tag);
120  //elastic constructor
121  J2PlaneStress( int tag, double K, double G);
122 
123  //make a clone of this material
124  NDMaterial* getCopy(void) const;
125 
126  //send back type of material
127  const std::string &getType( ) const ;
128 
129  //send back order of strain in vector form
130  int getOrder( ) const ;
131 
132  //get the strain and integrate plasticity equations
133  int setTrialStrain( const Vector &strain_from_element);
134 
135  //unused trial strain functions
136  int setTrialStrain( const Vector &v, const Vector &r );
137  int setTrialStrainIncr( const Vector &v );
138  int setTrialStrainIncr( const Vector &v, const Vector &r );
139 
140  //send back the strain
141  const Vector& getStrain(void) const;
142 
143  //send back the stress
144  const Vector& getStress(void) const;
145 
146  //send back the tangent
147  const Matrix& getTangent(void) const;
148  const Matrix& getInitialTangent(void) const;
149 
150  //this is mike's problem
151  int setTrialStrain(const Tensor &v);
152  int setTrialStrain(const Tensor &v, const Tensor &r);
153  int setTrialStrainIncr(const Tensor &v);
154  int setTrialStrainIncr(const Tensor &v, const Tensor &r);
155  const Tensor& getTangentTensor(void) const;
156 //jeremic@ucdavis.edu 22jan2001 const Tensor& getStressTensor( );
157 //jeremic@ucdavis.edu 22jan2001 const Tensor& getStrainTensor( );
158 
159  //swap history variables
160  int commitState( );
161  int revertToLastCommit( );
162  int revertToStart( );
163 
164  //sending and receiving
165  int sendSelf(CommParameters &);
166  int recvSelf(const CommParameters &);
167 
168 
169 
170 } ; //end of J2PlaneStress declarations
171 
172 
173 } //end of XC namespace
174 #endif
175 
const Matrix & getTangent(void) const
Return the tangent stiffness matrix.
Definition: J2PlaneStress.cpp:246
Base class for 2D and 3D materials.
Definition: NDMaterial.h:91
Definition: Vector.h:82
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: J2PlaneStress.cpp:361
NDMaterial * getCopy(void) const
Virtual constructor.
Definition: J2PlaneStress.cpp:127
int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: J2PlaneStress.cpp:377
J2 Isotropic hardening material class.
Definition: J2Plasticity.h:90
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: J2PlaneStress.cpp:369
Definition: Matrix.h:82
int setTrialStrain(const Vector &strain_from_element)
Asigna el trial strain value.
Definition: J2PlaneStress.cpp:141
const Vector & getStress(void) const
Returns stress.
Definition: J2PlaneStress.cpp:236
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: J2PlaneStress.cpp:391
Communication parameters between processes.
Definition: CommParameters.h:65
const Vector & getStrain(void) const
Returns strain.
Definition: J2PlaneStress.cpp:225
================================================================================
Definition: ContinuaReprComponent.h:34
int setTrialStrainIncr(const Vector &v)
Asigna el valor del incremento de la trial strain.
Definition: J2PlaneStress.cpp:208
J2 Isotropic hardening material class for plane stress problems.
Definition: J2PlaneStress.h:88