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