xc
ConcreteBase.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 //ConcreteBase.h
29 
30 #ifndef ConcreteBase_h
31 #define ConcreteBase_h
32 
33 
34 #include "material/uniaxial/concrete/RawConcrete.h"
35 #include "material/uniaxial/UniaxialStateVars.h"
36 #include "material/uniaxial/UniaxialHistoryVars.h"
37 
38 namespace XC {
40 //
43  {
44  protected:
47 
50 
51  int sendData(Communicator &);
52  int recvData(const Communicator &);
53 
54  void revert_to_commited_history(void);
55  void revert_to_commited_state(void);
56  void revert_to_commited(void);
57  public:
58  ConcreteBase(int tag, int classTag, double fpc, double eco, double ecu);
59  ConcreteBase(int tag, int classTag);
60 
62  inline double getStrain(void) const
63  { return trialState.getStrain(); }
65  double getStress(void) const
66  { return trialState.getStress(); }
68  double getTangent(void) const
69  { return trialState.getTangent(); }
70  };
71 
75 
79 
82  {
83  // Reset trial history variables to last committed state
85  // Reset trial state variables to last committed state
87  }
88 
89 } // end of XC namespace
90 
91 
92 #endif
93 
94 
ConcreteBase(int tag, int classTag, double fpc, double eco, double ecu)
Constructor.
Definition: ConcreteBase.cpp:39
double fpc
Compression strength.
Definition: RawConcrete.h:45
void revert_to_commited_history(void)
Reset trial history variables to last committed state.
Definition: ConcreteBase.h:73
UniaxialHistoryVars stores values for strain and stiffness.
Definition: UniaxialHistoryVars.h:39
Communication parameters between processes.
Definition: Communicator.h:66
UniaxialStateVars convergedState
CONVERGED state Variables.
Definition: ConcreteBase.h:46
UniaxialHistoryVars convergedHistory
CONVERGED history Variables.
Definition: ConcreteBase.h:45
Base class for concrete materials.
Definition: RawConcrete.h:42
UniaxialStateVars stores values for material strain, stress and stiffness.
Definition: UniaxialStateVars.h:39
double getTangent(void) const
Returns the tangent to stress-strain diagram.
Definition: ConcreteBase.h:68
UniaxialHistoryVars trialHistory
TRIAL history Variables.
Definition: ConcreteBase.h:48
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: ConcreteBase.cpp:47
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: ConcreteBase.cpp:59
double getStrain(void) const
Returns material strain.
Definition: ConcreteBase.h:62
void revert_to_commited(void)
Reset trial state and history variables to last committed state.
Definition: ConcreteBase.h:81
void revert_to_commited_state(void)
Reset trial staquete variables to last committed state.
Definition: ConcreteBase.h:77
double getStress(void) const
Returns the material stress.
Definition: ConcreteBase.h:65
UniaxialStateVars trialState
TRIAL state Variables.
Definition: ConcreteBase.h:49
Base class for concrete materials.
Definition: ConcreteBase.h:42