xc
CartesianReferenceFrame3d.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 //CartesianReferenceFrame3d.h
29 //Cartesian coordinate reference frame.
30 
31 #ifndef SISREFCARTESIANAS3D_H
32 #define SISREFCARTESIANAS3D_H
33 
34 #include "ReferenceFrame.h"
35 #include "utility/geom/coo_sys/ref_sys/Ref3d3d.h"
36 
37 namespace XC {
38 
43  {
44  Ref3d3d ref;
45  protected:
46 
47  public:
50  : ReferenceFrame(m) {}
51  CartesianReferenceFrame3d(const std::string &name= "",Preprocessor *m= nullptr)
52  : ReferenceFrame(name,m) {}
53 
54  Vector3d getAxisVDir(const size_t &,const Pos3d &) const;
55 
56  Pos3d getOrg(void) const;
57  void setOrg(const Pos3d &);
58  void ThreePoints(const Pos3d &,const Pos3d &, const Pos3d &);
59 
60  Pos3d getGlobalPosition(const Pos3d &p) const;
61  Vector3d getGlobalCoordinates(const Vector3d &v) const;
62  Pos3d getLocalPosition(const Pos3d &p) const;
63  Vector3d getLocalCoordinates(const Vector3d &v) const;
64 
65 
66  };
67 
68 } //end of XC namespace
69 
70 #endif
Finite element model generation tools.
Definition: Preprocessor.h:59
void ThreePoints(const Pos3d &, const Pos3d &, const Pos3d &)
3D cartesian coordinate system by three points
Definition: CartesianReferenceFrame3d.cc:46
Vector3d getGlobalCoordinates(const Vector3d &v) const
Return the global coordinates of vector v.
Definition: CartesianReferenceFrame3d.cc:58
Pos3d getOrg(void) const
Origin of the 3D cartesian coordinate system.
Definition: CartesianReferenceFrame3d.cc:38
Vector3d getAxisVDir(const size_t &, const Pos3d &) const
Return the i-th axis unit vector expressed in the global coordinate system for the position passed as...
Definition: CartesianReferenceFrame3d.cc:51
Vector3d getLocalCoordinates(const Vector3d &v) const
Return the local coordinates of vector v.
Definition: CartesianReferenceFrame3d.cc:64
ReferenceFrame(Preprocessor *m)
Constructor.
Definition: ReferenceFrame.h:54
void setOrg(const Pos3d &)
Origin of the 3D cartesian coordinate system.
Definition: CartesianReferenceFrame3d.cc:42
Three-dimensional reference system.
Definition: CartesianReferenceFrame3d.h:42
Reference system to be used for simpliflying the definition of point positions.
Definition: ReferenceFrame.h:48
Pos3d getLocalPosition(const Pos3d &p) const
Return the local coordinates of point p.
Definition: CartesianReferenceFrame3d.cc:61
Posición en tres dimensiones.
Definition: Pos3d.h:44
Open source finite element program for structural analysis.
Definition: ContinuaReprComponent.h:35
Pos3d getGlobalPosition(const Pos3d &p) const
Return the global coordinates of point p.
Definition: CartesianReferenceFrame3d.cc:55
Vector en tres dimensiones.
Definition: Vector3d.h:39
Three-dimensional reference system defined in a three-dimensional space.
Definition: Ref3d3d.h:39
CartesianReferenceFrame3d(Preprocessor *m)
Constructor.
Definition: CartesianReferenceFrame3d.h:49