dune-localfunctions  2.4.1-rc2
Public Types | Public Member Functions | List of all members
Dune::QkLocalBasis< D, R, k, d > Class Template Reference

Lagrange shape functions of order k on the reference cube. More...

#include <dune/localfunctions/lagrange/qk/qklocalbasis.hh>

Public Types

typedef LocalBasisTraits< D, d,
Dune::FieldVector< D, d >, R,
1, Dune::FieldVector< R, 1 >
, Dune::FieldMatrix< R, 1, d >, 1 > 
Traits
 

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
 Evaluate Jacobian of all shape functions. More...
 
template<int diffOrder>
void evaluate (const std::array< int, 1 > &direction, const typename Traits::DomainType &in, std::vector< typename Traits::RangeType > &out) const
 Evaluate derivative in a given direction. More...
 
unsigned int order () const
 Polynomial order of the shape functions. More...
 

Detailed Description

template<class D, class R, int k, int d>
class Dune::QkLocalBasis< D, R, k, d >

Lagrange shape functions of order k on the reference cube.

Also known as $Q^k$.

Template Parameters
DType to represent the field in the domain.
RType to represent the field in the range.
kPolynomial degree
dDimension of the cube

Member Typedef Documentation

template<class D , class R , int k, int d>
typedef LocalBasisTraits<D,d,Dune::FieldVector<D,d>,R,1,Dune::FieldVector<R,1>,Dune::FieldMatrix<R,1,d>, 1> Dune::QkLocalBasis< D, R, k, d >::Traits

Member Function Documentation

template<class D , class R , int k, int d>
template<int diffOrder>
void Dune::QkLocalBasis< D, R, k, d >::evaluate ( const std::array< int, 1 > &  direction,
const typename Traits::DomainType in,
std::vector< typename Traits::RangeType > &  out 
) const
inline

Evaluate derivative in a given direction.

Parameters
[in]directionThe direction to derive in
[in]inPosition where to evaluate
[out]outThe return value

References Dune::QkLocalBasis< D, R, k, d >::size().

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

Evaluate all shape functions.

References Dune::QkLocalBasis< D, R, k, d >::size().

template<class D , class R , int k, int d>
void Dune::QkLocalBasis< D, R, k, d >::evaluateJacobian ( const typename Traits::DomainType in,
std::vector< typename Traits::JacobianType > &  out 
) const
inline

Evaluate Jacobian of all shape functions.

Parameters
inposition where to evaluate
outThe return value

References Dune::QkLocalBasis< D, R, k, d >::size().

template<class D , class R , int k, int d>
unsigned int Dune::QkLocalBasis< D, R, k, d >::order ( ) const
inline

Polynomial order of the shape functions.

template<class D , class R , int k, int d>
unsigned int Dune::QkLocalBasis< D, R, k, d >::size ( ) const
inline

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