XC Open source finite element analysis program
IntegrationPointsCoords.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 //IntegrationPointsCoords.h
28 
29 #ifndef IntegrationPointsCoords_h
30 #define IntegrationPointsCoords_h
31 
32 #include "utility/matrix/Matrix.h"
33 #include <vector>
34 
35 class ExprAlgebra;
36 class MapValores;
37 
38 namespace XC {
39 
40 class BeamIntegration;
41 class CrdTransf;
42 
44 //
47  {
48  protected:
53 
54  MapValores getMapValores(const size_t &i,const std::vector<std::string> &) const;
55  public:
56  IntegrationPointsCoords(const BeamIntegration &,int nIP,const CrdTransf &trf);
57 
58  inline const double &r(const size_t &i) const
59  { return rst(i,1); }
60  inline const double &s(const size_t &i) const
61  { return rst(i,2); }
62  inline const double &t(const size_t &i) const
63  { return rst(i,3); }
64 
65  inline const double &rn(const size_t &i) const
66  { return rnsntn(i,1); }
67  inline const double &sn(const size_t &i) const
68  { return rnsntn(i,2); }
69  inline const double &tn(const size_t &i) const
70  { return rnsntn(i,3); }
71 
72  inline const double &x(const size_t &i) const
73  { return xyz(i,1); }
74  inline const double &y(const size_t &i) const
75  { return xyz(i,2); }
76  inline const double &z(const size_t &i) const
77  { return xyz(i,3); }
78 
79  inline const double &X(const size_t &i) const
80  { return XYZ(i,1); }
81  inline const double &Y(const size_t &i) const
82  { return XYZ(i,2); }
83  inline const double &Z(const size_t &i) const
84  { return XYZ(i,3); }
85 
86  const XC::Vector &eval(const ExprAlgebra &expr) const;
87  };
88 } // end of XC namespace
89 
90 #endif
CrdTransf provides the abstraction of a frame coordinate transformation. It is an abstract base class...
Definition: CrdTransf.h:87
Matrix xyz
Local coordinates.
Definition: IntegrationPointsCoords.h:51
Definition: Vector.h:82
const XC::Vector & eval(const ExprAlgebra &expr) const
Returns the values of the expresion on each integration point.
Definition: IntegrationPointsCoords.cc:96
Stores the coordinates of the integration points.
Definition: IntegrationPointsCoords.h:46
Matrix rnsntn
Normalized coordinates (they vary between 0 y 1).
Definition: IntegrationPointsCoords.h:50
Definition: Matrix.h:82
================================================================================
Definition: ContinuaReprComponent.h:34
MapValores getMapValores(const size_t &i, const std::vector< std::string > &) const
Returns the mapa de valores necesario para evaluar la expresión.
Definition: IntegrationPointsCoords.cc:57
Base class for integration on beam elements.
Definition: BeamIntegration.h:73
Matrix rst
Natural coordinates (they vary between -1 y 1).
Definition: IntegrationPointsCoords.h:49
Matrix XYZ
Global coordinates.
Definition: IntegrationPointsCoords.h:52