XC Open source finite element analysis program
ZeroLengthMaterials.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 //ZeroLengthMaterials.h
28 
29 
30 #ifndef ZeroLengthMaterials_h
31 #define ZeroLengthMaterials_h
32 
33 #include <material/uniaxial/DqUniaxialMaterial.h>
34 
35 namespace XC {
36 class UniaxialMaterial;
37 class ZeroLength;
38 class MaterialLoader;
39 
41 //
48  {
49  private:
50  // private methods
51  void checkDirection(void);
52 
53  // Storage for uniaxial material models
54  std::deque<int> direcciones;
55 
56  protected:
57  MaterialLoader *get_material_loader(void);
58 
59  public:
60  // Constructor for a single 1d material model
61  ZeroLengthMaterials(ZeroLength *owner,UniaxialMaterial &theMaterial,int direction);
62  ZeroLengthMaterials(ZeroLength *owner,UniaxialMaterial *theMaterial,int direction );
63  // Constructor for a multiple 1d material models
64  ZeroLengthMaterials(ZeroLength *owner,const DqUniaxialMaterial &theMaterial,const ID &direction);
65  ZeroLengthMaterials(ZeroLength *owner= nullptr);
66  void push_back(const int &dir,const UniaxialMaterial *);
67  void push_front(const int &dir,const UniaxialMaterial *);
68 
69  inline const int &getDir(const size_t i) const
70  { return direcciones[i]; }
71  inline int &getDir(const size_t i)
72  { return direcciones[i]; }
73 
74  int sendSelf(CommParameters &);
75  int recvSelf(const CommParameters &);
76  void Print(std::ostream &s, int flag =0);
77 
78  void clear(void);
79 
80 
81  };
82 } // end of XC namespace
83 
84 #endif
85 
86 
87 
88 
ZeroLengthMaterials(ZeroLength *owner, UniaxialMaterial &theMaterial, int direction)
Constructor:
Definition: ZeroLengthMaterials.cc:39
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: ZeroLengthMaterials.cc:159
int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: ZeroLengthMaterials.cc:140
Zero length material.
Definition: ZeroLength.h:89
A ZeroLengthElement is defined by two nodes with the same coordinate. One or more material objects ma...
Definition: ZeroLengthMaterials.h:47
Definition: ID.h:77
Contenedor de pointers to UniaxialMaterial.
Definition: DqUniaxialMaterial.h:44
Material handler (definition, searching,...).
Definition: MaterialLoader.h:45
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
Base class for uniaxial materials.
Definition: UniaxialMaterial.h:88