Dune Core Modules (2.6.0)

Dune::MonomialFiniteElementFactory< Geometry, RF, p > Class Template Reference

Factory for global-valued MonomFiniteElement objects. More...

#include <dune/localfunctions/monomial.hh>

Public Member Functions

template<class ForwardIterator >
 MonomialFiniteElementFactory (const ForwardIterator &begin, const ForwardIterator &end)
 construct a MonomialFiniteElementFactory from a list of GeometryType's More...
 
 MonomialFiniteElementFactory (const GeometryType &gt)
 construct a MonomialFiniteElementFactory from a single GeometryType More...
 
 MonomialFiniteElementFactory ()
 construct a MonomFiniteElementFactory for all applicable GeometryType's More...
 
const FiniteElement make (const Geometry &geometry)
 construct a global-valued MonomFiniteElement More...
 
Finite element creation methods

Each finite element factory implementation must provide at least one of these methods. The signatures may be extended by additional parameters, but the parameters that are specified here should be given first and in the order specified here.

The return value of these functions is suitable for binding to a const reference – it will either be an rvalue (in which case binding to a const reference will create a copy whose lifetime is the same as the reference itself), or it will be an lvalue (in which case the factory must guarantee that it will be valid until the factory is destroyed or something else happens that explicitly invalidates all created finite elements).

In any case, since global-valued finite element objects are copy-constructible, it is also possible to use the returned value to initialize a finite element object instead of a const reference.

const FiniteElement make (const Geometry &, const VertexOrder &,...)
 create a finite element from a geometry and a vertex ordering
 
const FiniteElement make (const Geometry &,...)
 create a finite element from a geometry
 
const FiniteElement make (const VertexOrder &,...)
 create a finite element from a vertex ordering
 
const FiniteElement make (const GeometryType &,...)
 create a finite element from a geometry type More...
 
const FiniteElement make (...)
 create a finite element
 

Detailed Description

template<class Geometry, class RF, std::size_t p>
class Dune::MonomialFiniteElementFactory< Geometry, RF, p >

Factory for global-valued MonomFiniteElement objects.

Constructs MonomialFiniteElement objects given a geometry.

Template Parameters
GeometryGeometry for the local to global transformation.
RFField type of the range.
pOrder of the basis.
Note
There is no real MonomFiniteElement, only the FiniteElement typedef inside this class.

Constructor & Destructor Documentation

◆ MonomialFiniteElementFactory() [1/3]

template<class Geometry , class RF , std::size_t p>
template<class ForwardIterator >
Dune::MonomialFiniteElementFactory< Geometry, RF, p >::MonomialFiniteElementFactory ( const ForwardIterator &  begin,
const ForwardIterator &  end 
)
inline

construct a MonomialFiniteElementFactory from a list of GeometryType's

Parameters
beginBegin of a range of geometry types.
endEnd of a range of geometry types.

◆ MonomialFiniteElementFactory() [2/3]

template<class Geometry , class RF , std::size_t p>
Dune::MonomialFiniteElementFactory< Geometry, RF, p >::MonomialFiniteElementFactory ( const GeometryType gt)
inline

construct a MonomialFiniteElementFactory from a single GeometryType

Parameters
gtGeometryType to construct elements with

References Dune::FloatCmp::gt().

◆ MonomialFiniteElementFactory() [3/3]

template<class Geometry , class RF , std::size_t p>
Dune::MonomialFiniteElementFactory< Geometry, RF, p >::MonomialFiniteElementFactory ( )
inline

Member Function Documentation

◆ make() [1/2]

template<class Geometry , class RF , std::size_t p>
const FiniteElement Dune::MonomialFiniteElementFactory< Geometry, RF, p >::make ( const Geometry geometry)
inline

construct a global-valued MonomFiniteElement

Parameters
geometryThe geometry object to use for adaption.
Note
The returned object stores the reference to the geometry passed here as well as references to internal data of this factory. Any use of the returned value after the geometry reference or the factory object was become invalid results in undefined behaviour. The exception is that the destructor of the returned value may still be called.

References Dune::GeometryType::id(), and Dune::Geometry< mydim, cdim, GridImp, GeometryImp >::type().

◆ make() [2/2]

template<class Geometry , class VertexOrder >
const FiniteElement Dune::FiniteElementFactoryInterface< Geometry, VertexOrder >::make ( const GeometryType ,
  ... 
)
inherited

create a finite element from a geometry type

Note
This signature should only be used when only the geometry type but not the full geometry or vertex ordering are needed.

The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 26, 23:30, 2024)