xc
FDEPState.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 FDEPState_H
54 #define FDEPState_H
55 
56 #include "utility/matrix/nDarray/straint.h"
57 #include "utility/matrix/nDarray/stresst.h"
58 
59 namespace XC {
61 //
63 class FDEPState
64  {
65  private:
66  straintensor FpInVar; // Plastic F;
67  double StressLikeInVar; // Scalar stress like evolution variable
68  double StrainLikeInVar; // Scalar strain like evolution variable
69  stresstensor StressLikeKiVar; // Tensor stress like evolution variable
70  straintensor StrainLikeKiVar; // Tensor strain like evolution variable
71 
72 
73  straintensor CommittedFpInVar; // Plastic F;
74  double CommittedStressLikeInVar; // Scalar stress like evolution variable
75  double CommittedStrainLikeInVar; // Scalar strain like evolution variable
76  stresstensor CommittedStressLikeKiVar; // Tensor stress like evolution variable
77  straintensor CommittedStrainLikeKiVar; // Tensor strain like evolution variable
78  public:
79  FDEPState();
80  FDEPState ( const straintensor& xFpInVar,
81  double xStressLikeInVar,
82  double xStrainLikeInVar,
83  const stresstensor& xStressLikeKiVar,
84  const straintensor& xStrainLikeKiVar,
85  const straintensor& xCommittedFpInVar,
86  double xCommittedStressLikeInVar,
87  double xCommittedStrainLikeInVar,
88  const stresstensor& xCommittedStressLikeKiVar,
89  const straintensor& xCommittedStrainLikeKiVar);
90  FDEPState *getCopy(void);
91  FDEPState( const FDEPState& fdeps );
92 
93  straintensor getFpInVar() const;
94  double getStressLikeInVar() const;
95  double getStrainLikeInVar() const;
96  stresstensor getStressLikeKiVar() const;
97  straintensor getStrainLikeKiVar() const;
98 
99  straintensor getCommittedFpInVar() const;
100  double getCommittedStressLikeInVar() const;
101  double getCommittedStrainLikeInVar() const;
102  stresstensor getCommittedStressLikeKiVar() const;
103  straintensor getCommittedStrainLikeKiVar() const;
104 
105  void setFpInVar(const straintensor& xFpInVar);
106  void setStressLikeInVar(double xStressLikeInVar);
107  void setStrainLikeInVar(double xStrainLikeInVar);
108  void setStressLikeKiVar(const stresstensor& xStressLikeKiVar);
109  void setStrainLikeKiVar(const straintensor& xStrainLikeKiVar);
110 
111  void setCommittedFpInVar(const straintensor& xCommittedFpInVar);
112  void setCommittedStressLikeInVar(double xCommittedStressLikeInVar);
113  void setCommittedStrainLikeInVar(double xCommittedStrainLikeInVar);
114  void setCommittedStressLikeKiVar(const stresstensor& xCommittedStressLikeKiVar);
115  void setCommittedStrainLikeKiVar(const straintensor& xCommittedStrainLikeKiVar);
116 
117  int commitState(void) ;
118  int revertToLastCommit(void) ;
119  int revertToStart(void) ;
120  };
121 } // end of XC namespace
122 
123 
124 #endif
Stress tensor.
Definition: stresst.h:70
Large deformation hyperelastic elasto-plastic state.
Definition: FDEPState.h:63
FDEPState * getCopy(void)
Virtual constructor.
Definition: FDEPState.cpp:96
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
int revertToStart(void)
Revert the material to its initial state.
Definition: FDEPState.cpp:262
Strain tensor.
Definition: straint.h:68