xc
J2AxiSymm.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/J2AxiSymm.h,v $
46 
47 // Written: Ed "C++" Love
48 //
49 // J2AxiSymmetric isotropic hardening material class
50 //
51 // Elastic Model
52 // sigma = K*trace(epsilion_elastic) + (2*G)*dev(epsilon_elastic)
53 //
54 // Yield Function
55 // phi(sigma,q) = || dev(sigma) || - sqrt(2/3)*q(xi)
56 //
57 // Saturation Isotropic Hardening with linear term
58 // q(xi) = simga_0 + (sigma_infty - sigma_0)*exp(-delta*xi) + H*xi
59 //
60 // Flow Rules
61 // \dot{epsilon_p} = gamma * d_phi/d_sigma
62 // \dot{xi} = -gamma * d_phi/d_q
63 //
64 // Linear Viscosity
65 // gamma = phi / eta ( if phi > 0 )
66 //
67 // Backward Euler Integration Routine
68 // Yield condition enforced at time n+1
69 //
70 // Send strains in following format :
71 //
72 // strain_vec = { eps_00
73 // eps_11
74 // eps_22
75 // 2 eps_01 } <--- note the 2
76 //
77 // set eta := 0 for rate independent case
78 //
79 
80 #ifndef J2AXISYMM_H
81 #define J2AXISYMM_H
82 
83 #include "J2Plasticity.h"
84 
85 
86 namespace XC{
88 //
91 class J2AxiSymm: public J2Plasticity
92  {
93  private :
94  static Vector strain_vec; //strain in vector notation
95  static Vector stress_vec; //stress in vector notation
96  static Matrix tangent_matrix; //material tangent in matrix notation
97 
98  double commitEps00;
99  double commitEps11;
100  double commitEps01;
101  double commitEps22;
102  protected:
103  int sendData(Communicator &);
104  int recvData(const Communicator &);
105  public:
106  J2AxiSymm(int tag= 0);
107  //full constructor
108  J2AxiSymm( int tag,
109  double K,
110  double G,
111  double yield0,
112  double yield_infty,
113  double d,
114  double H,
115  double viscosity = 0 );
116 
117 
118  //elastic constructor
119  J2AxiSymm( int tag, double K, double G );
120 
121  //make a clone of this material
122  NDMaterial* getCopy(void) const;
123 
124  //send back type of material
125  const std::string &getType( ) const;
126 
127  //send back order of strain in vector form
128  int getOrder( ) const;
129 
130  //get the strain and integrate plasticity equations
131  int setTrialStrain( const Vector &strain_from_element);
132 
133  //unused trial strain functions
134  int setTrialStrain( const Vector &v, const Vector &r );
135  int setTrialStrainIncr( const Vector &v );
136  int setTrialStrainIncr( const Vector &v, const Vector &r );
137 
138  //send back the strain
139  const Vector& getStrain(void) const;
140 
141  //send back the stress
142  const Vector& getStress(void);
143 
144  //send back the tangent
145  const Matrix& getTangent(void) const;
146  const Matrix& getInitialTangent(void) const;
147 
148  //swap history variables
149  int commitState( );
150  int revertToLastCommit( );
151  int revertToStart( );
152 
153  //sending and receiving
154  int sendSelf(Communicator &);
155  int recvSelf(const Communicator &);
156  }; //end of J2AxiSymm declarations
157 
158 } //end of XC namespace
159 
160 #endif
161 
162 
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: J2AxiSymm.cpp:266
int revertToStart()
Revert the material to its initial state.
Definition: J2AxiSymm.cpp:258
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 commitState()
swap history variables
Definition: J2AxiSymm.cpp:243
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: J2AxiSymm.cpp:274
Communication parameters between processes.
Definition: Communicator.h:66
const Matrix & getTangent(void) const
send back the tangent
Definition: J2AxiSymm.cpp:186
int setTrialStrain(const Vector &strain_from_element)
get the strain and integrate plasticity equations
Definition: J2AxiSymm.cpp:125
int setTrialStrainIncr(const Vector &v)
Set trial strain increment.
Definition: J2AxiSymm.cpp:148
J2AxiSymm(int tag=0)
Default constructor.
Definition: J2AxiSymm.cpp:88
int getOrder() const
send back order of strain in vector form
Definition: J2AxiSymm.cpp:120
int recvSelf(const Communicator &)
Receives object through the communicator argument.
Definition: J2AxiSymm.cpp:296
NDMaterial * getCopy(void) const
make a clone of this material
Definition: J2AxiSymm.cpp:110
const Vector & getStress(void)
send back the stress
Definition: J2AxiSymm.cpp:174
Base class for 2D and 3D materials.
Definition: NDMaterial.h:101
J2 Isotropic hardening material class for axysimmetric problems.
Definition: J2AxiSymm.h:91
const Matrix & getInitialTangent(void) const
Return the material initial stiffness.
Definition: J2AxiSymm.cpp:214
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
int revertToLastCommit()
revert to last saved state
Definition: J2AxiSymm.cpp:252
Matrix of floats.
Definition: Matrix.h:111
const std::string & getType() const
send back type of material
Definition: J2AxiSymm.cpp:115
int sendSelf(Communicator &)
Sends object through the communicator argument.
Definition: J2AxiSymm.cpp:282
const Vector & getStrain(void) const
send back the strain
Definition: J2AxiSymm.cpp:161