xc
J2PlaneStrain.h
1 // -*-c++-*-
2 //----------------------------------------------------------------------------
3 // XC program; finite element analysis code
4 // for structural analysis and design.
5 //
6 // Copyright (C) Luis C. Pérez Tato
7 //
8 // This program derives from OpenSees <http://opensees.berkeley.edu>
9 // developed by the «Pacific earthquake engineering research center».
10 //
11 // Except for the restrictions that may arise from the copyright
12 // of the original program (see copyright_opensees.txt)
13 // XC is free software: you can redistribute it and/or modify
14 // it under the terms of the GNU General Public License as published by
15 // the Free Software Foundation, either version 3 of the License, or
16 // (at your option) any later version.
17 //
18 // This software is distributed in the hope that it will be useful, but
19 // WITHOUT ANY WARRANTY; without even the implied warranty of
20 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 // GNU General Public License for more details.
22 //
23 //
24 // You should have received a copy of the GNU General Public License
25 // along with this program.
26 // If not, see <http://www.gnu.org/licenses/>.
27 //----------------------------------------------------------------------------
28 /* ****************************************************************** **
29 ** OpenSees - Open System for Earthquake Engineering Simulation **
30 ** Pacific Earthquake Engineering Research Center **
31 ** **
32 ** **
33 ** (C) Copyright 1999, The Regents of the University of California **
34 ** All Rights Reserved. **
35 ** **
36 ** Commercial use of this program without express permission of the **
37 ** University of California, Berkeley, is strictly prohibited. See **
38 ** file 'COPYRIGHT' in main directory for information on usage and **
39 ** redistribution, and for a DISCLAIMER OF ALL WARRANTIES. **
40 ** **
41 ** ****************************************************************** */
42 
43 // $Revision: 1.5 $
44 // $Date: 2003/02/14 23:01:25 $
45 // $Source: /usr/local/cvs/OpenSees/SRC/material/nD/J2PlaneStrain.h,v $
46 
47 #ifndef J2PlaneStrain_h
48 #define J2PlaneStrain_h
49 
50 // Written: Ed "C++" Love
51 //
52 // J2PlaneStrain isotropic hardening material class
53 //
54 // Elastic Model
55 // sigma = K*trace(epsilion_elastic) + (2*G)*dev(epsilon_elastic)
56 //
57 // Yield Function
58 // phi(sigma,q) = || dev(sigma) || - sqrt(2/3)*q(xi)
59 //
60 // Saturation Isotropic Hardening with linear term
61 // q(xi) = simga_0 + (sigma_infty - sigma_0)*exp(-delta*xi) + H*xi
62 //
63 // Flow Rules
64 // \dot{epsilon_p} = gamma * d_phi/d_sigma
65 // \dot{xi} = -gamma * d_phi/d_q
66 //
67 // Linear Viscosity
68 // gamma = phi / eta ( if phi > 0 )
69 //
70 // Backward Euler Integration Routine
71 // Yield condition enforced at time n+1
72 //
73 // Send strains in following format :
74 //
75 // strain_vec = { eps_00
76 // eps_11
77 // 2 eps_01 } <--- note the 2
78 //
79 // set eta := 0 for rate independent case
80 //
81 
82 #include "J2Plasticity.h"
83 
84 namespace XC{
86 //
90  {
91  private:
92  //static vectors and matrices
93  static Vector strain_vec; //strain in vector notation
94  static Vector stress_vec; //stress in vector notation
95  static Matrix tangent_matrix; //material tangent in matrix notation
96 
97  public:
98  J2PlaneStrain(int tag= 0);
99  //elastic constructor
100  J2PlaneStrain( int tag, double K, double G );
101  //full constructor
102  J2PlaneStrain( int tag,
103  double K,
104  double G,
105  double yield0,
106  double yield_infty,
107  double d,
108  double H,
109  double viscosity = 0 );
110 
111  //make a clone of this material
112  NDMaterial* getCopy(void) const;
113 
114  //send back type of material
115  const std::string &getType( ) const;
116 
117  //send back order of strain in vector form
118  int getOrder( ) const;
119 
120 
121  //get the strain and integrate plasticity equations
122  int setTrialStrain( const Vector &strain_from_element);
123 
124  //unused trial strain functions
125  int setTrialStrain( const Vector &v, const Vector &r );
126  int setTrialStrainIncr( const Vector &v );
127  int setTrialStrainIncr( const Vector &v, const Vector &r );
128 
129  //send back the strain
130  const Vector& getStrain(void) const;
131 
132  //send back the stress
133  const Vector& getStress(void) const;
134 
135  //send back the tangent
136  const Matrix& getTangent(void) const;
137  const Matrix& getInitialTangent(void) const;
138 
139  //swap history variables
140  int commitState( );
141  int revertToLastCommit( );
142  int revertToStart( );
143  };
144 
145 } //end of XC namespace
146 
147 #endif
148 
Float vector abstraction.
Definition: Vector.h:94
Base class for J2 isotropic hardening materials.The von Mises theory is often called “J2 plasticityâ€...
Definition: J2Plasticity.h:97
int setTrialStrainIncr(const Vector &v)
Set trial strain increment.
Definition: J2PlaneStrain.cpp:165
int revertToStart()
Revert the material to its initial state.
Definition: J2PlaneStrain.cpp:271
J2 Isotropic hardening material class for plane strain problems.
Definition: J2PlaneStrain.h:89
const Vector & getStress(void) const
send back the stress
Definition: J2PlaneStrain.cpp:191
const Matrix & getTangent(void) const
send back the tangent
Definition: J2PlaneStrain.cpp:201
int revertToLastCommit()
Revert to the last committed state.
Definition: J2PlaneStrain.cpp:266
int getOrder() const
send back order of strain in vector form
Definition: J2PlaneStrain.cpp:139
int commitState()
Commit the state of the material.
Definition: J2PlaneStrain.cpp:258
J2PlaneStrain(int tag=0)
Constructor.
Definition: J2PlaneStrain.cpp:96
Base class for 2D and 3D materials.
Definition: NDMaterial.h:101
const Matrix & getInitialTangent(void) const
Return the material initial stiffness.
Definition: J2PlaneStrain.cpp:229
NDMaterial * getCopy(void) const
make a clone of this material
Definition: J2PlaneStrain.cpp:128
const Vector & getStrain(void) const
send back the strain
Definition: J2PlaneStrain.cpp:180
const std::string & getType() const
send back type of material
Definition: J2PlaneStrain.cpp:134
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Matrix of floats.
Definition: Matrix.h:111
int setTrialStrain(const Vector &strain_from_element)
get the strain and integrate plasticity equations
Definition: J2PlaneStrain.cpp:144