XC Open source finite element analysis program
ElasticIsotropic3D.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: Elastic Isotropic Material implementation:
39 //# CLASS: ElasticIsotropic3D
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: 10Oct2000
49 //# UPDATE HISTORY: 22Nov2002 small fixes
50 //#
51 //#
52 //===============================================================================
53 
54 
55 #ifndef ElasticIsotropic3D_h
56 #define ElasticIsotropic3D_h
57 
58 #include <material/nD/ElasticIsotropicMaterial.h>
59 
60 #include <utility/matrix/nDarray/straint.h>
61 #include <utility/matrix/nDarray/stresst.h>
62 #include <utility/matrix/nDarray/Tensor.h>
63 
64 
65 namespace XC {
67 //
70  {
71  private:
72  static Vector sigma; // Stress vector
73  static Matrix D; // Elastic constantsVector sigma;
74 
75  mutable Tensor *Dt; // Elastic constants tensor
76  static stresstensor Stress; // Stress tensor
77  straintensor Strain; // Strain tensor
78  public:
79  ElasticIsotropic3D(int tag, double E, double nu, double rho);
80  ElasticIsotropic3D(int tag);
81  ElasticIsotropic3D(void);
82  ~ElasticIsotropic3D(void);
83 
84  int setTrialStrainIncr(const Vector &v);
85  int setTrialStrainIncr(const Vector &v, const Vector &r);
86  const Matrix &getTangent(void) const;
87  const Matrix &getInitialTangent(void) const;
88 
89  const Vector &getStress(void) const;
90 
91  int setTrialStrain(const Tensor &v);
92  int setTrialStrain(const Tensor &v, const Tensor &r);
93  int setTrialStrainIncr(const Tensor &v);
94  int setTrialStrainIncr(const Tensor &v, const Tensor &r);
95  const Tensor &getTangentTensor (void) const;
96  const stresstensor &getStressTensor(void) const;
97  const straintensor &getStrainTensor(void) const;
98  const straintensor &getPlasticStrainTensor(void) const;
99 
100  int commitState (void);
101  int revertToLastCommit (void);
102  int revertToStart (void);
103 
104  NDMaterial *getCopy(void) const;
105  const std::string &getType(void) const;
106  int getOrder(void) const;
107 
108  void Print(std::ostream &s, int flag =0);
109  void setInitElasticStiffness(void) const;
110  };
111 } // end of XC namespace
112 
113 
114 #endif
115 
116 
double E
Elastic modulus.
Definition: ElasticIsotropicMaterial.h:82
Base class for 2D and 3D materials.
Definition: NDMaterial.h:91
Definition: Vector.h:82
const Matrix & getTangent(void) const
Return the tangent stiffness matrix.
Definition: ElasticIsotropic3D.cpp:96
Elastic isotropic material for 3D elements.
Definition: ElasticIsotropic3D.h:69
Definition: stresst.h:68
Strain tensor.
Definition: straint.h:67
double v
Poisson ratio.
Definition: ElasticIsotropicMaterial.h:83
Definition: Matrix.h:82
const Vector & getStress(void) const
Returns stress.
Definition: ElasticIsotropic3D.cpp:132
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: ElasticIsotropic3D.cpp:231
int setTrialStrainIncr(const Vector &v)
Asigna el valor del incremento de la trial strain.
Definition: ElasticIsotropic3D.cpp:83
================================================================================
Definition: ContinuaReprComponent.h:34
NDMaterial * getCopy(void) const
Virtual constructor.
Definition: ElasticIsotropic3D.cpp:222
int setTrialStrain(const Tensor &v)
Asigna el trial strain value.
Base class for elastic isotropic materials.
Definition: ElasticIsotropicMaterial.h:79
double rho
mass per unit 3D volume
Definition: ElasticIsotropicMaterial.h:84