XC Open source finite element analysis program
J2PlateFiber.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/J2PlateFiber.h,v $
45 
46 #ifndef J2PlateFiber_h
47 #define J2PlateFiber_h
48 
49 // Written: Ed "C++" Love
50 //
51 // J2PlateFiber isotropic hardening material class
52 //
53 // Elastic Model
54 // sigma = K*trace(epsilion_elastic) + (2*G)*dev(epsilon_elastic)
55 //
56 // Yield Function
57 // phi(sigma,q) = || dev(sigma) || - sqrt(2/3)*q(xi)
58 //
59 // Saturation Isotropic Hardening with linear term
60 // q(xi) = simga_0 + (sigma_infty - sigma_0)*exp(-delta*xi) + H*xi
61 //
62 // Flow Rules
63 // \dot{epsilon_p} = gamma * d_phi/d_sigma
64 // \dot{xi} = -gamma * d_phi/d_q
65 //
66 // Linear Viscosity
67 // gamma = phi / eta ( if phi > 0 )
68 //
69 // Backward Euler Integration Routine
70 // Yield condition enforced at time n+1
71 //
72 // Send strains in following format :
73 //
74 // strain_vec = { eps_00
75 // eps_11
76 // 2 eps_01 } <--- note the 2
77 //
78 // set eta := 0 for rate independent case
79 //
80 
81 #include <material/nD/J2Plasticity.h>
82 
83 namespace XC{
85 //
88 class J2PlateFiber : public J2Plasticity
89  {
90  private :
91  //static vectors and matrices
92  static Vector strain_vec ; //strain in vector notation
93  static Vector stress_vec ; //stress in vector notation
94  static Matrix tangent_matrix ; //material tangent in matrix notation
95 
96  double commitEps22;
97 
98  //index mapping special for plane stress because of
99  // condensation on tangent
100  void index_map( int matrix_index, int &i, int &j ) const;
101  protected:
102  int sendData(CommParameters &);
103  int recvData(const CommParameters &);
104  public :
105 
106  J2PlateFiber(int tag);
107 
108  //null constructor
109  J2PlateFiber(void);
110 
111  //full constructor
112  J2PlateFiber( int tag,
113  double K,
114  double G,
115  double yield0,
116  double yield_infty,
117  double d,
118  double H,
119  double viscosity );
120 
121 
122  //elastic constructor
123  J2PlateFiber( int tag, double K, double G );
124 
125  //make a clone of this material
126  NDMaterial* getCopy(void) const;
127 
128  //send back type of material
129  const std::string &getType( ) const ;
130 
131  //send back order of strain in vector form
132  int getOrder( ) const ;
133 
134  //get the strain and integrate plasticity equations
135  int setTrialStrain( const Vector &strain_from_element);
136 
137  //unused trial strain functions
138  int setTrialStrain( const Vector &v, const Vector &r );
139  int setTrialStrainIncr( const Vector &v );
140  int setTrialStrainIncr( const Vector &v, const Vector &r );
141 
142  //send back the strain
143  const Vector& getStrain(void) const;
144 
145  //send back the stress
146  const Vector& getStress(void) const;
147 
148  //send back the tangent
149  const Matrix& getTangent(void) const;
150  const Matrix& getInitialTangent(void) const;
151 
152  //this is mike's problem
153  int setTrialStrain(const Tensor &v);
154  int setTrialStrain(const Tensor &v, const Tensor &r);
155  int setTrialStrainIncr(const Tensor &v);
156  int setTrialStrainIncr(const Tensor &v, const Tensor &r);
157  const Tensor& getTangentTensor(void) const;
158 //jeremic@ucdavis.edu 22jan2001 const Tensor& getStressTensor( );
159 //jeremic@ucdavis.edu 22jan2001 const Tensor& getStrainTensor( );
160 
161  //swapping history variables
162  int commitState( );
163  int revertToLastCommit( );
164  int revertToStart( );
165 
166  //sending and receiving
167  int sendSelf(CommParameters &);
168  int recvSelf(const CommParameters &);
169  };
170 
171 }//end of XC namespace
172 
173 #endif
const Matrix & getTangent(void) const
Return the tangent stiffness matrix.
Definition: J2PlateFiber.cpp:260
J2 Isotropic hardening material class for plate problems.
Definition: J2PlateFiber.h:88
Base class for 2D and 3D materials.
Definition: NDMaterial.h:91
Definition: Vector.h:82
J2 Isotropic hardening material class.
Definition: J2Plasticity.h:90
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: J2PlateFiber.cpp:383
int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: J2PlateFiber.cpp:399
NDMaterial * getCopy(void) const
Virtual constructor.
Definition: J2PlateFiber.cpp:128
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: J2PlateFiber.cpp:391
Definition: Matrix.h:82
const Vector & getStrain(void) const
Returns strain.
Definition: J2PlateFiber.cpp:227
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: J2PlateFiber.cpp:413
int setTrialStrainIncr(const Vector &v)
Asigna el valor del incremento de la trial strain.
Definition: J2PlateFiber.cpp:218
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
int setTrialStrain(const Vector &strain_from_element)
Asigna el trial strain value.
Definition: J2PlateFiber.cpp:142
const Vector & getStress(void) const
Returns stress.
Definition: J2PlateFiber.cpp:244