PTEMS  0.1.0-dev+git.81fd0e4
PolyTopic Element Method Solver
ptems::HPRefinementData< DIM, X, N > Struct Template Referenceabstract

Structure for passing refinement data from HPRefinementStrategy to its derived classes. More...

#include <ptems/hpstrategies.hpp>

Public Member Functions

virtual std::size_t ElementCount () const =0
 Gets the number of elements in the mesh. More...
 
virtual double ErrorEstimator (std::size_t element) const =0
 Gets the error indicator for the specified element. More...
 
virtual std::size_t FunctionCount () const =0
 Gets the number of functions defined on the mesh. More...
 
virtual DiscreteFunction< DIM, X, N, N > Function (std::size_t function) const =0
 Gets a function defined on the mesh. More...
 

Detailed Description

template<std::size_t DIM, typename X = double, std::size_t N = 1>
struct ptems::HPRefinementData< DIM, X, N >

Structure for passing refinement data from HPRefinementStrategy to its derived classes.

Template Parameters
DIMThe dimension of the mesh and spaces to refine
XThe type of the result of the functions (double, std::complex, etc) for each space
NThe size of the resulting vector space (N=1 for scalars) for each space

Member Function Documentation

◆ ElementCount()

template<std::size_t DIM, typename X = double, std::size_t N = 1>
virtual std::size_t ptems::HPRefinementData< DIM, X, N >::ElementCount ( ) const
pure virtual

Gets the number of elements in the mesh.

Implemented in ptems::HPRefinementStrategy< DIM, X, N >::RefinementDataImpl< Estimators, Functions >.

◆ ErrorEstimator()

template<std::size_t DIM, typename X = double, std::size_t N = 1>
virtual double ptems::HPRefinementData< DIM, X, N >::ErrorEstimator ( std::size_t  element) const
pure virtual

Gets the error indicator for the specified element.

Parameters
elementThe element index in range [0, ElementCount())
Returns
Error indicators

Implemented in ptems::HPRefinementStrategy< DIM, X, N >::RefinementDataImpl< Estimators, Functions >.

◆ Function()

template<std::size_t DIM, typename X = double, std::size_t N = 1>
virtual DiscreteFunction<DIM, X, N, N> ptems::HPRefinementData< DIM, X, N >::Function ( std::size_t  function) const
pure virtual

Gets a function defined on the mesh.

Parameters
functionThe function index in range [0, FunctionCount())
Returns
The function

Implemented in ptems::HPRefinementStrategy< DIM, X, N >::RefinementDataImpl< Estimators, Functions >.

◆ FunctionCount()

template<std::size_t DIM, typename X = double, std::size_t N = 1>
virtual std::size_t ptems::HPRefinementData< DIM, X, N >::FunctionCount ( ) const
pure virtual

Gets the number of functions defined on the mesh.

Implemented in ptems::HPRefinementStrategy< DIM, X, N >::RefinementDataImpl< Estimators, Functions >.


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