Quadrature point used to perform discrete integration.
More...
#include <QuadraturePoint.hpp>
|
using | const_shared_ptr = std::shared_ptr<const QuadraturePoint> |
| Alias to shared_ptr to constant object.
|
|
using | vector_const_shared_ptr = std::vector<const_shared_ptr> |
| Alias to a vector of const_shared_ptr.
|
|
using | unique_ptr = std::unique_ptr<LocalCoords> |
| Alias to unique_ptr.
|
|
|
double | GetWeight () const noexcept |
| Get the weight.
|
|
void | Print (std::ostream &stream) const |
|
const std::string & | GetRuleName () const |
| Get the name of the quadrature rule to which the point belongs.
|
|
std::size_t | GetIndex () const noexcept |
| Get the index of the quadrature point within the quadrature rule.
|
|
double | r () const noexcept |
| Access coordinate r of the point.
|
|
double | s () const noexcept |
| Access coordinate s of the point.
|
|
double | t () const noexcept |
| Access coordinate t of the point.
|
|
double | operator[] (std::size_t index) const noexcept |
| Subscript operator, const version.
|
|
double & | GetNonCstValue (std::size_t index) noexcept |
| Subscript operator, non-const version.
|
|
std::size_t | GetDimension () const noexcept |
| Get the dimension of the LocalCoords.
|
|
const std::vector< double > & | GetCoordinates () const noexcept |
| Return the coordinates of the LocalCoords.
|
|
double | GetValueOrZero (std::size_t index) const noexcept |
|
|
| QuadraturePoint (LocalCoords &&local_coords, double weight, const std::string &rule_name, std::size_t index) |
| Constructor.
|
|
virtual | ~QuadraturePoint () override |
| Destructor.
|
|
| QuadraturePoint (const QuadraturePoint &rhs)=delete |
| The copy constructor.
|
|
| QuadraturePoint (QuadraturePoint &&rhs)=default |
| The move constructor.
|
|
QuadraturePoint & | operator= (const QuadraturePoint &rhs)=delete |
| The (copy) operator=.
|
|
QuadraturePoint & | operator= (QuadraturePoint &&rhs)=delete |
| The (move) operator=.
|
|
|
const double | weight_ |
| Weight of the point.
|
|
const std::string & | rule_name_ |
| Reference to the name of the quadrature rule to which the point belongs.
|
|
const std::size_t | index_ |
| Index within the quadrature rule (from 0 to Nquadrature_point - 1).
|
|
std::vector< double > | coordinate_list_ |
|
Quadrature point used to perform discrete integration.
◆ QuadraturePoint() [1/3]
MoReFEM::QuadraturePoint::QuadraturePoint |
( |
LocalCoords && | local_coords, |
|
|
double | weight, |
|
|
const std::string & | rule_name, |
|
|
std::size_t | index ) |
|
explicit |
Constructor.
- Parameters
-
[in] | local_coords | Coordinates of the quadrature point. |
[in] | weight | Weight of the point in the integration. |
[in] | rule_name | Name of the quadrature rule to which the point belongs. |
[in] | index | Index within the quadrature rule. |
◆ QuadraturePoint() [2/3]
The copy constructor.
- Parameters
-
[in] | rhs | The object from which the construction occurs. |
◆ QuadraturePoint() [3/3]
The move constructor.
- Parameters
-
[in] | rhs | The object from which the construction occurs. |
◆ operator=() [1/2]
The (copy) operator=.
- Parameters
-
[in] | rhs | The object from which the affectation occurs. |
- Returns
- Reference to the object (to enable chained affectation).
◆ operator=() [2/2]
The (move) operator=.
- Parameters
-
[in] | rhs | The object from which the affectation occurs. |
- Returns
- Reference to the object (to enable chained affectation).
◆ Print()
void MoReFEM::QuadraturePoint::Print |
( |
std::ostream & | stream | ) |
const |
Print function (used also for operator<< overload).
- Parameters
-
[in,out] | stream | Stream upon which object information are written. |
◆ operator[]()
double MoReFEM::LocalCoords::operator[] |
( |
std::size_t | index | ) |
const |
|
noexceptinherited |
Subscript operator, const version.
- Parameters
-
[in] | index | Component index. x, y and z coordinates may be accessed respectively with [0], [1], [2]. |
- Returns
- Coordinate at the index-th component.
◆ GetNonCstValue()
double & MoReFEM::LocalCoords::GetNonCstValue |
( |
std::size_t | index | ) |
|
|
noexceptinherited |
Subscript operator, non-const version.
- Parameters
-
[in] | index | Component index. x, y and z coordinates may be accessed respectively with [0], [1], [2]. |
- Returns
- Coordinate at the index-th component.
◆ GetValueOrZero()
double MoReFEM::LocalCoords::GetValueOrZero |
( |
std::size_t | index | ) |
const |
|
noexceptinherited |
Returns the value of the index -th coordinates, or 0 if there are none.
- Parameters
-
[in] | index | Index of the component requested: 0 for x, 1 for y, 2 for z. |
◆ coordinate_list_
std::vector<double> MoReFEM::LocalCoords::coordinate_list_ |
|
privateinherited |
List of coordinates. Might be 1, 2 or 3 depending on the dimension of the element for which the coords are defined.
The documentation for this class was generated from the following file:
- /builds/2mk6rsew/0/MoReFEM/CoreLibrary/MoReFEM/Sources/FiniteElement/QuadratureRules/QuadraturePoint.hpp