xc
SectionCartesianReferenceFrame.h
1 // -*-c++-*-
2 //----------------------------------------------------------------------------
3 // XC program; finite element analysis code
4 // for structural analysis and design.
5 //
6 // Copyright (C) Luis C. Pérez Tato
7 //
8 // This program derives from OpenSees <http://opensees.berkeley.edu>
9 // developed by the «Pacific earthquake engineering research center».
10 //
11 // Except for the restrictions that may arise from the copyright
12 // of the original program (see copyright_opensees.txt)
13 // XC is free software: you can redistribute it and/or modify
14 // it under the terms of the GNU General Public License as published by
15 // the Free Software Foundation, either version 3 of the License, or
16 // (at your option) any later version.
17 //
18 // This software is distributed in the hope that it will be useful, but
19 // WITHOUT ANY WARRANTY; without even the implied warranty of
20 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 // GNU General Public License for more details.
22 //
23 //
24 // You should have received a copy of the GNU General Public License
25 // along with this program.
26 // If not, see <http://www.gnu.org/licenses/>.
27 //----------------------------------------------------------------------------
28 //SectionCartesianReferenceFrame.h
29 //Cartesian coordinate reference frame.
30 
31 #ifndef SISREFSCCCARTESIANAS2D_H
32 #define SISREFSCCCARTESIANAS2D_H
33 
34 #include "SectionReferenceFrame.h"
35 #include "utility/geom/coo_sys/ref_sys/Ref2d2d.h"
36 
37 namespace XC {
38 
40 //
43  {
44  Ref2d2d ref;
45  protected:
46 
47  public:
50  : SectionReferenceFrame(m) {}
51  SectionCartesianReferenceFrame(const std::string &name= "",SectionGeometry *m= nullptr)
52  : SectionReferenceFrame(name,m) {}
53 
54  Vector2d getAxisVDir(const size_t &,const Pos2d &) const;
55 
56 
57  Pos2d getGlobalPosition(const Pos2d &p) const;
58  Vector2d getGlobalCoordinates(const Vector2d &v) const;
59  Pos2d getLocalPosition(const Pos2d &p) const;
60  Vector2d getLocalCoordinates(const Vector2d &v) const;
61 
62 
63  };
64 
65 } //end of XC namespace
66 
67 #endif
Pos2d getLocalPosition(const Pos2d &p) const
Return the position of point p expressed in global coordinates expresada en local coordinates...
Definition: SectionCartesianReferenceFrame.cc:49
SectionCartesianReferenceFrame(SectionGeometry *m)
Constructor.
Definition: SectionCartesianReferenceFrame.h:49
Vector2d getGlobalCoordinates(const Vector2d &v) const
Return the vector v expressed in local coordinates expressed in global coordinates.
Definition: SectionCartesianReferenceFrame.cc:45
Posición en dos dimensiones.
Definition: Pos2d.h:41
Pos2d getGlobalPosition(const Pos2d &p) const
Return the position of point p expressed in local coordinates expresada en global coordinates...
Definition: SectionCartesianReferenceFrame.cc:41
Vector en dos dimensiones.
Definition: Vector2d.h:40
Two-dimensional reference system defined in a two-dimensional space.
Definition: Ref2d2d.h:39
Reference system used for make easier defining point positions.
Definition: SectionReferenceFrame.h:43
SectionReferenceFrame(SectionGeometry *m)
Constructor.
Definition: SectionReferenceFrame.h:49
Vector2d getLocalCoordinates(const Vector2d &v) const
Return the vector v expressed in global coordinates expressed in local coordinates.
Definition: SectionCartesianReferenceFrame.cc:53
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Cross section geometry.
Definition: SectionGeometry.h:65
Vector2d getAxisVDir(const size_t &, const Pos2d &) const
Return the i-th axis unit vector expressed in global coordinates for the position being passed as par...
Definition: SectionCartesianReferenceFrame.cc:36
Bidimensional reference system for a section.
Definition: SectionCartesianReferenceFrame.h:42