XC Open source finite element analysis program
ConcreteBase.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 //ConcreteBase.h
28 
29 #ifndef ConcreteBase_h
30 #define ConcreteBase_h
31 
32 
33 #include "material/uniaxial/concrete/RawConcrete.h"
34 #include "material/uniaxial/UniaxialStateVars.h"
35 #include "material/uniaxial/UniaxialHistoryVars.h"
36 
37 namespace XC {
39 //
42  {
43  protected:
46 
49 
50  int sendData(CommParameters &);
51  int recvData(const CommParameters &);
52 
53  void commit_to_trial_history(void);
54  void commit_to_trial_state(void);
55  void commit_to_trial(void);
56  public:
57  ConcreteBase(int tag, int classTag, double fpc, double eco, double ecu);
58  ConcreteBase(int tag, int classTag);
59 
60  double getStrain(void) const;
61  double getStress(void) const;
62  double getTangent(void) const;
63  };
64 
68 
72 
75  {
76  // Reset trial history variables to last committed state
78  // Reset trial state variables to last committed state
80  }
81 
82 } // end of XC namespace
83 
84 
85 #endif
86 
87 
void commit_to_trial_history(void)
Reset trial history variables to last committed state.
Definition: ConcreteBase.h:66
void commit_to_trial_state(void)
Reset trial state variables to last committed state.
Definition: ConcreteBase.h:70
Base class for concrete materials.
Definition: RawConcrete.h:41
UniaxialHistoryVars convergedHistory
CONVERGED history Variables.
Definition: ConcreteBase.h:44
ConcreteBase(int tag, int classTag, double fpc, double eco, double ecu)
Constructor.
Definition: ConcreteBase.cpp:39
double getStrain(void) const
Returns material strain.
Definition: ConcreteBase.cpp:51
double getStress(void) const
Returns the material stress.
Definition: ConcreteBase.cpp:47
UniaxialStateVars stores values for material strain, stress and stiffness.
Definition: UniaxialStateVars.h:38
double fpc
Compression strength.
Definition: RawConcrete.h:44
UniaxialStateVars convergedState
CONVERGED state Variables.
Definition: ConcreteBase.h:45
double getTangent(void) const
Returns the tangent to stress-strain diagram.
Definition: ConcreteBase.cpp:55
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: ConcreteBase.cpp:71
void commit_to_trial(void)
Reset trial state and history variables to last committed state.
Definition: ConcreteBase.h:74
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: ConcreteBase.cpp:59
UniaxialHistoryVars stores values for strain and stiffness.
Definition: UniaxialHistoryVars.h:38
Base class for concrete materials.
Definition: ConcreteBase.h:41
Communication parameters between processes.
Definition: CommParameters.h:65
UniaxialStateVars trialState
TRIAL state Variables.
Definition: ConcreteBase.h:48
UniaxialHistoryVars trialHistory
TRIAL history Variables.
Definition: ConcreteBase.h:47
================================================================================
Definition: ContinuaReprComponent.h:34