dune-localfunctions  2.2.1
Public Types | Public Member Functions | List of all members
Dune::RefinedP0LocalBasis< D, R, dim > Class Template Reference

Uniformly refined constant shape functions on a unit simplex in R^dim. More...

#include <dune/localfunctions/refined/refinedp0/refinedp0localbasis.hh>

Inheritance diagram for Dune::RefinedP0LocalBasis< D, R, dim >:
Dune::RefinedSimplexLocalBasis< D, dim >

Public Types

typedef LocalBasisTraits< D,
dim, Dune::FieldVector< D, dim >
, R, 1, Dune::FieldVector< R, 1 >
, Dune::FieldMatrix< R, 1, dim > > 
Traits
 export type traits for function signature More...
 

Public Member Functions

unsigned int size () const
 number of shape functions More...
 
void evaluateFunction (const typename Traits::DomainType &in, std::vector< typename Traits::RangeType > &out) const
 Evaluate all shape functions. More...
 
void evaluateJacobian (const typename Traits::DomainType &in, std::vector< typename Traits::JacobianType > &out) const
 
unsigned int order () const
 Polynomial order of the shape functions. More...
 

Detailed Description

template<class D, class R, int dim>
class Dune::RefinedP0LocalBasis< D, R, dim >

Uniformly refined constant shape functions on a unit simplex in R^dim.

This shape function set mimicks the P0 shape functions that you would get on a uniformly refined grid. Hence these shape functions are only piecewise constant!

Shape functions like these are necessary for hierarchical error estimators for certain nonlinear problems.

The functions are associated with the subelements as defined in RefinedSimplexLocalBasis

Template Parameters
DType to represent the field in the domain.
RType to represent the field in the range.
dimDimension of domain space

Member Typedef Documentation

template<class D, class R, int dim>
typedef LocalBasisTraits<D,dim,Dune::FieldVector<D,dim>,R,1,Dune::FieldVector<R,1>, Dune::FieldMatrix<R,1,dim> > Dune::RefinedP0LocalBasis< D, R, dim >::Traits

export type traits for function signature

Member Function Documentation

template<class D, class R, int dim>
void Dune::RefinedP0LocalBasis< D, R, dim >::evaluateFunction ( const typename Traits::DomainType in,
std::vector< typename Traits::RangeType > &  out 
) const
inline

Evaluate all shape functions.

template<class D, class R, int dim>
void Dune::RefinedP0LocalBasis< D, R, dim >::evaluateJacobian ( const typename Traits::DomainType in,
std::vector< typename Traits::JacobianType > &  out 
) const
inline
template<class D, class R, int dim>
unsigned int Dune::RefinedP0LocalBasis< D, R, dim >::order ( ) const
inline

Polynomial order of the shape functions.

Doesn't really apply: these shape functions are only piecewise constant

template<class D, class R, int dim>
unsigned int Dune::RefinedP0LocalBasis< D, R, dim >::size ( ) const
inline

number of shape functions


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