dune-localfunctions 2.10
Loading...
Searching...
No Matches
Dune::MonomialLocalBasis< D, R, d, p > Class Template Reference

Constant shape function. More...

#include <dune/localfunctions/monomial/monomiallocalbasis.hh>

Public Types

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

Public Member Functions

void evaluateFunction (const typename Traits::DomainType &in, std::vector< typename Traits::RangeType > &out) const
 Evaluate all shape functions.
 
void partial (const std::array< unsigned int, d > &order, const typename Traits::DomainType &in, std::vector< typename Traits::RangeType > &out) const
 Evaluate partial derivatives of any order of all shape functions.
 
void evaluateJacobian (const typename Traits::DomainType &in, std::vector< typename Traits::JacobianType > &out) const
 Evaluate Jacobian of all shape functions.
 
unsigned int order () const
 Polynomial order of the shape functions.
 

Static Public Member Functions

static constexpr unsigned int size ()
 Number of shape functions.
 

Detailed Description

template<class D, class R, unsigned int d, unsigned int p>
class Dune::MonomialLocalBasis< D, R, d, p >

Constant shape function.

Defines the constant scalar shape function in d dimensions. Is valid on any type of reference element.

Template Parameters
DType to represent the field in the domain.
RType to represent the field in the range.
dDomain dimension
ppolynomial order of the shapefunctions

Member Typedef Documentation

◆ Traits

template<class D , class R , unsigned int d, unsigned int p>
LocalBasisTraits<D,d,Dune::FieldVector<D,d>,R,1,Dune::FieldVector<R,1>, Dune::FieldMatrix<R,1,d> > Dune::MonomialLocalBasis< D, R, d, p >::Traits

export type traits for function signature

Member Function Documentation

◆ evaluateFunction()

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

Evaluate all shape functions.

◆ evaluateJacobian()

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

Evaluate Jacobian of all shape functions.

◆ order()

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

Polynomial order of the shape functions.

◆ partial()

template<class D , class R , unsigned int d, unsigned int p>
void Dune::MonomialLocalBasis< D, R, d, p >::partial ( const std::array< unsigned int, d > & order,
const typename Traits::DomainType & in,
std::vector< typename Traits::RangeType > & out ) const
inline

Evaluate partial derivatives of any order of all shape functions.

Parameters
orderOrder of the partial derivatives, in the classic multi-index notation
inPosition where to evaluate the derivatives
[out]outReturn value: the desired partial derivatives

◆ size()

template<class D , class R , unsigned int d, unsigned int p>
static constexpr unsigned int Dune::MonomialLocalBasis< D, R, d, p >::size ( )
inlinestaticconstexpr

Number of shape functions.


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