xc
J2PlaneStress.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/J2PlaneStress.h,v $
46 
47 #ifndef J2PlaneStress_h
48 #define J2PlaneStress_h
49 
50 // Written: Ed "C++" Love
51 //
52 // J2PlaneStress 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  double commitEps22;
98 
99  //index mapping special for plane stress because of
100  // condensation on tangent
101  void index_map( int matrix_index, int &i, int &j );
102  protected:
103  int sendData(Communicator &);
104  int recvData(const Communicator &);
105  public :
106  J2PlaneStress(int tag= 0);
107  //elastic constructor
108  J2PlaneStress( int tag, double K, double G);
109 
110  //full constructor
111  J2PlaneStress( int tag,
112  double K,
113  double G,
114  double yield0,
115  double yield_infty,
116  double d,
117  double H,
118  double viscosity );
119 
120 
121 
122  //make a clone of this material
123  NDMaterial* getCopy(void) const;
124 
125  //send back type of material
126  const std::string &getType(void) const;
127 
128  //send back order of strain in vector form
129  int getOrder( ) const;
130 
131  //get the strain and integrate plasticity equations
132  int setTrialStrain( const Vector &strain_from_element);
133 
134  //unused trial strain functions
135  int setTrialStrain( const Vector &v, const Vector &r );
136  int setTrialStrainIncr( const Vector &v );
137  int setTrialStrainIncr( const Vector &v, const Vector &r );
138 
139  //send back the strain
140  const Vector& getStrain(void) const;
141 
142  //send back the stress
143  const Vector& getStress(void) const;
144 
145  //send back the tangent
146  const Matrix& getTangent(void) const;
147  const Matrix& getInitialTangent(void) const;
148 
149  //swap history variables
150  int commitState( );
151  int revertToLastCommit( );
152  int revertToStart( );
153 
154  //sending and receiving
155  int sendSelf(Communicator &);
156  int recvSelf(const Communicator &);
157 
158 
159 
160 }; //end of J2PlaneStress declarations
161 
162 
163 } //end of XC namespace
164 #endif
165 
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 sendSelf(Communicator &)
Sends object through the communicator argument.
Definition: J2PlaneStress.cpp:342
const Matrix & getTangent(void) const
send back the tangent
Definition: J2PlaneStress.cpp:243
Communication parameters between processes.
Definition: Communicator.h:66
NDMaterial * getCopy(void) const
make a clone of this material
Definition: J2PlaneStress.cpp:122
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: J2PlaneStress.cpp:334
int sendData(Communicator &)
!
Definition: J2PlaneStress.cpp:326
const Matrix & getInitialTangent(void) const
Return the material initial stiffness.
Definition: J2PlaneStress.cpp:271
const Vector & getStress(void) const
send back the stress
Definition: J2PlaneStress.cpp:233
int revertToLastCommit()
Revert to the last committed state.
Definition: J2PlaneStress.cpp:310
int commitState()
Commit the state of the material.
Definition: J2PlaneStress.cpp:300
Base class for 2D and 3D materials.
Definition: NDMaterial.h:101
const std::string & getType(void) const
send back type of material
Definition: J2PlaneStress.cpp:127
int revertToStart()
Revert the material to its initial state.
Definition: J2PlaneStress.cpp:317
const Vector & getStrain(void) const
send back the strain
Definition: J2PlaneStress.cpp:222
J2PlaneStress(int tag=0)
Default constructor.
Definition: J2PlaneStress.cpp:91
int recvSelf(const Communicator &)
Receives object through the communicator argument.
Definition: J2PlaneStress.cpp:356
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
int setTrialStrainIncr(const Vector &v)
Set trial strain increment.
Definition: J2PlaneStress.cpp:205
Matrix of floats.
Definition: Matrix.h:111
int setTrialStrain(const Vector &strain_from_element)
get the strain and integrate plasticity equations
Definition: J2PlaneStress.cpp:136
int getOrder() const
send back order of strain in vector form
Definition: J2PlaneStress.cpp:132
J2 Isotropic hardening material class for plane stress problems.
Definition: J2PlaneStress.h:89