xc
J2PlateFiber.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/J2PlateFiber.h,v $
46 
47 #ifndef J2PlateFiber_h
48 #define J2PlateFiber_h
49 
50 // Written: Ed "C++" Love
51 //
52 // J2PlateFiber 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{
91  {
92  private:
93  static constexpr int order= 5;
94  //static vectors and matrices
95  static Vector strain_vec ; //strain in vector notation
96  static Vector stress_vec ; //stress in vector notation
97  static Matrix tangent_matrix ; //material tangent in matrix notation
98 
99  double commitEps22;
100 
101  //index mapping special for plane stress because of
102  // condensation on tangent
103  void index_map( int matrix_index, int &i, int &j ) const;
104  protected:
105  int sendData(Communicator &);
106  int recvData(const Communicator &);
107  public:
108 
109  J2PlateFiber(int tag= 0);
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(void) 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  //swapping history variables
153  int commitState( );
154  int revertToLastCommit( );
155  int revertToStart( );
156 
157  //sending and receiving
158  int sendSelf(Communicator &);
159  int recvSelf(const Communicator &);
160  };
161 
162 }//end of XC namespace
163 
164 #endif
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 revertToStart()
Revert the material to its initial state.
Definition: J2PlateFiber.cpp:331
int recvSelf(const Communicator &)
Receives object through the communicator argument.
Definition: J2PlateFiber.cpp:371
Communication parameters between processes.
Definition: Communicator.h:66
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: J2PlateFiber.cpp:340
J2 Isotropic nonlinear strain hardening material for plate problems.See OpenSees Shells by the Seasho...
Definition: J2PlateFiber.h:90
int sendSelf(Communicator &)
Sends object through the communicator argument.
Definition: J2PlateFiber.cpp:356
const std::string & getType(void) const
send back type of material
Definition: J2PlateFiber.cpp:121
const Matrix & getTangent(void) const
send back the tangent
Definition: J2PlateFiber.cpp:247
int revertToLastCommit()
Revert to the last committed state.
Definition: J2PlateFiber.cpp:324
Base class for 2D and 3D materials.
Definition: NDMaterial.h:101
J2PlateFiber(int tag=0)
Default constructor.
Definition: J2PlateFiber.cpp:93
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
int setTrialStrain(const Vector &strain_from_element)
get the strain and integrate plasticity equations
Definition: J2PlateFiber.cpp:130
int commitState()
Commit the state of the material.
Definition: J2PlateFiber.cpp:314
int getOrder() const
send back order of strain in vector form
Definition: J2PlateFiber.cpp:126
Matrix of floats.
Definition: Matrix.h:111
const Vector & getStrain(void) const
send back the strain
Definition: J2PlateFiber.cpp:215
const Vector & getStress(void) const
send back the stress
Definition: J2PlateFiber.cpp:231
const Matrix & getInitialTangent(void) const
Return the material initial stiffness.
Definition: J2PlateFiber.cpp:281
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: J2PlateFiber.cpp:348
int setTrialStrainIncr(const Vector &v)
Set trial strain increment.
Definition: J2PlateFiber.cpp:206
NDMaterial * getCopy(void) const
make a clone of this material
Definition: J2PlateFiber.cpp:116