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