XC Open source finite element analysis program
SisRefCartesianas3d.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 //SisRefCartesianas3d.h
28 //Sistema de coordenadas cartesianas.
29 
30 #ifndef SISREFCARTESIANAS3D_H
31 #define SISREFCARTESIANAS3D_H
32 
33 #include "SisRef.h"
34 #include "xc_utils/src/geom/sis_ref/Ref3d3d.h"
35 
36 namespace XC {
37 
42  {
43  Ref3d3d ref;
44  protected:
45 
46  public:
49  : SisRef(m) {}
50  SisRefCartesianas3d(const std::string &nombre= "",Preprocessor *m= nullptr)
51  : SisRef(nombre,m) {}
52 
53  Vector3d GetVDirEje(const size_t &,const Pos3d &) const;
54 
55  Pos3d getOrg(void) const;
56  void setOrg(const Pos3d &);
57  void TresPuntos(const Pos3d &,const Pos3d &, const Pos3d &);
58 
59  Pos3d GetPosGlobal(const Pos3d &p) const;
60  Vector3d GetCooGlobales(const Vector3d &v) const;
61  Pos3d GetPosLocal(const Pos3d &p) const;
62  Vector3d GetCooLocales(const Vector3d &v) const;
63 
64 
65  };
66 
67 } //end of XC namespace
68 
69 #endif
SisRefCartesianas3d(Preprocessor *m)
Constructor.
Definition: SisRefCartesianas3d.h:48
Three-dimensional reference system.
Definition: SisRefCartesianas3d.h:41
Pos3d getOrg(void) const
Origin of the 3D cartesian coordinate system.
Definition: SisRefCartesianas3d.cc:38
Vector3d GetVDirEje(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: SisRefCartesianas3d.cc:51
Reference system to be used for simpliflying the definition of point positions.
Definition: SisRef.h:47
void TresPuntos(const Pos3d &, const Pos3d &, const Pos3d &)
3D cartesian coordinate system by three points
Definition: SisRefCartesianas3d.cc:46
Finite element model generation tools.
Definition: Preprocessor.h:58
SisRef(Preprocessor *m)
Constructor.
Definition: SisRef.h:53
Pos3d GetPosGlobal(const Pos3d &p) const
Return the global coordinates of point p.
Definition: SisRefCartesianas3d.cc:55
Vector3d GetCooGlobales(const Vector3d &v) const
Return the global coordinates of vector v.
Definition: SisRefCartesianas3d.cc:58
Vector3d GetCooLocales(const Vector3d &v) const
Return the local coordinates of vector v.
Definition: SisRefCartesianas3d.cc:64
Pos3d GetPosLocal(const Pos3d &p) const
Return the local coordinates of point p.
Definition: SisRefCartesianas3d.cc:61
void setOrg(const Pos3d &)
Origin of the 3D cartesian coordinate system.
Definition: SisRefCartesianas3d.cc:42
================================================================================
Definition: ContinuaReprComponent.h:34