XC Open source finite element analysis program
SolidMech2D.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 //SolidMech2D.h
28 
29 #include "NDMaterialPhysicalProperties.h"
30 
31 #ifndef SolidMech2D_h
32 #define SolidMech2D_h
33 
34 namespace XC {
36 //
39  {
40  protected:
41  double thickness;
42  double rho;
43 
44  DbTagData &getDbTagData(void) const;
45  int sendData(CommParameters &);
46  int recvData(const CommParameters &);
47 
48  public:
49  SolidMech2D(const size_t &nMat= 0, const NDMaterial *ptr_mat= nullptr, const double &t=0.0, const double &r= 0.0);
50  SolidMech2D(const size_t &, NDMaterial &,const std::string &, const double &t=0.0, const double &r= 0.0);
51 
52  inline double getThickness(void) const
53  { return thickness; }
54  inline void setThickness(const double &t)
55  { thickness= t; }
56  inline double getRho(void) const
57  { return rho; }
58  inline void setRho(const double &r)
59  { rho= r; }
60  Vector getRhoi(void) const;
61 
62  int sendSelf(CommParameters &);
63  int recvSelf(const CommParameters &);
64  };
65 
66 } // end of XC namespace
67 #endif
int recvData(const CommParameters &)
Receives object members through the channel being passed as parameter.
Definition: SolidMech2D.cc:65
double thickness
Element thickness.
Definition: SolidMech2D.h:41
int sendData(CommParameters &)
Send object members through the channel being passed as parameter.
Definition: SolidMech2D.cc:57
Base class for 2D and 3D materials.
Definition: NDMaterial.h:91
Definition: Vector.h:82
Vector que almacena los dbTags de los miembros de la clase.
Definition: DbTagData.h:43
Vector getRhoi(void) const
Returns densities for each position.
Definition: SolidMech2D.cc:44
double rho
Mass per unit volume (it&#39;s already defined in the material, why to repeat it here?).
Definition: SolidMech2D.h:42
DbTagData & getDbTagData(void) const
Returns a vector para almacenar los dbTags de los miembros de la clase.
Definition: SolidMech2D.cc:50
int recvSelf(const CommParameters &)
Receives object.
Definition: SolidMech2D.cc:87
Physical properties for solid mechanics.
Definition: NDMaterialPhysicalProperties.h:39
Physical properties for solid mechanics.
Definition: SolidMech2D.h:38
int sendSelf(CommParameters &)
Sends object.
Definition: SolidMech2D.cc:73
Communication parameters between processes.
Definition: CommParameters.h:65
SolidMech2D(const size_t &nMat=0, const NDMaterial *ptr_mat=nullptr, const double &t=0.0, const double &r=0.0)
Constructor.
Definition: SolidMech2D.cc:32
================================================================================
Definition: ContinuaReprComponent.h:34