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

Abstract base type for an algorithm for computing quadrature points for a reference element. More...

#include <ptems/quadrature.hpp>

Inheritance diagram for ptems::QuadraturePointAlgorithm< DIM >:

Public Member Functions

 QuadraturePointAlgorithm ()
 Construct the common implementation of quadrature algorithms (the cache) More...
 
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 GenerateLocalPoints (const ReferenceElement< DIM > &refElement, std::size_t order, QuadraturePoints< DIM > &points)=0
 Implements the computation of the quadrature points for the specified reference element. More...
 

Detailed Description

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

Abstract base type for an algorithm for computing quadrature points for a reference element.

Implements caching of quadrature points.

Template Parameters
DIMThe dimension of the reference element

Constructor & Destructor Documentation

◆ QuadraturePointAlgorithm()

template<std::size_t DIM>
ptems::QuadraturePointAlgorithm< DIM >::QuadraturePointAlgorithm ( )
inline

Construct the common implementation of quadrature algorithms (the cache)

Member Function Documentation

◆ GenerateLocalPoints()

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

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

Implemented in ptems::TensorQuadraturePointAlgorithm< DIM >.

◆ operator()() [1/2]

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

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 
)
inline

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 
)
inline

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 
)
inline

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: