xc
Joint2DPhysicalProperties.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 //SectionFDPhysicalProperties.h
28 
29 #ifndef Joint2DPhysicalProperties_h
30 #define Joint2DPhysicalProperties_h
31 
32 #include "UniaxialMatPhysicalProperties.h"
33 #include "material/damage/DamageModelVector.h"
34 
35 namespace XC {
36 
38 //
41  {
42  protected:
43  DamageModelVector theDamages;
44  ID fixedEnd;
45 
46  DbTagData &getDbTagData(void) const;
47  int sendData(CommParameters &);
48  int recvData(const CommParameters &);
49  void set_springs(const UniaxialMaterial &spring1, const UniaxialMaterial &spring2, const UniaxialMaterial &spring3, const UniaxialMaterial &spring4, const UniaxialMaterial &springC);
50  void set_damage_models(const DamageModel &, const DamageModel &, const DamageModel &, const DamageModel &, const DamageModel &);
51  public:
52  Joint2DPhysicalProperties(const size_t &nMat= 0,const UniaxialMaterial *ptr_mat= nullptr);
53  Joint2DPhysicalProperties(const UniaxialMaterial &spring1, const UniaxialMaterial &spring2, const UniaxialMaterial &spring3, const UniaxialMaterial &spring4, const UniaxialMaterial &springC);
54  Joint2DPhysicalProperties(const UniaxialMaterial &spring1, const UniaxialMaterial &spring2, const UniaxialMaterial &spring3, const UniaxialMaterial &spring4, const UniaxialMaterial &springC, const DamageModel &dmg1, const DamageModel &dmg2, const DamageModel &dmg3, const DamageModel &dmg4, const DamageModel &dmgC);
55 
56  inline const DamageModelVector &getDamageModelVector(void) const
57  { return theDamages; }
58  inline const ID &getFixedEndInfo(void) const
59  { return fixedEnd; }
60 
61  // public methods to set the state of the properties
62  int commitState(void);
63  int revertToLastCommit(void);
64  int revertToStart(void);
65 
66  int sendSelf(CommParameters &);
67  int recvSelf(const CommParameters &);
68  };
69 
70 } // end of XC namespace
71 #endif
int recvSelf(const CommParameters &)
Receives object.
Definition: Joint2DPhysicalProperties.cc:151
Joint2DPhysicalProperties(const size_t &nMat=0, const UniaxialMaterial *ptr_mat=nullptr)
Constructor.
Definition: Joint2DPhysicalProperties.cc:65
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:92
Vector that stores the dbTags of the class members.
Definition: DbTagData.h:43
Physical properties for shells.
Definition: Joint2DPhysicalProperties.h:40
Vector of integers.
Definition: ID.h:93
DbTagData & getDbTagData(void) const
Returns a vector to store class dbTags.
Definition: Joint2DPhysicalProperties.cc:112
int sendSelf(CommParameters &)
Sends object.
Definition: Joint2DPhysicalProperties.cc:137
int sendData(CommParameters &)
Send members through the channel being passed as parameter.
Definition: Joint2DPhysicalProperties.cc:119
int recvData(const CommParameters &)
Receives members through the channel being passed as parameter.
Definition: Joint2DPhysicalProperties.cc:128
Physical properties for shells.
Definition: UniaxialMatPhysicalProperties.h:40
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
Communication parameters between processes.
Definition: CommParameters.h:65
Vector de pointers to damage models.
Definition: DamageModelVector.h:47
void set_damage_models(const DamageModel &, const DamageModel &, const DamageModel &, const DamageModel &, const DamageModel &)
Set the damage models.
Definition: Joint2DPhysicalProperties.cc:55
Definition: DamageModel.h:86
void set_springs(const UniaxialMaterial &spring1, const UniaxialMaterial &spring2, const UniaxialMaterial &spring3, const UniaxialMaterial &spring4, const UniaxialMaterial &springC)
Make copy of the uniaxial materials for the element.
Definition: Joint2DPhysicalProperties.cc:35