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