dune-localfunctions  2.6-git
Public Types | Public Member Functions | List of all members
Dune::P1LocalBasis< D, R, dim > Class Template Reference

Linear Lagrange shape functions on the simplex. More...

#include <dune/localfunctions/lagrange/p1/p1localbasis.hh>

Public Types

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

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...
 
void partial (const std::array< unsigned int, dim > &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. More...
 

Detailed Description

template<class D, class R, int dim>
class Dune::P1LocalBasis< D, R, dim >

Linear Lagrange shape functions on the simplex.

Defines the linear shape functions on the simplex.

Template Parameters
DType to represent the field in the domain.
RType to represent the field in the range.
dimThe dimension of the simplex

Member Typedef Documentation

◆ Traits

template<class D, class R, int dim>
typedef LocalBasisTraits<D,dim,Dune::FieldVector<D,dim>,R,1,Dune::FieldVector<R,1>, Dune::FieldMatrix<R,1,dim> > Dune::P1LocalBasis< D, R, dim >::Traits

export type traits for function signature

Member Function Documentation

◆ evaluateFunction()

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

Evaluate all shape functions.

◆ evaluateJacobian()

template<class D, class R, int dim>
void Dune::P1LocalBasis< D, R, dim >::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, int dim>
unsigned int Dune::P1LocalBasis< D, R, dim >::order ( ) const
inline

Polynomial order of the shape functions.

◆ partial()

template<class D, class R, int dim>
void Dune::P1LocalBasis< D, R, dim >::partial ( const std::array< unsigned int, dim > &  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, int dim>
unsigned int Dune::P1LocalBasis< D, R, dim >::size ( ) const
inline

number of shape functions


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