XC Open source finite element analysis program
FDEPState.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 FDEPState_H
53 #define FDEPState_H
54 
55 #include "utility/matrix/nDarray/straint.h"
56 #include "utility/matrix/nDarray/stresst.h"
57 
58 namespace XC {
60 //
62 class FDEPState
63  {
64  private:
65  straintensor FpInVar; // Plastic F;
66  double StressLikeInVar; // Scalar stress like evolution variable
67  double StrainLikeInVar; // Scalar strain like evolution variable
68  stresstensor StressLikeKiVar; // Tensor stress like evolution variable
69  straintensor StrainLikeKiVar; // Tensor strain like evolution variable
70 
71 
72  straintensor CommitedFpInVar; // Plastic F;
73  double CommitedStressLikeInVar; // Scalar stress like evolution variable
74  double CommitedStrainLikeInVar; // Scalar strain like evolution variable
75  stresstensor CommitedStressLikeKiVar; // Tensor stress like evolution variable
76  straintensor CommitedStrainLikeKiVar; // Tensor strain like evolution variable
77  public:
78  FDEPState();
79  FDEPState ( const straintensor& xFpInVar,
80  double xStressLikeInVar,
81  double xStrainLikeInVar,
82  const stresstensor& xStressLikeKiVar,
83  const straintensor& xStrainLikeKiVar,
84  const straintensor& xCommitedFpInVar,
85  double xCommitedStressLikeInVar,
86  double xCommitedStrainLikeInVar,
87  const stresstensor& xCommitedStressLikeKiVar,
88  const straintensor& xCommitedStrainLikeKiVar);
89  FDEPState *newObj();
90  FDEPState( const FDEPState& fdeps );
91 
92  straintensor getFpInVar() const;
93  double getStressLikeInVar() const;
94  double getStrainLikeInVar() const;
95  stresstensor getStressLikeKiVar() const;
96  straintensor getStrainLikeKiVar() const;
97 
98  straintensor getCommitedFpInVar() const;
99  double getCommitedStressLikeInVar() const;
100  double getCommitedStrainLikeInVar() const;
101  stresstensor getCommitedStressLikeKiVar() const;
102  straintensor getCommitedStrainLikeKiVar() const;
103 
104  void setFpInVar(const straintensor& xFpInVar);
105  void setStressLikeInVar(double xStressLikeInVar);
106  void setStrainLikeInVar(double xStrainLikeInVar);
107  void setStressLikeKiVar(const stresstensor& xStressLikeKiVar);
108  void setStrainLikeKiVar(const straintensor& xStrainLikeKiVar);
109 
110  void setCommitedFpInVar(const straintensor& xCommitedFpInVar);
111  void setCommitedStressLikeInVar(double xCommitedStressLikeInVar);
112  void setCommitedStrainLikeInVar(double xCommitedStrainLikeInVar);
113  void setCommitedStressLikeKiVar(const stresstensor& xCommitedStressLikeKiVar);
114  void setCommitedStrainLikeKiVar(const straintensor& xCommitedStrainLikeKiVar);
115 
116  int commitState(void) ;
117  int revertToLastCommit(void) ;
118  int revertToStart(void) ;
119  };
120 } // end of XC namespace
121 
122 
123 #endif
Definition: stresst.h:68
Strain tensor.
Definition: straint.h:67
================================================================================
Definition: ContinuaReprComponent.h:34
??.
Definition: FDEPState.h:62