PTEMS  0.1.0-dev+git.81fd0e4
PolyTopic Element Method Solver
ptems::GaussLegendreQuadraturePoints< DIM > Class Template Reference

Class for computing, and caching, Gauss-Legendre quadrature points on a reference element. More...

#include <ptems/quadrature.hpp>

Inheritance diagram for ptems::GaussLegendreQuadraturePoints< DIM >:
Collaboration diagram for ptems::GaussLegendreQuadraturePoints< DIM >:

Public Member Functions

const QuadraturePoints< DIM > & operator() (const ReferenceMapping< DIM > &mapping, std::size_t order)
 Gets the quadrature points for the specified reference element. More...
 
const QuadraturePoints< DIM > & operator() (const ReferenceElement< DIM > &refElement, std::size_t order)
 Gets the quadrature points for the specified reference element. More...
 
const QuadraturePoints< DIM > & Points (const ReferenceMapping< DIM > &mapping, std::size_t order)
 Gets the quadrature points for the specified reference element. More...
 
const QuadraturePoints< DIM > & Points (const ReferenceElement< DIM > &refElement, std::size_t order)
 Gets the quadrature points for the specified reference element. More...
 

Protected Member Functions

virtual void GenerateLocal1DPoints (std::size_t order, QuadraturePoints< 1 > &points) override
 Computes the quadrature points for the reference interval. More...
 
virtual void GenerateLocalPoints (const ReferenceElement< DIM > &refElement, std::size_t order, QuadraturePoints< DIM > &points) override
 Implements the computation of the quadrature points for the specified reference element. More...
 

Detailed Description

template<std::size_t DIM>
class ptems::GaussLegendreQuadraturePoints< DIM >

Class for computing, and caching, Gauss-Legendre quadrature points on a reference element.

Template Parameters
DIMThe dimension of the reference element

Member Function Documentation

◆ GenerateLocal1DPoints()

template<std::size_t DIM>
virtual void ptems::GaussLegendreQuadraturePoints< DIM >::GenerateLocal1DPoints ( std::size_t  order,
QuadraturePoints< 1 > &  points 
)
inlineoverrideprotectedvirtual

Computes the quadrature points for the reference interval.

Parameters
orderThe desired order of the quadrature
pointsAn empty vector to populate with the quadrature points on the reference interval

Implements ptems::TensorQuadraturePointAlgorithm< DIM >.

◆ GenerateLocalPoints()

template<std::size_t DIM>
virtual void ptems::TensorQuadraturePointAlgorithm< DIM >::GenerateLocalPoints ( const ReferenceElement< DIM > &  refElement,
std::size_t  order,
QuadraturePoints< DIM > &  points 
)
inlineoverrideprotectedvirtualinherited

Implements the computation of the quadrature points for the specified reference element.

Parameters
refElementThe reference element
orderThe desired order of the quadrature
pointsAn empty vector to populate with the quadrature points on the reference element

Implements ptems::QuadraturePointAlgorithm< DIM >.

◆ operator()() [1/2]

template<std::size_t DIM>
const QuadraturePoints<DIM>& ptems::QuadraturePointAlgorithm< DIM >::operator() ( const ReferenceElement< DIM > &  refElement,
std::size_t  order 
)
inlineinherited

Gets the quadrature points for the specified reference element.

Parameters
refElementThe reference element
orderThe desired order of the quadrature
Returns
The quadrature points on the reference element

◆ operator()() [2/2]

template<std::size_t DIM>
const QuadraturePoints<DIM>& ptems::QuadraturePointAlgorithm< DIM >::operator() ( const ReferenceMapping< DIM > &  mapping,
std::size_t  order 
)
inlineinherited

Gets the quadrature points for the specified reference element.

Parameters
mappingA mapping from an element to a reference element defining the reference element
orderThe desired order of the quadrature
Returns
The quadrature points on the reference element

◆ Points() [1/2]

template<std::size_t DIM>
const QuadraturePoints<DIM>& ptems::QuadraturePointAlgorithm< DIM >::Points ( const ReferenceElement< DIM > &  refElement,
std::size_t  order 
)
inlineinherited

Gets the quadrature points for the specified reference element.

Exceptions
std::invalid_argumentif order == 0
Parameters
refElementThe reference element
orderThe desired order of the quadrature
Returns
The quadrature points on the reference element

◆ Points() [2/2]

template<std::size_t DIM>
const QuadraturePoints<DIM>& ptems::QuadraturePointAlgorithm< DIM >::Points ( const ReferenceMapping< DIM > &  mapping,
std::size_t  order 
)
inlineinherited

Gets the quadrature points for the specified reference element.

Parameters
mappingA mapping from an element to a reference element defining the reference element
orderThe desired order of the quadrature
Returns
The quadrature points on the reference element

The documentation for this class was generated from the following file: