Dune Core Modules (unstable)

Dune::LocalBasisVirtualInterface< T > Class Template Referenceabstract

virtual base class for a local basis More...

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

Public Member Functions

virtual unsigned int size () const =0
 Number of shape functions.
 
virtual unsigned int order () const =0
 Polynomial order of the shape functions.
 
virtual void evaluateFunction (const typename Traits::DomainType &in, std::vector< typename Traits::RangeType > &out) const =0
 Evaluate all basis function at given position. More...
 
virtual void evaluateJacobian (const typename Traits::DomainType &in, std::vector< typename Traits::JacobianType > &out) const =0
 Evaluate jacobian of all shape functions at given position. More...
 
virtual void partial (const std::array< unsigned int, Traits::dimDomain > &order, const typename Traits::DomainType &in, std::vector< typename Traits::RangeType > &out) const =0
 Evaluate partial derivatives of any order of all shape functions. More...
 

Detailed Description

template<class T>
class Dune::LocalBasisVirtualInterface< T >

virtual base class for a local basis

Provides the local basis interface with pure virtual methods. This class defines the interface using pure virtual methods.

Member Function Documentation

◆ evaluateFunction()

template<class T >
virtual void Dune::LocalBasisVirtualInterface< T >::evaluateFunction ( const typename Traits::DomainType &  in,
std::vector< typename Traits::RangeType > &  out 
) const
pure virtual

Evaluate all basis function at given position.

Evaluates all shape functions at the given position and returns these values in a vector.

Implemented in Dune::LocalBasisVirtualImp< T, Imp >, and Dune::LocalBasisVirtualImp< LocalBasisTraits, typename Imp::Traits::LocalBasisType >.

◆ evaluateJacobian()

template<class T >
virtual void Dune::LocalBasisVirtualInterface< T >::evaluateJacobian ( const typename Traits::DomainType &  in,
std::vector< typename Traits::JacobianType > &  out 
) const
pure virtual

Evaluate jacobian of all shape functions at given position.

out[i][j][k] is \(\partial_k \hat\phi_j^i \), when \(\hat\phi^i \) is the i'th shape function.

Parameters
[in]inThe position where evaluated
[out]outThe result

Implemented in Dune::LocalBasisVirtualImp< T, Imp >, and Dune::LocalBasisVirtualImp< LocalBasisTraits, typename Imp::Traits::LocalBasisType >.

◆ partial()

template<class T >
virtual void Dune::LocalBasisVirtualInterface< T >::partial ( const std::array< unsigned int, Traits::dimDomain > &  order,
const typename Traits::DomainType &  in,
std::vector< typename Traits::RangeType > &  out 
) const
pure virtual

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

Implemented in Dune::LocalBasisVirtualImp< T, Imp >, and Dune::LocalBasisVirtualImp< LocalBasisTraits, typename Imp::Traits::LocalBasisType >.


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 (Nov 21, 23:30, 2024)