XC Open source finite element analysis program
GaussPoint.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 #ifndef GAUSSPOINT_H
28 #define GAUSSPOINT_H
29 
30 #include "domain/mesh/element/utils/ParticlePos3d.h"
31 
32 namespace XC {
33 
35 //
37  class GaussPoint: public ParticlePos3d
38  {
39  protected:
40  double rw;
41  double sw;
42  double tw;
43 
44  public:
45  GaussPoint(const double &r_coord = 0,
46  const double &s_coord = 0,
47  const double &t_coord = 0,
48  const double &r_weight = 0,
49  const double &s_weight = 0,
50  const double &t_weight = 0);
51  GaussPoint(const Pos2d &,const double &);
52  GaussPoint(const Pos3d &,const double &);
53  void set_weights(const double &r_weight = 0, const double &s_weight = 0, const double &t_weight = 0);
54 
55  inline const double &weight() const
56  { return rw; }
57  inline const double &r_weight() const
58  { return rw; }
59  inline const double &s_weight() const
60  { return sw; }
61  inline const double &t_weight() const
62  { return tw; }
63 
64  };
65 } // end of XC namespace
66 
67 #endif
68 //
Natural coordinates of an element&#39;s particle.
Definition: ParticlePos3d.h:40
void set_weights(const double &r_weight=0, const double &s_weight=0, const double &t_weight=0)
Sets weights values.
Definition: GaussPoint.cc:53
3D position of Gauss points.
Definition: GaussPoint.h:37
GaussPoint(const double &r_coord=0, const double &s_coord=0, const double &t_coord=0, const double &r_weight=0, const double &s_weight=0, const double &t_weight=0)
Constructor.
Definition: GaussPoint.cc:33
================================================================================
Definition: ContinuaReprComponent.h:34