XC Open source finite element analysis program
PressureDependentElastic3D.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 //# COPYRIGHT (C): Woody's license (by BJ):
29 // ``This source code is Copyrighted in
30 // U.S., for an indefinite period, and anybody
31 // caught using it without our permission, will be
32 // mighty good friends of ourn, cause we don't give
33 // a darn. Hack it. Compile it. Debug it. Run it.
34 // Yodel it. Enjoy it. We wrote it, that's all we
35 // wanted to do.''
36 //
37 //# PROJECT: Object Oriented Finite Element Program
38 //# PURPOSE: Pressure dependent elastic isotropic material implementation:
39 //# CLASS: PressureDependentElastic3D
40 //#
41 //# VERSION: 0.61803398874989 (golden section)
42 //# LANGUAGE: C++
43 //# TARGET OS: all...
44 //# DESIGN: Zhaohui Yang, Boris Jeremic (jeremic@ucdavis.edu)
45 //# PROGRAMMER(S): Zhaohui Yang, Boris Jeremic
46 //#
47 //#
48 //# DATE: 07July2001
49 //# UPDATE HISTORY: 22Nov2002 small fixes, formating...
50 //#
51 //#
52 //===============================================================================
53 
54 
55 #ifndef PressureDependentElastic3D_h
56 #define PressureDependentElastic3D_h
57 
58 #include <material/nD/ElasticIsotropicMaterial.h>
59 #include <utility/matrix/nDarray/stresst.h>
60 #include <utility/matrix/nDarray/straint.h>
61 
62 namespace XC {
64 //
67  {
68  private:
69  static Vector sigma;
70  static Matrix D;
71 
72  double exp;
73  double p_ref;
74  double p_cutoff;
75 
76  mutable Tensor Dt;
77  mutable stresstensor Stress;
78  straintensor Strain;
79  protected:
80  int sendData(CommParameters &);
81  int recvData(const CommParameters &);
82  public:
84  double E,
85  double nu,
86  double rhop,
87  double expp = 0.6,
88  double pr = 100.0,
89  double pop = 0.5);
92 
93  int setTrialStrainIncr(const Vector &v);
94  int setTrialStrainIncr(const Vector &v, const Vector &r);
95  const Matrix &getTangent(void) const;
96  const Vector &getStress(void) const;
97 
98  int setTrialStrain(const Tensor &v);
99  int setTrialStrain(const Tensor &v, const Tensor &r);
100  int setTrialStrainIncr(const Tensor &v);
101  int setTrialStrainIncr(const Tensor &v, const Tensor &r);
102  const Tensor &getTangentTensor(void) const;
103  const stresstensor &getStressTensor(void) const;
104  const straintensor &getStrainTensor(void) const;
105  const straintensor &getPlasticStrainTensor(void) const;
106 
107  int commitState(void);
108  int revertToLastCommit(void);
109  int revertToStart(void);
110 
111  NDMaterial *getCopy(void) const;
112  const std::string &getType(void) const;
113  int getOrder(void) const;
114 
115  int sendSelf(CommParameters &);
116  int recvSelf(const CommParameters &);
117 
118  void Print(std::ostream &s, int flag =0);
119  void ComputeElasticStiffness(void) const;
120  };
121 } // end of XC namespace
122 #endif
double E
Elastic modulus.
Definition: ElasticIsotropicMaterial.h:82
NDMaterial * getCopy(void) const
Virtual constructor.
Definition: PressureDependentElastic3D.cpp:268
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: PressureDependentElastic3D.cpp:280
Base class for 2D and 3D materials.
Definition: NDMaterial.h:91
Definition: Vector.h:82
int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: PressureDependentElastic3D.cpp:302
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: PressureDependentElastic3D.cpp:291
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: PressureDependentElastic3D.cpp:316
const Vector & getStress(void) const
Returns stress.
Definition: PressureDependentElastic3D.cpp:129
??.
Definition: PressureDependentElastic3D.h:66
Definition: stresst.h:68
Strain tensor.
Definition: straint.h:67
double v
Poisson ratio.
Definition: ElasticIsotropicMaterial.h:83
Definition: Matrix.h:82
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: PressureDependentElastic3D.cpp:334
const Matrix & getTangent(void) const
Return the tangent stiffness matrix.
Definition: PressureDependentElastic3D.cpp:102
int setTrialStrainIncr(const Vector &v)
Asigna el valor del incremento de la trial strain.
Definition: PressureDependentElastic3D.cpp:90
int setTrialStrain(const Tensor &v)
Asigna el trial strain value.
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
Base class for elastic isotropic materials.
Definition: ElasticIsotropicMaterial.h:79