xc
MultiaxialCyclicPlasticityPlaneStrain.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 /*----+----+----+----+----+----+----+----+----+----+----+----+----+----+----*
44  | |
45  | MultiaxialCyclicPlasticity NDMaterial |
46  + +
47  |--------------------------------------------------------------------------|
48  | |
49  + Authors: Gang Wang AND Professor Nicholas Sitar +
50  | |
51  | Department of Civil and Environmental Engineering |
52  + University of California, Berkeley, CA 94720, USA +
53  | |
54  | Email: wang@ce.berkeley.edu (G.W.) |
55  | |
56  +----+----+----+----+----+----+----+----+----+----+----+----+----+----+----*/
57 #ifndef MultiaxialCyclicPlasticityPlaneStrain_h
58 #define MultiaxialCyclicPlasticityPlaneStrain_h
59 
60 #include <utility/matrix/Vector.h>
61 #include <utility/matrix/Matrix.h>
62 
63 #include "material/nD/soil/cyclicSoil/MultiaxialCyclicPlasticity.h"
64 
65 namespace XC{
67 //
70  {
71 
72 //-------------------Declarations-------------------------------
73 
74  private :
75 
76  //static vectors and matrices
77  static Vector strain_vec ; //strain in vector notation
78  static Vector stress_vec ; //stress in vector notation
79  static Matrix tangent_matrix ; //material tangent in matrix notation
80  public :
81 
83  //null constructor
85 
86  //full constructor
88  double rho,
89  double K,
90  double G,
91  double Su,
92  double Ho_kin,
93  double Parameter_h,
94  double Parameter_m,
95  double Parameter_beta,
96  double Kcoeff,
97  double viscosity=0 );
98 
99  //elastic constructor // add density by Gang Wang
100  MultiaxialCyclicPlasticityPlaneStrain( int tag, double rho, double K, double G );
101 
102  //make a clone of this material
103  NDMaterial* getCopy(void) const;
104 
105  //send back type of material
106  const std::string &getType( ) const ;
107 
108  //send back order of strain in vector form
109  int getOrder( ) const ;
110 
111 
112  //get the strain and integrate plasticity equations
113  int setTrialStrain( const Vector &strain_from_element);
114 
115  //unused trial strain functions
116  int setTrialStrain( const Vector &v, const Vector &r );
117  int setTrialStrainIncr( const Vector &v );
118  int setTrialStrainIncr( const Vector &v, const Vector &r );
119 
120  //send back the strain
121  const Vector& getStrain(void) const;
122 
123  //send back the stress
124  const Vector& getStress(void) const;
125 
126  //send back the tangent
127  const Matrix& getTangent(void) const;
128  const Matrix& getInitialTangent(void) const;
129 
130  //this is mike's problem
131  int setTrialStrain(const Tensor &v);
132  int setTrialStrain(const Tensor &v, const Tensor &r);
133  int setTrialStrainIncr(const Tensor &v);
134  int setTrialStrainIncr(const Tensor &v, const Tensor &r);
135  const Tensor& getTangentTensor( );
136 
137  //swap history variables
138  //int commitState( );
139  //int revertToLastCommit( );
140  //int revertToStart( );
141  };
142 
143 //end of MultiaxialCyclicPlasticityPlaneStrain declarations
144 
145 } //fin de namespace XC
146 #endif
147 
Float vector abstraction.
Definition: Vector.h:94
??.
Definition: MultiaxialCyclicPlasticity.h:118
int setTrialStrain(const Vector &strain_from_element)
Sets the value of the trial strain vector, that value used by {getStress()} and getTangent(), to be strain.
Definition: MultiaxialCyclicPlasticityPlaneStrain.cpp:122
const Matrix & getTangent(void) const
Return the tangent stiffness matrix at the current trial strain.
Definition: MultiaxialCyclicPlasticityPlaneStrain.cpp:194
NDMaterial * getCopy(void) const
Virtual constructor.
Definition: MultiaxialCyclicPlasticityPlaneStrain.cpp:104
const Vector & getStress(void) const
Returns the material stress vector at the current trial strain.
Definition: MultiaxialCyclicPlasticityPlaneStrain.cpp:184
const Matrix & getInitialTangent(void) const
Return the material initial stiffness.
Definition: MultiaxialCyclicPlasticityPlaneStrain.cpp:222
int setTrialStrainIncr(const Vector &v)
Set trial strain increment.
Definition: MultiaxialCyclicPlasticityPlaneStrain.cpp:146
Base class for 2D and 3D materials.
Definition: NDMaterial.h:101
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Matrix of floats.
Definition: Matrix.h:111
const Vector & getStrain(void) const
Returns strain.
Definition: MultiaxialCyclicPlasticityPlaneStrain.cpp:173
??.
Definition: MultiaxialCyclicPlasticityPlaneStrain.h:69