xc
PressureDependentElastic3D.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 //# COPYRIGHT (C): Woody's license (by BJ):
30 // ``This source code is Copyrighted in
31 // U.S., for an indefinite period, and anybody
32 // caught using it without our permission, will be
33 // mighty good friends of ourn, cause we don't give
34 // a darn. Hack it. Compile it. Debug it. Run it.
35 // Yodel it. Enjoy it. We wrote it, that's all we
36 // wanted to do.''
37 //
38 //# PROJECT: Object Oriented Finite Element Program
39 //# PURPOSE: Pressure dependent elastic isotropic material implementation:
40 //# CLASS: PressureDependentElastic3D
41 //#
42 //# VERSION: 0.61803398874989 (golden section)
43 //# LANGUAGE: C++
44 //# TARGET OS: all...
45 //# DESIGN: Zhaohui Yang, Boris Jeremic (jeremic@ucdavis.edu)
46 //# PROGRAMMER(S): Zhaohui Yang, Boris Jeremic
47 //#
48 //#
49 //# DATE: 07July2001
50 //# UPDATE HISTORY: 22Nov2002 small fixes, formatting...
51 //#
52 //#
53 //===============================================================================
54 
55 
56 #ifndef PressureDependentElastic3D_h
57 #define PressureDependentElastic3D_h
58 
59 #include <material/nD/elastic_isotropic/ElasticIsotropicMaterial.h>
60 #include <utility/matrix/nDarray/stresst.h>
61 #include <utility/matrix/nDarray/straint.h>
62 
63 namespace XC {
65 //
68  {
69  private:
70  static Vector sigma;
71  static Matrix D;
72 
73  double exp0;
74  double p_ref;
75  double p_cutoff;
76  Vector Cepsilon;
77 
78  double p_n; // committed pressure
79  mutable double p_n1; // trial pressure
80 
81  protected:
82  int sendData(Communicator &);
83  int recvData(const Communicator &);
84  public:
86  double E,
87  double nu,
88  double rhop,
89  double expp = 0.6,
90  double pr = 100.0,
91  double pop = 0.5);
92  PressureDependentElastic3D(int tag= 0);
93 
94  const Matrix &getTangent(void) const;
95  const Vector &getStress(void) const;
96 
97  int commitState(void);
98  int revertToLastCommit(void);
99  int revertToStart(void);
100 
101  NDMaterial *getCopy(void) const;
102  const std::string &getType(void) const;
103  int getOrder(void) const;
104 
105  int sendSelf(Communicator &);
106  int recvSelf(const Communicator &);
107 
108  void Print(std::ostream &s, int flag =0) const;
109  };
110 } // end of XC namespace
111 #endif
int sendSelf(Communicator &)
Sends object through the communicator argument.
Definition: PressureDependentElastic3D.cpp:181
const Vector & getStress(void) const
Returns the material stress.
Definition: PressureDependentElastic3D.cpp:101
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: PressureDependentElastic3D.cpp:173
int commitState(void)
Commit the state of the material.
Definition: PressureDependentElastic3D.cpp:133
Float vector abstraction.
Definition: Vector.h:94
Communication parameters between processes.
Definition: Communicator.h:66
Base class for elastic isotropic materials with elastic modulus E and Poisson ratio v...
Definition: ElasticIsotropicMaterial.h:88
double E
Elastic modulus.
Definition: ElasticIsotropicMaterial.h:91
int revertToStart(void)
Invoked to cause the material to revert to its original state in its undeformed configuration.
Definition: PressureDependentElastic3D.cpp:146
NDMaterial * getCopy(void) const
Virtual constructor.
Definition: PressureDependentElastic3D.cpp:153
int recvSelf(const Communicator &)
Receives object through the communicator argument.
Definition: PressureDependentElastic3D.cpp:196
??.
Definition: PressureDependentElastic3D.h:67
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: PressureDependentElastic3D.cpp:165
Base class for 2D and 3D materials.
Definition: NDMaterial.h:101
const Matrix & getTangent(void) const
Return the material tangent stiffness.
Definition: PressureDependentElastic3D.cpp:77
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Matrix of floats.
Definition: Matrix.h:111
int revertToLastCommit(void)
To cause the material to revert to its last committed state.
Definition: PressureDependentElastic3D.cpp:140
void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: PressureDependentElastic3D.cpp:216