XC Open source finite element analysis program
ProtoBeam3d.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 //ProtoBeam3d.h
28 
29 #ifndef ProtoBeam3d_h
30 #define ProtoBeam3d_h
31 
32 #include "domain/mesh/element/Element1D.h"
33 #include "material/section/repres/CrossSectionProperties3d.h"
34 
35 namespace XC {
37 //
39 class ProtoBeam3d : public Element1D
40  {
41  protected:
42  CrossSectionProperties3d ctes_scc; //Section mechanical properties E,A,Iy,...
43  int sendData(CommParameters &);
44  int recvData(const CommParameters &);
45  void set_material(const Material *m);
46 
47  public:
48  ProtoBeam3d(int tag, int class_tag,const Material *m= nullptr);
49  ProtoBeam3d(int tag, int class_tag, int Nd1, int Nd2);
50  ProtoBeam3d(int tag, int class_tag, double A, double E, double G, double Jx, double Iy, double Iz, int Nd1, int Nd2);
51  int getNumDOF(void) const;
52  inline CrossSectionProperties3d getSectionProperties(void) const
53  { return ctes_scc; }
54  void setSectionProperties(const CrossSectionProperties3d &ctes)
55  { ctes_scc= ctes; }
56 
59  double getStrongAxisAngle(void) const;
60  double getWeakAxisAngle(void) const;
61  };
62 } // end of XC namespace
63 
64 #endif
int recvData(const CommParameters &)
Receives members through the channel being passed as parameter.
Definition: ProtoBeam3d.cc:77
Base class for materials.
Definition: Material.h:85
Vector getVDirWeakAxisLocalCoord(void) const
Returns the direction vector of element weak axis expressed in the local coordinate system...
Definition: ProtoBeam3d.cc:95
Definition: Vector.h:82
Mechanical properties of a section (area, moments of inertia,...) in a three-dimensional problem (six...
Definition: CrossSectionProperties3d.h:40
int sendData(CommParameters &)
Send members through the channel being passed as parameter.
Definition: ProtoBeam3d.cc:68
Base class for 3D beams.
Definition: ProtoBeam3d.h:39
Base class for one-dimensional elements (beam,truss,...)
Definition: Element1D.h:51
double getStrongAxisAngle(void) const
Returns the angle between element strong axis and local XZ plane.
Definition: ProtoBeam3d.cc:104
ProtoBeam3d(int tag, int class_tag, const Material *m=nullptr)
Default constructor.
Definition: ProtoBeam3d.cc:52
void set_material(const Material *m)
Asigna valores a los mechanical properties of the section.
Definition: ProtoBeam3d.cc:35
Vector getVDirStrongAxisLocalCoord(void) const
Returns the direction vector of element strong axis expressed in the local coordinate system...
Definition: ProtoBeam3d.cc:86
double getWeakAxisAngle(void) const
Returns the angle between element weak axis and local XZ plane.
Definition: ProtoBeam3d.cc:112
Communication parameters between processes.
Definition: CommParameters.h:65
================================================================================
Definition: ContinuaReprComponent.h:34