xc
Joint2DPhysicalProperties.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 //SectionFDPhysicalProperties.h
29 
30 #ifndef Joint2DPhysicalProperties_h
31 #define Joint2DPhysicalProperties_h
32 
33 #include "UniaxialMatPhysicalProperties.h"
34 #include "DamageModelVector.h"
35 #include "SpringModels.h"
36 
37 namespace XC {
38 
40 //
43  {
44  protected:
45  DamageModelVector theDamages;
46  ID fixedEnd;
47 
48  DbTagData &getDbTagData(void) const;
49  int sendData(Communicator &);
50  int recvData(const Communicator &);
51  void set_springs(const SpringModels &);
53  public:
54  Joint2DPhysicalProperties(const size_t &nMat= 0,const UniaxialMaterial *ptr_mat= nullptr);
57 
58  inline const DamageModelVector &getDamageModelVector(void) const
59  { return theDamages; }
60  inline const ID &getFixedEndInfo(void) const
61  { return fixedEnd; }
62 
63  // public methods to set the state of the properties
64  int commitState(void);
65  int revertToLastCommit(void);
66  int revertToStart(void);
67 
68  int sendSelf(Communicator &);
69  int recvSelf(const Communicator &);
70  };
71 
72 } // end of XC namespace
73 #endif
Communication parameters between processes.
Definition: Communicator.h:66
Joint2DPhysicalProperties(const size_t &nMat=0, const UniaxialMaterial *ptr_mat=nullptr)
Constructor.
Definition: Joint2DPhysicalProperties.cc:60
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:93
Vector that stores the dbTags of the class members.
Definition: DbTagData.h:44
Physical properties for shells.
Definition: Joint2DPhysicalProperties.h:42
Vector of integers.
Definition: ID.h:95
void set_damage_models(const DamageModelVector &)
Set the damage models.
Definition: Joint2DPhysicalProperties.cc:56
int recvSelf(const Communicator &)
Receives object.
Definition: Joint2DPhysicalProperties.cc:147
int commitState(void)
Commit state of the springs and the damage models.
Definition: Joint2DPhysicalProperties.cc:86
Spring models for Joint elements.
Definition: SpringModels.h:41
DbTagData & getDbTagData(void) const
Returns a vector to store class dbTags.
Definition: Joint2DPhysicalProperties.cc:108
int recvData(const Communicator &)
Receives members through the communicator argument.
Definition: Joint2DPhysicalProperties.cc:124
void set_springs(const SpringModels &)
Make copy of the uniaxial materials for the element.
Definition: Joint2DPhysicalProperties.cc:35
Physical properties for shells.
Definition: UniaxialMatPhysicalProperties.h:41
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
int sendData(Communicator &)
Send members through the communicator argument.
Definition: Joint2DPhysicalProperties.cc:115
Vector of pointers to damage models.
Definition: DamageModelVector.h:46
int sendSelf(Communicator &)
Sends object.
Definition: Joint2DPhysicalProperties.cc:133