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