dune-localfunctions 2.10
Loading...
Searching...
No Matches
Classes | Public Types | Public Member Functions | List of all members
Dune::StaticLagrangeLocalFiniteElementCache< id, Domain, Range, dim, order > Class Template Reference

A cache that stores all available Pk/Qk like local finite elements for the given dimension and order for the case that the GeometryType is fixed and has the given Id. More...

#include <dune/localfunctions/lagrange/cache.hh>

Public Types

using FiniteElementType = std::conditional_t< isSimplex, LagrangeSimplexLocalFiniteElement< Domain, Range, dim, order >, std::conditional_t< isCube, LagrangeCubeLocalFiniteElement< Domain, Range, dim, order >, std::conditional_t< isPrism, LagrangePrismLocalFiniteElement< Domain, Range, order >, std::conditional_t< isPyramid, LagrangePyramidLocalFiniteElement< Domain, Range, order >, UnknownToplogy > > > >
 

Public Member Functions

 StaticLagrangeLocalFiniteElementCache (std::integral_constant< std::size_t, order >={})
 Construct the local-finite element for the order specified as template parameter.
 
const FiniteElementTypeget (GeometryType type) const
 Obtain the cached local finite-element.
 

Detailed Description

template<GeometryType::Id id, class Domain, class Range, std::size_t dim, std::size_t order>
class Dune::StaticLagrangeLocalFiniteElementCache< id, Domain, Range, dim, order >

A cache that stores all available Pk/Qk like local finite elements for the given dimension and order for the case that the GeometryType is fixed and has the given Id.

Template Parameters
idThe Id of the fixed GeometryType
DomainType used for domain coordinates
RangeType used for shape function values
dimElement dimension
orderElement order

The cached finite element implementations can be obtained using get(GeometryType).

Member Typedef Documentation

◆ FiniteElementType

template<GeometryType::Id id, class Domain , class Range , std::size_t dim, std::size_t order>
using Dune::StaticLagrangeLocalFiniteElementCache< id, Domain, Range, dim, order >::FiniteElementType = std::conditional_t<isSimplex, LagrangeSimplexLocalFiniteElement<Domain,Range,dim,order>, std::conditional_t<isCube, LagrangeCubeLocalFiniteElement<Domain,Range,dim,order>, std::conditional_t<isPrism, LagrangePrismLocalFiniteElement<Domain,Range,order>, std::conditional_t<isPyramid, LagrangePyramidLocalFiniteElement<Domain,Range,order>, UnknownToplogy> > > >

Constructor & Destructor Documentation

◆ StaticLagrangeLocalFiniteElementCache()

template<GeometryType::Id id, class Domain , class Range , std::size_t dim, std::size_t order>
Dune::StaticLagrangeLocalFiniteElementCache< id, Domain, Range, dim, order >::StaticLagrangeLocalFiniteElementCache ( std::integral_constant< std::size_t, order >  = {})
inlineexplicit

Construct the local-finite element for the order specified as template parameter.

Member Function Documentation

◆ get()

template<GeometryType::Id id, class Domain , class Range , std::size_t dim, std::size_t order>
const FiniteElementType & Dune::StaticLagrangeLocalFiniteElementCache< id, Domain, Range, dim, order >::get ( GeometryType  type) const
inline

Obtain the cached local finite-element.


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