XC Open source finite element analysis program
CrossSectionProperties3d.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 //CrossSectionProperties3d.h
28 
29 #ifndef CrossSectionProperties3d_h
30 #define CrossSectionProperties3d_h
31 
32 #include "CrossSectionProperties2d.h"
33 
34 namespace XC {
35 
37 //
41  {
42  private:
43  double iy, iyz, j;
44  static Matrix ks4;
45  static Matrix ks6;
46  protected:
47  DbTagData &getDbTagData(void) const;
48  int sendData(CommParameters &);
49  int recvData(const CommParameters &);
50 
51  public:
52  CrossSectionProperties3d(double E, double A, double Iz, double Iy, double G, double J);
53  CrossSectionProperties3d(double EA, double EIz, double EIy, double GJ);
55 
56  bool check_values(void);
57  inline double &Iz(void)
58  { return CrossSectionProperties2d::I(); }
59  inline const double &Iz(void) const
60  { return CrossSectionProperties2d::I(); }
61  inline void setIz(const double &i)
62  { CrossSectionProperties2d::setI(i); }
63  inline double &Iy(void)
64  { return iy; }
65  inline const double &Iy(void) const
66  { return iy; }
67  inline void setIy(const double &i)
68  { iy= i; }
69  inline double &Iyz(void)
70  { return iyz; }
71  inline const double &Iyz(void) const
72  { return iyz; }
73  inline void setIyz(const double &i)
74  { iyz= i; }
75  inline double &J(void)
76  { return j; }
77  inline const double &J(void) const
78  { return j; }
79  inline void setJ(const double &i)
80  { j= i; }
82  inline double EIz(void) const
83  { return CrossSectionProperties2d::EI(); }
85  inline double EIy(void) const
86  { return E()*iy; }
89  inline double EIyz(void) const
90  { return E()*iyz; }
92  inline double GJ(void) const
93  { return G()*j; }
94 
95  double getTheta(void) const;
96  double getI1(void) const;
97  double getI2(void) const;
98  PrincipalAxesOfInertia2D getEjesInercia(void) const;
99  Vector2d getVDirEje1(void) const;
100  Vector2d getVDirStrongAxis(void) const;
101  Vector2d getVDirEje2(void) const;
102  Vector2d getVDirWeakAxis(void) const;
103 
104  const Matrix &getSectionTangent4x4(void) const;
105  const Matrix &getInitialTangent4x4(void) const;
106  const Matrix &getSectionFlexibility4x4(void) const;
107  const Matrix &getInitialFlexibility4x4(void) const;
108  const Matrix &getSectionTangent6x6(void) const;
109  const Matrix &getInitialTangent6x6(void) const;
110  const Matrix &getSectionFlexibility6x6(void) const;
111  const Matrix &getInitialFlexibility6x6(void) const;
112 
113  void rotate(const double &theta);
114 
115  int sendSelf(CommParameters &);
116  int recvSelf(const CommParameters &);
117 
118  int setParameter(const std::vector<std::string> &argv,Parameter &param,SectionForceDeformation *scc);
119  int updateParameter(int parameterID, Information &info);
120 
121 
122  void Print (std::ostream &s, int flag = 0) const;
123  };
124 
125 } // end of XC namespace
126 
127 #endif
int sendSelf(CommParameters &)
Sends object through the channel being passed as parameter.
Definition: CrossSectionProperties3d.cc:290
double EI(void) const
Return z bending stiffness.
Definition: CrossSectionProperties2d.h:103
PrincipalAxesOfInertia2D getEjesInercia(void) const
Returns the principal axis of inertia.
Definition: CrossSectionProperties3d.cc:90
Vector que almacena los dbTags de los miembros de la clase.
Definition: DbTagData.h:43
const Matrix & getSectionFlexibility4x4(void) const
Returns the flexibility matrix.
Definition: CrossSectionProperties3d.cc:124
const Matrix & getSectionFlexibility6x6(void) const
Returns the flexibility matrix.
Definition: CrossSectionProperties3d.cc:173
const Matrix & getInitialFlexibility4x4(void) const
Returns the initial flexibility matrix.
Definition: CrossSectionProperties3d.cc:150
double EIz(void) const
Returns the z bending stiffness.
Definition: CrossSectionProperties3d.h:82
void rotate(const double &theta)
Couterclockwise rotation of the section by the angle being passed as parameter.
Definition: CrossSectionProperties3d.cc:213
Mechanical properties of a section (area, moments of inertia,...) in a three-dimensional problem (six...
Definition: CrossSectionProperties3d.h:40
Information about an element.
Definition: Information.h:80
DbTagData & getDbTagData(void) const
Returns a vector para almacenar los dbTags de los miembros de la clase.
Definition: CrossSectionProperties3d.cc:267
Vector2d getVDirEje1(void) const
Returns principal axis I (strong).
Definition: CrossSectionProperties3d.cc:96
CrossSectionProperties3d(void)
Constructor.
Definition: CrossSectionProperties3d.cc:64
int recvData(const CommParameters &)
Receives members through the channel being passed as parameter.
Definition: CrossSectionProperties3d.cc:282
const Matrix & getSectionTangent6x6(void) const
Returns the tangent stiffness matrix.
Definition: CrossSectionProperties3d.cc:154
const Matrix & getInitialFlexibility6x6(void) const
Returns the initial flexibility matrix.
Definition: CrossSectionProperties3d.cc:208
Vector2d getVDirStrongAxis(void) const
Returns principal axis I (strong).
Definition: CrossSectionProperties3d.cc:99
Definition: Matrix.h:82
const Matrix & getInitialTangent4x4(void) const
Returns the initial tangent stiffness matrix.
Definition: CrossSectionProperties3d.cc:120
double EA(void) const
Return axial stiffness.
Definition: CrossSectionProperties2d.h:100
const Matrix & getInitialTangent6x6(void) const
Returns the initial tangent stiffness matrix.
Definition: CrossSectionProperties3d.cc:169
int recvSelf(const CommParameters &)
Receives object through the channel being passed as parameter.
Definition: CrossSectionProperties3d.cc:304
double GJ(void) const
Returns the torsional stiffness.
Definition: CrossSectionProperties3d.h:92
double EIyz(void) const
Returns the contribution to the bending stiffness matrix of the product of inertia.
Definition: CrossSectionProperties3d.h:89
double EIy(void) const
Returns the y bending stiffness.
Definition: CrossSectionProperties3d.h:85
Mechanical properties of a cross section (area, moments of inertia,...) for a bi-dimensional problem ...
Definition: CrossSectionProperties2d.h:52
Definition: Parameter.h:65
Base class for force deformation section models. Constitutive equations of the section.
Definition: SectionForceDeformation.h:86
Vector2d getVDirEje2(void) const
Returns principal axis II (weak).
Definition: CrossSectionProperties3d.cc:102
Vector2d getVDirWeakAxis(void) const
Returns principal axis II (weak).
Definition: CrossSectionProperties3d.cc:105
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34
const Matrix & getSectionTangent4x4(void) const
Returns the tangent stiffness matrix.
Definition: CrossSectionProperties3d.cc:109
double getI1(void) const
Returns the major principal axis of inertia.
Definition: CrossSectionProperties3d.cc:82
int sendData(CommParameters &)
Send members through the channel being passed as parameter.
Definition: CrossSectionProperties3d.cc:274
double getTheta(void) const
Returns the angle between the principal axes and the local system.
Definition: CrossSectionProperties3d.cc:78
double getI2(void) const
Returns the minor principal axis of inertia.
Definition: CrossSectionProperties3d.cc:86