dune-localfunctions  2.2.0
Classes | Public Member Functions
Dune::ScalarLocalToGlobalFiniteElementAdaptor< LocalFiniteElement, Geometry > Struct Template Reference

Convert a simple scalar local finite element into a global finite element. More...

#include <dune/localfunctions/common/localtoglobaladaptors.hh>

Inheritance diagram for Dune::ScalarLocalToGlobalFiniteElementAdaptor< LocalFiniteElement, Geometry >:
Inheritance graph

List of all members.

Classes

struct  Traits

Public Member Functions

 ScalarLocalToGlobalFiniteElementAdaptor (const LocalFiniteElement &localFE_, const Geometry &geometry)
 construct a ScalarLocalToGlobalFiniteElementAdaptor
const Traits::Basisbasis () const
 Extract basis of this finite element.
const Traits::Interpolationinterpolation () const
 Extract interpolation of this finite element.
const Traits::Coefficientscoefficients () const
 Extract coefficients of this finite element.
GeometryType type () const
 Extract geometry type of this finite element.

Detailed Description

template<class LocalFiniteElement, class Geometry>
struct Dune::ScalarLocalToGlobalFiniteElementAdaptor< LocalFiniteElement, Geometry >

Convert a simple scalar local finite element into a global finite element.

The local finite elememt must be scalar, i.e. LocalBasis::Traits::dimRange must be 1. It's values are not transformed, but the Jacobian is (see ScalarLocalToGlobalBasisAdaptor).

Template Parameters:
LocalFiniteElementType of the local finite element to adapt.
GeometryType of the local-to-global transformation.

Constructor & Destructor Documentation

template<class LocalFiniteElement , class Geometry >
Dune::ScalarLocalToGlobalFiniteElementAdaptor< LocalFiniteElement, Geometry >::ScalarLocalToGlobalFiniteElementAdaptor ( const LocalFiniteElement &  localFE_,
const Geometry &  geometry 
)
inline

construct a ScalarLocalToGlobalFiniteElementAdaptor

Parameters:
localFE_The local finite element object to adapt.
geometryThe geometry object to use for adaption.
Note:
This class stores the references passed here. Any use of this class after these references have become invalid results in undefined behaviour. The exception is that the destructor of this class may still be called.

Member Function Documentation

template<class LocalFiniteElement , class Geometry >
const Traits::Basis& Dune::ScalarLocalToGlobalFiniteElementAdaptor< LocalFiniteElement, Geometry >::basis ( ) const
inline

Extract basis of this finite element.

The returned lvalue must have a lifetime at least as long as the finite element object is was aquired from.

Reimplemented from Dune::FiniteElementInterface.

template<class LocalFiniteElement , class Geometry >
const Traits::Coefficients& Dune::ScalarLocalToGlobalFiniteElementAdaptor< LocalFiniteElement, Geometry >::coefficients ( ) const
inline

Extract coefficients of this finite element.

The returned lvalue must have a lifetime at least as long as the finite element object is was aquired from.

Reimplemented from Dune::FiniteElementInterface.

template<class LocalFiniteElement , class Geometry >
const Traits::Interpolation& Dune::ScalarLocalToGlobalFiniteElementAdaptor< LocalFiniteElement, Geometry >::interpolation ( ) const
inline

Extract interpolation of this finite element.

The returned lvalue must have a lifetime at least as long as the finite element object is was aquired from.

Reimplemented from Dune::FiniteElementInterface.

template<class LocalFiniteElement , class Geometry >
GeometryType Dune::ScalarLocalToGlobalFiniteElementAdaptor< LocalFiniteElement, Geometry >::type ( ) const
inline

Extract geometry type of this finite element.

Reimplemented from Dune::FiniteElementInterface.

Referenced by Dune::MonomFiniteElementFactory< Geometry, RF, p >::make().


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