XC Open source finite element analysis program
UniaxialHistoryVars.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 #ifndef UniaxialHistoryVars_h
29 #define UniaxialHistoryVars_h
30 
31 #include "utility/actor/actor/MovableObject.h"
32 
33 namespace XC {
35 //
39  {
40  private:
41  double minStrain;
42  double unloadSlope;
43  double endStrain;
44 
45  protected:
46  int sendData(CommParameters &);
47  int recvData(const CommParameters &);
48  public:
49  UniaxialHistoryVars(void);
50 
51  inline const double &getMinStrain(void) const
52  { return minStrain; }
53  inline const double &getUnloadSlope(void) const
54  { return unloadSlope; }
55  inline const double &getEndStrain(void) const
56  { return endStrain; }
57  inline double &MinStrain(void)
58  { return minStrain; }
59  inline double &UnloadSlope(void)
60  { return unloadSlope; }
61  inline double &EndStrain(void)
62  { return endStrain; }
63 
64  int revertToStart(const double &);
65  void zero(void);
66 
67  int sendSelf(CommParameters &);
68  int recvSelf(const CommParameters &);
69 
70  void Print(std::ostream &s, int flag =0);
71 
72  };
73 } // end of XC namespace
74 
75 
76 #endif
77 
int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: UniaxialHistoryVars.cc:65
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: UniaxialHistoryVars.cc:58
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: UniaxialHistoryVars.cc:51
Object that can move between processes.
Definition: MovableObject.h:91
int revertToStart(const double &)
Returns the initial material state.
Definition: UniaxialHistoryVars.cc:35
UniaxialHistoryVars stores values for strain and stiffness.
Definition: UniaxialHistoryVars.h:38
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: UniaxialHistoryVars.cc:79