xc
DamageModelVector.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 // under the terms of the GNU General Public License 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 //DamageModelVector.h
29 
30 #ifndef DamageModelVector_h
31 #define DamageModelVector_h
32 
33 #include "DamageModels.h"
34 #include "material/MaterialVector.h"
35 #include "material/uniaxial/UniaxialMaterial.h"
36 #include "utility/kernel/CommandEntity.h"
37 #include "utility/actor/actor/MovableID.h"
38 
39 
40 namespace XC {
41 
43 //
47  {
48  protected:
49  void clearAll(void);
50 
51  DbTagData &getDbTagData(void) const;
52  int sendData(Communicator &);
53  int recvData(const Communicator &);
54  public:
56 
57  DamageModelVector(const size_t &nDamageModels,const DamageModel *dmgModel= nullptr);
58  ~DamageModelVector(void)
59  { clearAll(); }
60 
61  int commitState(const material_vector &);
62 
63  int sendSelf(Communicator &);
64  int recvSelf(const Communicator &);
65  };
66 
67 
68 
69 } // end of XC namespace
70 
71 #endif
DamageModelVector(const size_t &nDamageModels, const DamageModel *dmgModel=nullptr)
Default constructor.
Definition: DamageModelVector.cc:33
Damage models for Joint elements.
Definition: DamageModels.h:41
Communication parameters between processes.
Definition: Communicator.h:66
Object that can move between processes.
Definition: MovableObject.h:100
int sendData(Communicator &)
Send object members through the communicator argument.
Definition: DamageModelVector.cc:89
Vector that stores the dbTags of the class members.
Definition: DbTagData.h:44
int commitState(const material_vector &)
Consuma el estado de los dmg_models.
Definition: DamageModelVector.cc:45
Objet that can execute python scripts.
Definition: CommandEntity.h:40
int sendSelf(Communicator &)
Sends object through the communicator argument.
Definition: DamageModelVector.cc:106
int recvSelf(const Communicator &)
Receives object through the communicator argument.
Definition: DamageModelVector.cc:119
void clearAll(void)
Removes all members.
Definition: DamageModelVector.cc:38
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
int recvData(const Communicator &)
Receives object through the communicator argument.
Definition: DamageModelVector.cc:97
Vector of pointers to damage models.
Definition: DamageModelVector.h:46
DbTagData & getDbTagData(void) const
Returns a vector to store the dbTags of the class members.
Definition: DamageModelVector.cc:81
Base class for damage models.
Definition: DamageModel.h:107