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 commit_to_trial_history(void);
55  void commit_to_trial_state(void);
56  void commit_to_trial(void);
57  public:
58  ConcreteBase(int tag, int classTag, double fpc, double eco, double ecu);
59  ConcreteBase(int tag, int classTag);
60 
61  double getStrain(void) const;
62  double getStress(void) const;
63  double getTangent(void) const;
64  };
65 
69 
73 
76  {
77  // Reset trial history variables to last committed state
79  // Reset trial state variables to last committed state
81  }
82 
83 } // end of XC namespace
84 
85 
86 #endif
87 
88 
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 commit_to_trial(void)
Reset trial state and history variables to last committed state.
Definition: ConcreteBase.h:75
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
void commit_to_trial_history(void)
Reset trial history variables to last committed state.
Definition: ConcreteBase.h:67
UniaxialHistoryVars convergedHistory
CONVERGED history Variables.
Definition: ConcreteBase.h:45
Base class for concrete materials.
Definition: RawConcrete.h:42
void commit_to_trial_state(void)
Reset trial state variables to last committed state.
Definition: ConcreteBase.h:71
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.cpp:55
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:59
int recvData(const Communicator &)
Receives object members through the communicator argument.
Definition: ConcreteBase.cpp:71
double getStrain(void) const
Returns material strain.
Definition: ConcreteBase.cpp:51
double getStress(void) const
Returns the material stress.
Definition: ConcreteBase.cpp:47
UniaxialStateVars trialState
TRIAL state Variables.
Definition: ConcreteBase.h:49
Base class for concrete materials.
Definition: ConcreteBase.h:42