xc
SectionReferenceFrame.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 //SectionReferenceFrame.h
28 
29 #ifndef SISREFSCC_H
30 #define SISREFSCC_H
31 
32 #include "EntGeomSection.h"
33 
34 class Vector2d;
35 class Pos2d;
36 
37 namespace XC {
38 
40 //
43  {
44  protected:
45 
46  public:
49  : EntGeomSection("",m) {}
50  SectionReferenceFrame(const std::string &nombre= "",GeomSection *m= nullptr)
51  : EntGeomSection(nombre,m) {}
52 
56  virtual Vector2d getAxisVDir(const size_t &,const Pos2d &) const= 0;
57  Vector2d GetI(const Pos2d &) const;
58  Vector2d GetJ(const Pos2d &) const;
59 
62  virtual Pos2d GetPosGlobal(const Pos2d &p) const= 0;
65  virtual Vector2d GetCooGlobales(const Vector2d &v) const= 0;
68  virtual Pos2d GetPosLocal(const Pos2d &p) const= 0;
71  virtual Vector2d GetCooLocales(const Vector2d &v) const= 0;
72 
73 
74  };
75 
76 } //end of XC namespace
77 
78 #endif
Cross section geometry.
Definition: GeomSection.h:63
Vector2d GetI(const Pos2d &) const
Returns the ${i}$ unit vector expressed in global coordinates for the position being passed as parame...
Definition: SectionReferenceFrame.cc:35
virtual Vector2d GetCooLocales(const Vector2d &v) const =0
Return the vector v expressed in global coordinates expressed in local coordinates.
virtual Pos2d GetPosGlobal(const Pos2d &p) const =0
Return the position of point p expressed in local coordinates expresada en global coordinates...
SectionReferenceFrame(GeomSection *m)
Constructor.
Definition: SectionReferenceFrame.h:48
Vector2d GetJ(const Pos2d &) const
Returns the ${j}$ unit vector expressed in global coordinates for the position being passed as parame...
Definition: SectionReferenceFrame.cc:40
Reference system used for make easier definining point positions.
Definition: SectionReferenceFrame.h:42
virtual Pos2d GetPosLocal(const Pos2d &p) const =0
Return the position of point p expressed in global coordinates expresada en local coordinates...
virtual Vector2d GetCooGlobales(const Vector2d &v) const =0
Return the vector v expressed in local coordinates expressed in global coordinates.
Base class of section geometry representation classes.
Definition: EntGeomSection.h:47
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:34
EntGeomSection(const std::string &nmb="", GeomSection *sccGeom=nullptr)
Constructor.
Definition: EntGeomSection.cc:43
virtual Vector2d getAxisVDir(const size_t &, const Pos2d &) const =0
Return the i-th axis unit vector expressed in global coordinates for the position being passed as par...