xc
J2ThreeDimensional.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/J2ThreeDimensional.h,v $
46 
47 // Written: Ed "C++" Love
48 
49 //
50 // J2ThreeDimensional isotropic hardening material class
51 //
52 // Elastic Model
53 // sigma = K*trace(epsilion_elastic) + (2*G)*dev(epsilon_elastic)
54 //
55 // Yield Function
56 // phi(sigma,q) = || dev(sigma) || - sqrt(2/3)*q(xi)
57 //
58 // Saturation Isotropic Hardening with linear term
59 // q(xi) = simga_0 + (sigma_infty - sigma_0)*exp(-delta*xi) + H*xi
60 //
61 // Flow Rules
62 // \dot{epsilon_p} = gamma * d_phi/d_sigma
63 // \dot{xi} = -gamma * d_phi/d_q
64 //
65 // Linear Viscosity
66 // gamma = phi / eta ( if phi > 0 )
67 //
68 // Backward Euler Integration Routine
69 // Yield condition enforced at time n+1
70 //
71 // Send strains in following format :
72 //
73 // strain_vec = { eps_00
74 // eps_11
75 // eps_22
76 // 2 eps_01
77 // 2 eps_12
78 // 2 eps_20 } <--- note the 2
79 //
80 // set eta := 0 for rate independent case
81 //
82 
83 #ifndef J2THREEDIMENSIONAL_H
84 #define J2THREEDIMENSIONAL_H
85 
86 #include "J2Plasticity.h"
87 
88 namespace XC{
90 //
94  {
95 //-------------------Declarations-------------------------------
96  private:
97  //static vectors and matrices
98  static Vector strain_vec; //strain in vector notation
99  static Vector stress_vec; //stress in vector notation
100  static Matrix tangent_matrix; //material tangent in matrix notation
101  public:
102  J2ThreeDimensional(int tag= 0);
103  J2ThreeDimensional( int tag,
104  double K,
105  double G,
106  double yield0,
107  double yield_infty,
108  double d,
109  double H,
110  double viscosity = 0 );
111  //elastic constructor
112  J2ThreeDimensional( int tag, double K, double G );
113 
114  //make a clone of this material
115  NDMaterial* getCopy(void) const;
116 
117  //send back type of material
118  const std::string &getType(void) const;
119 
120  //send back order of strain in vector form
121  int getOrder(void) const;
122 
123  //get the strain and integrate plasticity equations
124  int setTrialStrain( const Vector &strain_from_element);
125 
126  //unused trial strain functions
127  int setTrialStrain( const Vector &v, const Vector &r );
128  int setTrialStrainIncr( const Vector &v );
129  int setTrialStrainIncr( const Vector &v, const Vector &r );
130 
131  //send back the strain
132  const Vector& getStrain(void) const;
133 
134  //send back the stress
135  const Vector& getStress(void) const;
136 
137  //send back the tangent
138  const Matrix& getTangent(void) const;
139  const Matrix& getInitialTangent(void) const;
140  }; //end of J2ThreeDimensional declaration
141 
142 
143 } //end of XC namespace
144 
145 #endif
const Matrix & getInitialTangent(void) const
Return the material initial stiffness.
Definition: J2ThreeDimensional.cpp:255
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
const Vector & getStress(void) const
send back the stress
Definition: J2ThreeDimensional.cpp:208
int setTrialStrainIncr(const Vector &v)
Set trial strain increment.
Definition: J2ThreeDimensional.cpp:170
const Vector & getStrain(void) const
send back the strain
Definition: J2ThreeDimensional.cpp:191
int setTrialStrain(const Vector &strain_from_element)
get the strain and integrate plasticity equations
Definition: J2ThreeDimensional.cpp:141
Base class for 2D and 3D materials.
Definition: NDMaterial.h:101
J2 Isotropic hardening material class for 3D problems.
Definition: J2ThreeDimensional.h:93
J2ThreeDimensional(int tag=0)
Default constructor.
Definition: J2ThreeDimensional.cpp:97
NDMaterial * getCopy(void) const
make a clone of this material
Definition: J2ThreeDimensional.cpp:126
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
const Matrix & getTangent(void) const
send back the tangent
Definition: J2ThreeDimensional.cpp:224
Matrix of floats.
Definition: Matrix.h:111
const std::string & getType(void) const
send back type of material
Definition: J2ThreeDimensional.cpp:131
int getOrder(void) const
send back order of strain in vector form
Definition: J2ThreeDimensional.cpp:136