XC Open source finite element analysis program
NeoHookeanCompressible3D.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: Finite Deformation Hyper-Elastic classes
39 //# CLASS:
40 //#
41 //# VERSION: 0.6_(1803398874989) (golden section)
42 //# LANGUAGE: C++
43 //# TARGET OS: all...
44 //# DESIGN: Zhao Cheng, Boris Jeremic (jeremic@ucdavis.edu)
45 //# PROGRAMMER(S): Zhao Cheng, Boris Jeremic
46 //#
47 //#
48 //# DATE: July 2004
49 //# UPDATE HISTORY:
50 //#
51 //===============================================================================
52 
53 #ifndef NeoHookeanCompressible3D_h
54 #define NeoHookeanCompressible3D_h
55 
56 #include <material/nD/FiniteDeformation/FiniteDeformationElastic3D.h>
57 #include "utility/matrix/nDarray/straint.h"
58 #include "utility/matrix/nDarray/stresst.h"
59 
60 namespace XC {
62 //
65  {
66  private:
67  int ComputeTrials(void);
68 
69  double rho;
70  double K;
71  double G;
72 
73  straintensor F;
74  straintensor C;
75  double J;
76  straintensor Cinv;
77 
78  int FromForC;
79 
80  Tensor Stiffness;
81  straintensor thisGreenStrain;
82  stresstensor thisPK2Stress;
83  public:
84  NeoHookeanCompressible3D(int tag, int classTag, double, double, double );
85  NeoHookeanCompressible3D(int tag, double, double, double );
86  NeoHookeanCompressible3D(int tag);
88 
89  double getRho(void) const;
90 
91  int setTrialF(const straintensor &f);
92  int setTrialFIncr(const straintensor &df);
93  int setTrialC(const straintensor &c);
94  int setTrialCIncr(const straintensor &dc);
95 
96  const Tensor& getTangentTensor(void) const; // Default Lagrangian Tangent Tensor
97  const Tensor& getInitialTangentTensor(void) const;
98  const straintensor &getStrainTensor(void) const; // Default Green Lagrangian Strain
99  const stresstensor &getStressTensor(void) const; // Default 2nd Piola Kirchhoff Stress
100  const straintensor &getF(void) const;
101  const straintensor &getC(void) const;
102 
103  int commitState(void) ;
104  int revertToLastCommit(void) ;
105  int revertToStart(void) ;
106 
107  NDMaterial *getCopy(void) const;
108  NDMaterial *getCopy(const std::string &) const;
109 
110  const std::string &getType(void) const;
111  int getOrder (void) const;
112 
113  int sendSelf(CommParameters &);
114  int recvSelf(const CommParameters &);
115 
116  void Print(std::ostream &s, int flag = 0);
117 
118 // int setParameter(const std::vector<std::string> &argv, Parameter &param);
119 // int updateParameter(int parameterID, Information &info);
120 
121  const stresstensor getPK1StressTensor(void) ;
122  const stresstensor getCauchyStressTensor(void) ;
123 
124 };
125 } // end of XC namespace
126 
127 #endif
128 
??.
Definition: NeoHookeanCompressible3D.h:64
Base class for 2D and 3D materials.
Definition: NDMaterial.h:91
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: NeoHookeanCompressible3D.cpp:256
Definition: stresst.h:68
3D finite deformation elastic material.
Definition: FiniteDeformationElastic3D.h:63
Strain tensor.
Definition: straint.h:67
NDMaterial * getCopy(void) const
Virtual constructor.
Definition: NeoHookeanCompressible3D.cpp:219
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34