Basis implementation where local and global values are equal. More...
#include <dune/localfunctions/common/simplebasis.hh>
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. |
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.
LB | Type of the local basis. |
typedef BasisTraits<C0SimpleBasis<LB> > Dune::C0SimpleBasis< LB >::Traits |
Export type traits.
Reimplemented from Dune::C0BasisInterface< C0SimpleBasis< LB > >.
Dune::C0SimpleBasis< LB >::C0SimpleBasis | ( | const LB & | lb_ | ) | [inline] |
[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. |
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.
C | The type of the coefficients |
[in] | in | Where to evaluate in local (reference element) coordinates. |
[in] | coeffs | The coefficients. |
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.
[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 > >.
unsigned int Dune::C0SimpleBasis< LB >::order | ( | ) | const [inline] |
Polynomial order of the shape functions.
Reimplemented from Dune::C0BasisInterface< C0SimpleBasis< LB > >.
unsigned int Dune::C0SimpleBasis< LB >::size | ( | ) | const [inline] |
Number of shape functions.
Reimplemented from Dune::C0BasisInterface< C0SimpleBasis< LB > >.