XC Open source finite element analysis program
FDdecoupledElastic3D.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 FDdecoupledElastic3D_H
54 #define FDdecoupledElastic3D_H
55 
56 #include "material/nD/FiniteDeformation/FiniteDeformationElastic3D.h"
57 #include "utility/matrix/nDarray/stresst.h"
58 #include "utility/matrix/nDarray/straint.h"
59 
60 
61 
62 namespace XC {
63  class WEnergy;
64 
66 //
69  {
70  protected:
71  WEnergy *W;
72 
73  straintensor F;
74  straintensor C;
75  double J;
76  straintensor Cinv;
77  double lambda1, lambda2, lambda3;
78  double lambda_wave1, lambda_wave2, lambda_wave3;
79  int caseIndex;
80  int FromForC;
81 
82  Tensor Stiffness;
83  straintensor thisGreenStrain;
84  stresstensor thisPK2Stress;
85 
86  void libera(void);
87  void alloc(const WEnergy *);
88  protected:
89  int sendData(CommParameters &);
90  int recvData(const CommParameters &);
91  private:
92  const WEnergy *getWEnergy(void) const;
93 
94  const double getJ(void) const;
95  const Vector getlambda(void) const;
96  const Vector getlambda_wave(void) const;
97 
98  const Vector wa(void);
99  const Tensor Yab(void);
100  const Tensor FDisoStiffness(void);
101  const Tensor FDvolStiffness(void);
102 
103 
104 // int setInitialTangentTensor(void);
105  int ComputeTrials(void);
106  int getCaseIndex(void) const;
107  public:
108  FDdecoupledElastic3D(int tag, int classTag, WEnergy * , double );
109  FDdecoupledElastic3D(int tag, WEnergy * , double );
110  FDdecoupledElastic3D(int tag, WEnergy * );
111  FDdecoupledElastic3D(int tag= 0);
113 
114  virtual ~FDdecoupledElastic3D();
115 
116 
117  double getRho(void) const;
118 
119  int setTrialF(const straintensor &f);
120  int setTrialFIncr(const straintensor &df);
121  int setTrialC(const straintensor &c);
122  int setTrialCIncr(const straintensor &dc);
123 
124  const Tensor &getTangentTensor(void) const; // Default Lagrangian Tangent Tensor
125  const Tensor &getInitialTangentTensor(void) const;
126 
127  const straintensor &getStrainTensor(void) const; // Default Green Lagrangian Strain
128  const stresstensor &getStressTensor(void) const; // Default 2nd Piola Kirchhoff Stress
129  const straintensor &getF(void) const;
130  const straintensor &getC(void) const;
131 
132 // virtual const Vector &getStress(void) const;
133 // virtual const Vector &getStrain(void) const;
134 
135 // virtual const stresstensor getCommittedStress(void);
136 // virtual const straintensor getCommittedStrain(void);
137 
138 // virtual const straintensor getPlasticStrainTensor(void);
139 
140  int commitState(void) ;
141  int revertToLastCommit(void) ;
142  int revertToStart(void) ;
143 
144  NDMaterial *getCopy(void) const;
145  NDMaterial *getCopy(const std::string &) const;
146 
147  const std::string &getType(void) const;
148  int getOrder (void) const;
149 
150  int sendSelf(CommParameters &);
151  int recvSelf(const CommParameters &);
152 
153  void Print(std::ostream &s, int flag = 0);
154 
155 // int setParameter(const std::vector<std::string> &argv, Parameter &param);
156 // int updateParameter(int parameterID, Information &info);
157 
158  const stresstensor getPK1StressTensor(void) ;
159  const stresstensor getCauchyStressTensor(void) ;
160  };
161 } // end of XC namespace
162 
163 #endif
164 
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: FDdecoupledElastic3D.cpp:475
Base class for 2D and 3D materials.
Definition: NDMaterial.h:91
Definition: Vector.h:82
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: FDdecoupledElastic3D.cpp:524
??
Definition: WEnergy.h:64
FDdecoupledElastic3D(int tag, int classTag, WEnergy *, double)
Constructor.
Definition: FDdecoupledElastic3D.cpp:80
??.
Definition: FDdecoupledElastic3D.h:68
Definition: stresst.h:68
3D finite deformation elastic material.
Definition: FiniteDeformationElastic3D.h:63
Strain tensor.
Definition: straint.h:67
void Print(std::ostream &s, int flag=0)
Imprime el objeto.
Definition: FDdecoupledElastic3D.cpp:543
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: FDdecoupledElastic3D.cpp:492
NDMaterial * getCopy(void) const
Virtual constructor.
Definition: FDdecoupledElastic3D.cpp:457
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: FDdecoupledElastic3D.cpp:509