xc
FiniteDeformationElastic3D.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: Finite Deformation Hyper-Elastic classes
40 //# CLASS:
41 //#
42 //# VERSION: 0.6_(1803398874989) (golden section)
43 //# LANGUAGE: C++
44 //# TARGET OS: all...
45 //# DESIGN: Zhao Cheng, Boris Jeremic (jeremic@ucdavis.edu)
46 //# PROGRAMMER(S): Zhao Cheng, Boris Jeremic
47 //#
48 //#
49 //# DATE: 19AUg2003
50 //# UPDATE HISTORY: Sept 2003
51 //# May28, 2004
52 //#
53 //===============================================================================
54 
55 #ifndef FiniteDeformationElastic3D_h
56 #define FiniteDeformationElastic3D_h
57 
58 #include "FiniteDeformationMaterial.h"
59 
60 namespace XC {
62 //
65  {
66  protected:
67  double rho;
68  protected:
69  int sendData(Communicator &);
70  int recvData(const Communicator &);
71  public:
72 
73  FiniteDeformationElastic3D(int tag, int classTag, double );
76 
77  virtual double getRho(void) const;
78 
79  virtual int setTrialF(const straintensor &f);
80  virtual int setTrialFIncr(const straintensor &df);
81  virtual int setTrialC(const straintensor &c);
82  virtual int setTrialCIncr(const straintensor &dc);
83 
84  virtual const Tensor& getTangentTensor(void) const; // Default Lagrangian Tangent Tensor
85  virtual const Tensor& getInitialTangentTensor(void) const;
86 
87  virtual const straintensor &getStrainTensor(void) const; // Default Green Lagrangian Strain
88  virtual const stresstensor &getStressTensor(void) const; // Default 2nd Piola Kirchhoff Stress
89  virtual const straintensor &getF(void) const;
90  virtual const straintensor &getC(void) const;
91 
92  virtual int commitState(void);
93  virtual int revertToLastCommit(void);
94  virtual int revertToStart(void);
95 
96  virtual NDMaterial *getCopy(void) const;
97  virtual NDMaterial *getCopy(const std::string &) const;
98 
99  virtual const std::string &getType(void) const;
100  virtual int getOrder (void) const;
101 
102  virtual void Print(std::ostream &s, int flag = 0) const;
103 
104  virtual int setParameter(const std::vector<std::string> &argv, Parameter &param);
105  virtual int updateParameter(int parameterID, Information &info);
106 
107  const stresstensor getPK1StressTensor(void) const;
108  const stresstensor getCauchyStressTensor(void) const;
109  };
110 } // end of XC namespace
111 
112 #endif
113 
virtual double getRho(void) const
Return material density.
Definition: FiniteDeformationElastic3D.cpp:82
Base class for finite deformation elastic materials.
Definition: FiniteDeformationElastic3D.h:64
Stress tensor.
Definition: stresst.h:70
Information about an element.
Definition: Information.h:81
Communication parameters between processes.
Definition: Communicator.h:66
Base class for finite deformation materials.
Definition: FiniteDeformationMaterial.h:45
virtual int setParameter(const std::vector< std::string > &argv, Parameter &param)
Sets the value param to the parameter argv.
Definition: FiniteDeformationElastic3D.cpp:266
virtual const Tensor & getInitialTangentTensor(void) const
Return the material initial stiffness.
Definition: FiniteDeformationElastic3D.cpp:146
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: FiniteDeformationElastic3D.cpp:241
virtual int updateParameter(int parameterID, Information &info)
Updates the parameter identified by parameterID with info.
Definition: FiniteDeformationElastic3D.cpp:270
double rho
Material density.
Definition: FiniteDeformationElastic3D.h:67
Base class for 2D and 3D materials.
Definition: NDMaterial.h:101
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: FiniteDeformationElastic3D.cpp:249
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
virtual void Print(std::ostream &s, int flag=0) const
Print stuff.
Definition: FiniteDeformationElastic3D.cpp:258
Parameter.
Definition: Parameter.h:68
virtual NDMaterial * getCopy(void) const
Virtual constructor.
Definition: FiniteDeformationElastic3D.cpp:211
Strain tensor.
Definition: straint.h:68