Dune::C0SimpleBasis< LB > Class Template Reference

Basis implementation where local and global values are equal. More...

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

Inheritance diagram for Dune::C0SimpleBasis< LB >:
Inheritance graph

List of all members.

Public Types

typedef BasisTraits
< C0SimpleBasis< LB > > 
Traits
 Export type traits.

Public Member Functions

 C0SimpleBasis (const LB &lb_)
unsigned int size () const
void evaluateFunction (const typename Traits::DomainType &in, std::vector< typename Traits::RangeType > &out) const
unsigned int order () const
Traits::RangeType evaluateCoeffs (const typename Traits::DomainType &in, const std::vector< C > &coeffs) const
 Evaluate basis with coefficients at given position.

Detailed Description

template<typename LB>
class Dune::C0SimpleBasis< LB >

Basis implementation where local and global values are equal.

It simply takes a localbasis and returns whatever that returns. This is most appropriate for single component functions. For multicomponent functions there is typically some transformation needed. Which transformation to use depends very much on the particular base function.

Template Parameters:
LB Type of the local basis.

Member Typedef Documentation

template<typename LB >
typedef BasisTraits<C0SimpleBasis<LB> > Dune::C0SimpleBasis< LB >::Traits

Export type traits.

Reimplemented from Dune::C0BasisInterface< C0SimpleBasis< LB > >.


Constructor & Destructor Documentation

template<typename LB >
Dune::C0SimpleBasis< LB >::C0SimpleBasis ( const LB &  lb_  )  [inline]
Parameters:
[in] lb_ The localbasis to wrap. A reference to this object is stored, that means, the object must live at least as long as this simple basis is used for evaluation.

Member Function Documentation

Traits::RangeType Dune::C0BasisInterface< C0SimpleBasis< LB > , BasisTraits<C0SimpleBasis< LB > > >::evaluateCoeffs ( const typename Traits::DomainType &  in,
const std::vector< C > &  coeffs 
) const [inline, inherited]

Evaluate basis with coefficients at given position.

Evaluates all shape functions at the given (local) position and return the (global) value of the sum weighted with some coefficients.

Note:
This is a default implementation which works by perfoming the weighted sum of the values returned by evaluateFunction().
Template Parameters:
C The type of the coefficients
Parameters:
[in] in Where to evaluate in local (reference element) coordinates.
[in] coeffs The coefficients.
Returns:
The resulting global value.
template<typename LB >
void Dune::C0SimpleBasis< LB >::evaluateFunction ( const typename Traits::DomainType in,
std::vector< typename Traits::RangeType > &  out 
) const [inline]

Evaluate all basis function at given position. Evaluates all shape functions at the given (local) position and returns the (global) values in a vector.

Parameters:
[in] in Where to evaluate in local (reference element) coordinates.
[out] out The resulting global values, one per shape function.

Reimplemented from Dune::C0BasisInterface< C0SimpleBasis< LB > >.

template<typename LB >
unsigned int Dune::C0SimpleBasis< LB >::order (  )  const [inline]

Polynomial order of the shape functions.

Todo:
Gurke!

Reimplemented from Dune::C0BasisInterface< C0SimpleBasis< LB > >.

template<typename LB >
unsigned int Dune::C0SimpleBasis< LB >::size (  )  const [inline]

Number of shape functions.

Reimplemented from Dune::C0BasisInterface< C0SimpleBasis< LB > >.


The documentation for this class was generated from the following file:
Generated on Sat Apr 24 11:15:36 2010 for dune-localfunctions by  doxygen 1.6.3