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