XC Open source finite element analysis program
J2AxiSymm.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/J2AxiSymm.h,v $
45 
46 // Written: Ed "C++" Love
47 //
48 // J2AxiSymmetric isotropic hardening material class
49 //
50 // Elastic Model
51 // sigma = K*trace(epsilion_elastic) + (2*G)*dev(epsilon_elastic)
52 //
53 // Yield Function
54 // phi(sigma,q) = || dev(sigma) || - sqrt(2/3)*q(xi)
55 //
56 // Saturation Isotropic Hardening with linear term
57 // q(xi) = simga_0 + (sigma_infty - sigma_0)*exp(-delta*xi) + H*xi
58 //
59 // Flow Rules
60 // \dot{epsilon_p} = gamma * d_phi/d_sigma
61 // \dot{xi} = -gamma * d_phi/d_q
62 //
63 // Linear Viscosity
64 // gamma = phi / eta ( if phi > 0 )
65 //
66 // Backward Euler Integration Routine
67 // Yield condition enforced at time n+1
68 //
69 // Send strains in following format :
70 //
71 // strain_vec = { eps_00
72 // eps_11
73 // eps_22
74 // 2 eps_01 } <--- note the 2
75 //
76 // set eta := 0 for rate independent case
77 //
78 
79 #ifndef J2AXISYMM_H
80 #define J2AXISYMM_H
81 
82 #include "material/nD/J2Plasticity.h"
83 
84 
85 namespace XC{
87 //
90 class J2AxiSymm: public J2Plasticity
91  {
92  private :
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 commitEps00;
98  double commitEps11;
99  double commitEps01;
100  double commitEps22;
101  protected:
102  int sendData(CommParameters &);
103  int recvData(const CommParameters &);
104  public:
105  //null constructor
106  J2AxiSymm( ) ;
107 
108  //full constructor
109  J2AxiSymm( int tag,
110  double K,
111  double G,
112  double yield0,
113  double yield_infty,
114  double d,
115  double H,
116  double viscosity = 0 ) ;
117 
118  J2AxiSymm(int tag);
119 
120  //elastic constructor
121  J2AxiSymm( 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) ;
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 
171 } ; //end of J2AxiSymm declarations
172 
173 } //end of XC namespace
174 
175 #endif
176 
177 
const Matrix & getTangent(void) const
Return the tangent stiffness matrix.
Definition: J2AxiSymm.cpp:193
NDMaterial * getCopy(void) const
Virtual constructor.
Definition: J2AxiSymm.cpp:117
Base class for 2D and 3D materials.
Definition: NDMaterial.h:91
Definition: Vector.h:82
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: J2AxiSymm.cpp:338
J2 Isotropic hardening material class.
Definition: J2Plasticity.h:90
int setTrialStrain(const Vector &strain_from_element)
Asigna el trial strain value.
Definition: J2AxiSymm.cpp:132
J2 Isotropic hardening material class para axysimmetric problems.
Definition: J2AxiSymm.h:90
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: J2AxiSymm.cpp:308
int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: J2AxiSymm.cpp:324
Definition: Matrix.h:82
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: J2AxiSymm.cpp:316
int setTrialStrainIncr(const Vector &v)
Asigna el valor del incremento de la trial strain.
Definition: J2AxiSymm.cpp:155
const Vector & getStrain(void) const
Returns strain.
Definition: J2AxiSymm.cpp:168
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34