XC Open source finite element analysis program
FiniteDeformationElastic3D.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: 19AUg2003
49 //# UPDATE HISTORY: Sept 2003
50 //# May28, 2004
51 //#
52 //===============================================================================
53 
54 #ifndef FiniteDeformationElastic3D_h
55 #define FiniteDeformationElastic3D_h
56 
57 #include <material/nD/NDMaterial.h>
58 
59 namespace XC {
61 //
64  {
65  protected:
66  double rho;
67  protected:
68  int sendData(CommParameters &);
69  int recvData(const CommParameters &);
70  public:
71 
72  FiniteDeformationElastic3D(int tag, int classTag, double );
75 
76  virtual double getRho(void) const;
77 
78  virtual int setTrialF(const straintensor &f);
79  virtual int setTrialFIncr(const straintensor &df);
80  virtual int setTrialC(const straintensor &c);
81  virtual int setTrialCIncr(const straintensor &dc);
82 
83  virtual const Tensor& getTangentTensor(void) const; // Default Lagrangian Tangent Tensor
84  virtual const Tensor& getInitialTangentTensor(void) const;
85 
86  virtual const straintensor &getStrainTensor(void) const; // Default Green Lagrangian Strain
87  virtual const stresstensor &getStressTensor(void) const; // Default 2nd Piola Kirchhoff Stress
88  virtual const straintensor &getF(void) const;
89  virtual const straintensor &getC(void) const;
90 
91  virtual int commitState(void);
92  virtual int revertToLastCommit(void);
93  virtual int revertToStart(void);
94 
95  virtual NDMaterial *getCopy(void) const;
96  virtual NDMaterial *getCopy(const std::string &) const;
97 
98  virtual const std::string &getType(void) const;
99  virtual int getOrder (void) const;
100 
101  virtual void Print(std::ostream &s, int flag = 0);
102 
103  virtual int setParameter(const std::vector<std::string> &argv, Parameter &param);
104  virtual int updateParameter(int parameterID, Information &info);
105 
106  virtual const stresstensor getPK1StressTensor(void);
107  virtual const stresstensor getCauchyStressTensor(void);
108  };
109 } // end of XC namespace
110 
111 #endif
112 
Base class for 2D and 3D materials.
Definition: NDMaterial.h:91
double rho
Material density.
Definition: FiniteDeformationElastic3D.h:66
Information about an element.
Definition: Information.h:80
virtual NDMaterial * getCopy(void) const
Virtual constructor.
Definition: FiniteDeformationElastic3D.cpp:209
Definition: stresst.h:68
3D finite deformation elastic material.
Definition: FiniteDeformationElastic3D.h:63
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: FiniteDeformationElastic3D.cpp:239
Strain tensor.
Definition: straint.h:67
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: FiniteDeformationElastic3D.cpp:247
Definition: Parameter.h:65
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
virtual void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: FiniteDeformationElastic3D.cpp:256