PTEMS  0.1.0-dev+git.81fd0e4
PolyTopic Element Method Solver
ptems::HPRefinementStrategy< DIM, X, N >::RefinementDataImpl< Estimators, Functions > Struct Template Reference

Implentation of HPRefinementData which hides type of the estimator and function containers. More...

#include <ptems/hpstrategies.hpp>

Inheritance diagram for ptems::HPRefinementStrategy< DIM, X, N >::RefinementDataImpl< Estimators, Functions >:
Collaboration diagram for ptems::HPRefinementStrategy< DIM, X, N >::RefinementDataImpl< Estimators, Functions >:

Public Member Functions

 RefinementDataImpl (const Estimators &estimators, const Functions &funcs)
 Creates HPRefinementData with the specified error estimators for each element and the discrete functions. More...
 
std::size_t ElementCount () const override
 Gets the number of elements in the mesh. More...
 
double ErrorEstimator (std::size_t element) const override
 Gets the error indicator for the specified element. More...
 
std::size_t FunctionCount () const override
 Gets the number of functions defined on the mesh. More...
 
DiscreteFunction< DIM, X, N, N > Function (std::size_t function) const override
 Gets a function defined on the mesh. More...
 

Detailed Description

template<std::size_t DIM, typename X = double, std::size_t N = 1>
template<typename Estimators, typename Functions>
struct ptems::HPRefinementStrategy< DIM, X, N >::RefinementDataImpl< Estimators, Functions >

Implentation of HPRefinementData which hides type of the estimator and function containers.

Constructor & Destructor Documentation

◆ RefinementDataImpl()

template<std::size_t DIM, typename X = double, std::size_t N = 1>
template<typename Estimators , typename Functions >
ptems::HPRefinementStrategy< DIM, X, N >::RefinementDataImpl< Estimators, Functions >::RefinementDataImpl ( const Estimators &  estimators,
const Functions &  funcs 
)
inline

Creates HPRefinementData with the specified error estimators for each element and the discrete functions.

Parameters
estimatorsThe error estimators
funcsThe discrete functions to evaluate for analyticity

Member Function Documentation

◆ ElementCount()

template<std::size_t DIM, typename X = double, std::size_t N = 1>
template<typename Estimators , typename Functions >
std::size_t ptems::HPRefinementStrategy< DIM, X, N >::RefinementDataImpl< Estimators, Functions >::ElementCount ( ) const
inlineoverridevirtual

Gets the number of elements in the mesh.

Implements ptems::HPRefinementData< DIM, X, N >.

◆ ErrorEstimator()

template<std::size_t DIM, typename X = double, std::size_t N = 1>
template<typename Estimators , typename Functions >
double ptems::HPRefinementStrategy< DIM, X, N >::RefinementDataImpl< Estimators, Functions >::ErrorEstimator ( std::size_t  element) const
inlineoverridevirtual

Gets the error indicator for the specified element.

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

Implements ptems::HPRefinementData< DIM, X, N >.

◆ Function()

template<std::size_t DIM, typename X = double, std::size_t N = 1>
template<typename Estimators , typename Functions >
DiscreteFunction<DIM, X, N, N> ptems::HPRefinementStrategy< DIM, X, N >::RefinementDataImpl< Estimators, Functions >::Function ( std::size_t  function) const
inlineoverridevirtual

Gets a function defined on the mesh.

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

Implements ptems::HPRefinementData< DIM, X, N >.

◆ FunctionCount()

template<std::size_t DIM, typename X = double, std::size_t N = 1>
template<typename Estimators , typename Functions >
std::size_t ptems::HPRefinementStrategy< DIM, X, N >::RefinementDataImpl< Estimators, Functions >::FunctionCount ( ) const
inlineoverridevirtual

Gets the number of functions defined on the mesh.

Implements ptems::HPRefinementData< DIM, X, N >.


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