XC Open source finite element analysis program
FiniteDeformationEP3D.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 #ifndef FiniteDeformationEP3D_H
53 #define FiniteDefornationEP3D_H
54 
55 #include <material/nD/NDMaterial.h>
56 
57 namespace XC {
58  class FDEPState;
59  class fdYield;
60  class fdFlow;
61  class fdEvolution_S;
62  class fdEvolution_T;
64 //
66 //
68 //
71  {
72 
73  private:
74  NDMaterial *fde3d;
75  fdYield *fdy;
76  fdFlow *fdf;
77  fdEvolution_S *fdEvolutionS;
78  fdEvolution_T *fdEvolutionT;
79 
80  //material input
81  straintensor F;
82 
83  //material response
84  straintensor iniGreen;
85  stresstensor iniPK2;
86  BJtensor iniTangent;
87 
88  stresstensor B_PK2;
89  straintensor Fe;
90  stresstensor cauchystress;
91 
92  FDEPState *fdeps;
93  private:
94 
95  NDMaterial *getFDE3D() const;
96  fdYield *getFDY() const;
97  fdFlow *getFDF() const;
98  fdEvolution_S *getFDEvolutionS() const;
99  fdEvolution_T *getFDEvolutionT() const;
100  FDEPState *getFDEPState() const;
101 
102  int ImplicitAlgorithm();
103  int SemiImplicitAlgorithm();
104  public:
105  FiniteDeformationEP3D(int tag);
106  // Constructor 00
108  // Constructor 01
109  FiniteDeformationEP3D(int tag,
110  NDMaterial *fde3d_in,
111  fdYield *fdy_in,
112  fdFlow *fdf_in,
113  fdEvolution_S *fdEvolutionS_in,
114  fdEvolution_T *fdEvolutionT_in);
115  // Constructor 02
116  FiniteDeformationEP3D(int tag,
117  NDMaterial *fde3d_in,
118  fdYield *fdy_in,
119  fdFlow *fdf_in,
120  fdEvolution_S *fdEvolutionS_in);
121  // Constructor 03
122  FiniteDeformationEP3D(int tag,
123  NDMaterial *fde3d_in,
124  fdYield *fdy_in,
125  fdFlow *fdf_in,
126  fdEvolution_T *fdEvolutionT_in);
127  // Constructor 04
128  FiniteDeformationEP3D(int tag,
129  NDMaterial *fde3d_in,
130  fdYield *fdy_in,
131  fdFlow *fdf_in);
132  // Destructor
133  virtual ~FiniteDeformationEP3D( );
134 
135  double getRho(void) const;
136 
137  int setTrialF(const straintensor &f);
138  int setTrialFIncr(const straintensor &df);
139 
140  const Tensor &getTangentTensor(void) const;
141  const straintensor &getStrainTensor(void) const; // Default Green Strain
142  const stresstensor &getStressTensor(void) const ; // Default 2nd Piola Kirchhoff Stress
143  const straintensor &getF(void) const;
144  const straintensor getFp(void);
145 
146  int commitState(void) ;
147  int revertToLastCommit(void) ;
148  int revertToStart(void) ;
149 
150  NDMaterial *getCopy(void) const;
151  NDMaterial *getCopy(const std::string &) const;
152 
153  const std::string &getType(void) const;
154  int getOrder (void) const;
155 
156  int sendSelf(CommParameters &);
157  int recvSelf(const CommParameters &);
158 
159  void Print(std::ostream &s, int flag);
160 
161  const stresstensor getCauchyStressTensor(void);
162  };
163 } // end of XC namespace
164 
165 #endif
Definition: BJtensor.h:110
Base class for 2D and 3D materials.
Definition: NDMaterial.h:91
??.
Definition: fdFlow.h:70
??.
Definition: fdEvolution_T.h:62
??.
Definition: fdYield.h:69
Definition: stresst.h:68
??.
Definition: fdEvolution_S.h:66
Strain tensor.
Definition: straint.h:67
Finite deformation elasto-plastic 3D material.
Definition: FiniteDeformationEP3D.h:70
void Print(std::ostream &s, int flag)
Imprime el objeto.
Definition: FiniteDeformationEP3D.cpp:388
NDMaterial * getCopy(void) const
Virtual constructor.
Definition: FiniteDeformationEP3D.cpp:347
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
??.
Definition: FDEPState.h:62