DUNE PDELab (2.8)

Dune::P0LocalBasis< D, R, d > Class Template Reference

Constant shape function. More...

#include <dune/localfunctions/lagrange/p0/p0localbasis.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

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

Detailed Description

template<class D, class R, int d>
class Dune::P0LocalBasis< D, R, d >

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

Member Function Documentation

◆ partial()

template<class D , class R , int d>
void Dune::P0LocalBasis< D, R, d >::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

References Dune::Hybrid::accumulate(), Dune::P0LocalBasis< D, R, d >::evaluateFunction(), and Dune::P0LocalBasis< D, R, d >::order().


The documentation for this class was generated from the following file:
Creative Commons License   |  Legal Statements / Impressum  |  Hosted by TU Dresden  |  generated with Hugo v0.111.3 (Dec 21, 23:30, 2024)