MoReFEM
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Private Attributes
MoReFEM::QuadraturePoint Class Referencefinal

Quadrature point used to perform discrete integration. More...

#include <QuadraturePoint.hpp>

Inheritance diagram for MoReFEM::QuadraturePoint:
Collaboration diagram for MoReFEM::QuadraturePoint:

Public Types

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.
 

Public Member Functions

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
 
Constructors and destructor.
 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.
 
QuadraturePointoperator= (const QuadraturePoint &rhs)=delete
 The (copy) operator=.
 
QuadraturePointoperator= (QuadraturePoint &&rhs)=delete
 The (move) operator=.
 

Private Attributes

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_
 

Detailed Description

Quadrature point used to perform discrete integration.

Constructor & Destructor Documentation

◆ 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_coordsCoordinates of the quadrature point.
[in]weightWeight of the point in the integration.
[in]rule_nameName of the quadrature rule to which the point belongs.
[in]indexIndex within the quadrature rule.

◆ QuadraturePoint() [2/3]

MoReFEM::QuadraturePoint::QuadraturePoint ( const QuadraturePoint & rhs)
delete

The copy constructor.

Parameters
[in]rhsThe object from which the construction occurs.

◆ QuadraturePoint() [3/3]

MoReFEM::QuadraturePoint::QuadraturePoint ( QuadraturePoint && rhs)
default

The move constructor.

Parameters
[in]rhsThe object from which the construction occurs.

Member Function Documentation

◆ operator=() [1/2]

QuadraturePoint & MoReFEM::QuadraturePoint::operator= ( const QuadraturePoint & rhs)
delete

The (copy) operator=.

Parameters
[in]rhsThe object from which the affectation occurs.
Returns
Reference to the object (to enable chained affectation).

◆ operator=() [2/2]

QuadraturePoint & MoReFEM::QuadraturePoint::operator= ( QuadraturePoint && rhs)
delete

The (move) operator=.

Parameters
[in]rhsThe 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]streamStream upon which object information are written.

◆ operator[]()

double MoReFEM::LocalCoords::operator[] ( std::size_t index) const
noexceptinherited

Subscript operator, const version.

Parameters
[in]indexComponent 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]indexComponent 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]indexIndex of the component requested: 0 for x, 1 for y, 2 for z.

Field Documentation

◆ 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: