dune-fem  2.4.1-rc
Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Protected Attributes | List of all members
Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector > Class Template Reference

interface for local functions More...

#include </local/tomalk/somewhere/tmp/dune-fem/dune/fem/function/localfunction/localfunction.hh>

Inheritance diagram for Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >:
Inheritance graph

Public Types

typedef BasisFunctionSet BasisFunctionSetType
 type of basis function set More...
 
typedef LocalDofVector LocalDofVectorType
 type of local Dof Vector More...
 
typedef LocalDofVectorType::value_type DofType
 type of DoF use with the discrete function More...
 
typedef LocalDofVectorType::size_type SizeType
 type of index More...
 
typedef BasisFunctionSetType::EntityType EntityType
 type of the entity, the local function lives on is given by the space More...
 
typedef BasisFunctionSetType::FunctionSpaceType FunctionSpaceType
 type of functionspace More...
 
typedef FunctionSpaceType::DomainFieldType DomainFieldType
 field type of the domain More...
 
typedef FunctionSpaceType::RangeFieldType RangeFieldType
 field type of the range More...
 
typedef FunctionSpaceType::DomainType DomainType
 type of domain vectors, i.e., type of coordinates More...
 
typedef FunctionSpaceType::RangeType RangeType
 type of range vectors, i.e., type of function values More...
 
typedef FunctionSpaceType::JacobianRangeType JacobianRangeType
 type of the Jacobian, i.e., type of evaluated Jacobian matrix More...
 
typedef FunctionSpaceType::HessianRangeType HessianRangeType
 type of the Hessian More...
 
typedef EntityType::Geometry::LocalCoordinate LocalCoordinateType
 type of local coordinates More...
 

Public Member Functions

 LocalFunction ()
 default constructor, calls default ctor of BasisFunctionSetType and LocalDofVectorType More...
 
 LocalFunction (const BasisFunctionSetType &basisFunctionSet)
 ctor taking a basisFunctionSet, calling default ctor for LocalDofVectorType, and resize More...
 
 LocalFunction (const LocalDofVectorType &localDofVector)
 ctor taking a localDofVector, calling default ctor for BasisFunctionSetType More...
 
 LocalFunction (const BasisFunctionSetType &basisFunctionSet, const LocalDofVector &localDofVector)
 copy given agruments More...
 
 LocalFunction (LocalDofVectorType &&localDofVector)
 half move ctor More...
 
 LocalFunction (const BasisFunctionSetType &basisFunctionSet, LocalDofVector &&localDofVector)
 half move ctor More...
 
 LocalFunction (ThisType &&other)
 move constructor More...
 
 LocalFunction (const ThisType &other)
 copy constructor More...
 
const DofTypeoperator[] (SizeType num) const
 access to local dofs (read-only) More...
 
DofTypeoperator[] (SizeType num)
 access to local dofs (read-write) More...
 
template<class T >
ThisTypeoperator+= (const LocalFunction< BasisFunctionSet, T > &other)
 add another local function to this one More...
 
template<class T >
void assign (const LocalFunction< BasisFunctionSet, T > &other)
 assign all DoFs of this local function More...
 
void clear ()
 set all DoFs to zero More...
 
template<class T >
ThisTypeoperator-= (const LocalFunction< BasisFunctionSet, T > &other)
 subtract another local function to this one More...
 
template<class T >
ThisTypeaxpy (const RangeFieldType s, const LocalFunction< BasisFunctionSet, T > &other)
 add a multiple of another local function to this one More...
 
template<class PointType >
void axpy (const PointType &x, const RangeType &factor)
 axpy operation for local function More...
 
template<class PointType >
void axpy (const PointType &x, const JacobianRangeType &factor)
 axpy operation for local function More...
 
template<class PointType >
void axpy (const PointType &x, const RangeType &factor1, const JacobianRangeType &factor2)
 axpy operation for local function More...
 
int order () const
 obtain the order of this local function More...
 
const BasisFunctionSetTypebasisFunctionSet () const
 obtain the basis function set for this local function More...
 
const EntityTypeentity () const
 obtain the entity, this local function lives on More...
 
void init (const BasisFunctionSetType &basisFunctionSet)
 
template<class PointType >
void evaluate (const PointType &x, RangeType &ret) const
 evaluate the local function More...
 
template<class PointType >
void jacobian (const PointType &x, JacobianRangeType &ret) const
 evaluate Jacobian of the local function More...
 
template<class PointType >
void hessian (const PointType &x, HessianRangeType &ret) const
 evaluate Hessian of the local function More...
 
int numDofs () const
 obtain the number of local DoFs More...
 
SizeType size () const
 
int numScalarDofs () const
 obtain the number of local DoFs in the scalar case More...
 
template<class QuadratureType , class VectorType >
void axpyQuadrature (const QuadratureType &quad, const VectorType &values)
 evaluate all basisfunctions for all quadrature points, multiply with the given factor and add the result to the local coefficients More...
 
template<class QuadratureType , class RangeVectorType , class JacobianRangeVectorType >
void axpyQuadrature (const QuadratureType &quad, const RangeVectorType &rangeVector, const JacobianRangeVectorType &jacobianVector)
 evaluate all basisfunctions for all quadrature points, multiply with the given factor and add the result to the local coefficients More...
 
template<class QuadratureType , class VectorType >
void evaluateQuadrature (const QuadratureType &quad, VectorType &result) const
 evaluate all basisfunctions for all quadrature points and store the results in the result vector More...
 
const LocalDofVectorTypelocalDofVector () const
 return const reference to local Dof Vector More...
 
LocalDofVectorTypelocalDofVector ()
 return mutable reference to local Dof Vector More...
 

Static Public Attributes

static const int dimDomain = FunctionSpaceType::dimDomain
 dimension of the domain More...
 
static const int dimRange = FunctionSpaceType::dimRange
 dimension of the range More...
 

Protected Member Functions

template<class QuadratureType , class VectorType >
void evaluateQuadrature (const QuadratureType &quad, VectorType &result, const RangeType &) const
 
template<class QuadratureType , class VectorType >
void evaluateQuadrature (const QuadratureType &quad, VectorType &result, const JacobianRangeType &) const
 

Protected Attributes

BasisFunctionSetType basisFunctionSet_
 
LocalDofVectorType localDofVector_
 

Detailed Description

template<class BasisFunctionSet, class LocalDofVector>
class Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >

interface for local functions

Local functions are used to represend a discrete function on one entity. The LocalFunctionInterface defines the functionality that can be expected from such a local function.

Member Typedef Documentation

template<class BasisFunctionSet, class LocalDofVector>
typedef BasisFunctionSet Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::BasisFunctionSetType

type of basis function set

template<class BasisFunctionSet, class LocalDofVector>
typedef LocalDofVectorType::value_type Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::DofType

type of DoF use with the discrete function

template<class BasisFunctionSet, class LocalDofVector>
typedef FunctionSpaceType::DomainFieldType Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::DomainFieldType

field type of the domain

template<class BasisFunctionSet, class LocalDofVector>
typedef FunctionSpaceType::DomainType Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::DomainType

type of domain vectors, i.e., type of coordinates

template<class BasisFunctionSet, class LocalDofVector>
typedef BasisFunctionSetType::EntityType Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::EntityType

type of the entity, the local function lives on is given by the space

template<class BasisFunctionSet, class LocalDofVector>
typedef BasisFunctionSetType::FunctionSpaceType Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::FunctionSpaceType

type of functionspace

template<class BasisFunctionSet, class LocalDofVector>
typedef FunctionSpaceType::HessianRangeType Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::HessianRangeType

type of the Hessian

template<class BasisFunctionSet, class LocalDofVector>
typedef FunctionSpaceType::JacobianRangeType Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::JacobianRangeType

type of the Jacobian, i.e., type of evaluated Jacobian matrix

template<class BasisFunctionSet, class LocalDofVector>
typedef EntityType::Geometry::LocalCoordinate Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::LocalCoordinateType

type of local coordinates

template<class BasisFunctionSet, class LocalDofVector>
typedef LocalDofVector Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::LocalDofVectorType

type of local Dof Vector

template<class BasisFunctionSet, class LocalDofVector>
typedef FunctionSpaceType::RangeFieldType Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::RangeFieldType

field type of the range

template<class BasisFunctionSet, class LocalDofVector>
typedef FunctionSpaceType::RangeType Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::RangeType

type of range vectors, i.e., type of function values

template<class BasisFunctionSet, class LocalDofVector>
typedef LocalDofVectorType::size_type Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::SizeType

type of index

Constructor & Destructor Documentation

template<class BasisFunctionSet, class LocalDofVector>
Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::LocalFunction ( )
inline

default constructor, calls default ctor of BasisFunctionSetType and LocalDofVectorType

template<class BasisFunctionSet, class LocalDofVector>
Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::LocalFunction ( const BasisFunctionSetType basisFunctionSet)
inlineexplicit

ctor taking a basisFunctionSet, calling default ctor for LocalDofVectorType, and resize

template<class BasisFunctionSet, class LocalDofVector>
Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::LocalFunction ( const LocalDofVectorType localDofVector)
inlineexplicit

ctor taking a localDofVector, calling default ctor for BasisFunctionSetType

template<class BasisFunctionSet, class LocalDofVector>
Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::LocalFunction ( const BasisFunctionSetType basisFunctionSet,
const LocalDofVector &  localDofVector 
)
inline

copy given agruments

template<class BasisFunctionSet, class LocalDofVector>
Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::LocalFunction ( LocalDofVectorType &&  localDofVector)
inlineexplicit

half move ctor

template<class BasisFunctionSet, class LocalDofVector>
Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::LocalFunction ( const BasisFunctionSetType basisFunctionSet,
LocalDofVector &&  localDofVector 
)
inline

half move ctor

template<class BasisFunctionSet, class LocalDofVector>
Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::LocalFunction ( ThisType &&  other)
inline

move constructor

template<class BasisFunctionSet, class LocalDofVector>
Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::LocalFunction ( const ThisType other)
inline

copy constructor

Member Function Documentation

template<class BasisFunctionSet, class LocalDofVector>
template<class T >
void Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::assign ( const LocalFunction< BasisFunctionSet, T > &  other)
inline
template<class BasisFunctionSet, class LocalDofVector>
template<class T >
ThisType& Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::axpy ( const RangeFieldType  s,
const LocalFunction< BasisFunctionSet, T > &  other 
)
inline
template<class BasisFunctionSet, class LocalDofVector>
template<class PointType >
void Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::axpy ( const PointType &  x,
const RangeType factor 
)
inline

axpy operation for local function

Denoting the DoFs of the local function by $u_i$ and the basis functions by $\varphi_i$, this function performs the following operation:

\[ u_i = u_i + factor \cdot \varphi_i( x ) \]

Parameters
[in]xpoint to evaluate basis functions in
[in]factoraxpy factor
template<class BasisFunctionSet, class LocalDofVector>
template<class PointType >
void Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::axpy ( const PointType &  x,
const JacobianRangeType factor 
)
inline

axpy operation for local function

Denoting the DoFs of the local function by $u_i$ and the basis functions by $\varphi_i$, this function performs the following operation:

\[ u_i = u_i + factor \cdot \nabla\varphi_i( x ) \]

Parameters
[in]xpoint to evaluate jacobian of basis functions in
[in]factoraxpy factor
template<class BasisFunctionSet, class LocalDofVector>
template<class PointType >
void Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::axpy ( const PointType &  x,
const RangeType factor1,
const JacobianRangeType factor2 
)
inline

axpy operation for local function

Denoting the DoFs of the local function by $u_i$ and the basis functions by $\varphi_i$, this function performs the following operation:

\[ u_i = u_i + factor1 \cdot \varphi_i( x ) + factor2 \cdot \nabla\varphi_i( x ) \]

Parameters
[in]xpoint to evaluate basis functions in
[in]factor1axpy factor for $\varphi( x )$
[in]factor2axpy factor for $\nabla\varphi( x )$
template<class BasisFunctionSet, class LocalDofVector>
template<class QuadratureType , class VectorType >
void Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::axpyQuadrature ( const QuadratureType &  quad,
const VectorType &  values 
)
inline

evaluate all basisfunctions for all quadrature points, multiply with the given factor and add the result to the local coefficients

Referenced by Dune::Fem::LocalDGPass< DiscreteModelImp, PreviousPassImp >::applyLocal().

template<class BasisFunctionSet, class LocalDofVector>
template<class QuadratureType , class RangeVectorType , class JacobianRangeVectorType >
void Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::axpyQuadrature ( const QuadratureType &  quad,
const RangeVectorType &  rangeVector,
const JacobianRangeVectorType &  jacobianVector 
)
inline

evaluate all basisfunctions for all quadrature points, multiply with the given factor and add the result to the local coefficients

template<class BasisFunctionSet, class LocalDofVector>
const BasisFunctionSetType& Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::basisFunctionSet ( ) const
inline

obtain the basis function set for this local function

Returns
reference to the basis function set

Referenced by Dune::Fem::LocalMassMatrixImplementation< DiscreteFunctionSpaceType, QuadratureType >::applyInverseDefault(), Dune::Fem::LocalMassMatrixImplementation< DiscreteFunctionSpaceType, QuadratureType >::applyInverseDgOrthoNormalBasis(), Dune::Fem::LocalMassMatrixImplementation< DiscreteFunctionSpaceType, QuadratureType >::applyInverseLocally(), Dune::Fem::LocalFunction< DiscreteFunctionSpaceType::BasisFunctionSetType, Dune::DynamicVector< typename DiscreteFunctionSpaceType::RangeFieldType > >::axpy(), Dune::Fem::LocalFunction< DiscreteFunctionSpaceType::BasisFunctionSetType, Dune::DynamicVector< typename DiscreteFunctionSpaceType::RangeFieldType > >::axpyQuadrature(), Dune::Fem::LocalFunction< DiscreteFunctionSpaceType::BasisFunctionSetType, Dune::DynamicVector< typename DiscreteFunctionSpaceType::RangeFieldType > >::entity(), Dune::Fem::LocalFunction< DiscreteFunctionSpaceType::BasisFunctionSetType, Dune::DynamicVector< typename DiscreteFunctionSpaceType::RangeFieldType > >::evaluate(), Dune::Fem::LocalFunction< DiscreteFunctionSpaceType::BasisFunctionSetType, Dune::DynamicVector< typename DiscreteFunctionSpaceType::RangeFieldType > >::evaluateQuadrature(), Dune::Fem::LocalFunction< DiscreteFunctionSpaceType::BasisFunctionSetType, Dune::DynamicVector< typename DiscreteFunctionSpaceType::RangeFieldType > >::hessian(), Dune::Fem::ConstLocalFunction< DiscreteFunction >::init(), Dune::Fem::LocalFunction< DiscreteFunctionSpaceType::BasisFunctionSetType, Dune::DynamicVector< typename DiscreteFunctionSpaceType::RangeFieldType > >::init(), Dune::Fem::LocalFunction< DiscreteFunctionSpaceType::BasisFunctionSetType, Dune::DynamicVector< typename DiscreteFunctionSpaceType::RangeFieldType > >::jacobian(), and Dune::Fem::LocalFunction< DiscreteFunctionSpaceType::BasisFunctionSetType, Dune::DynamicVector< typename DiscreteFunctionSpaceType::RangeFieldType > >::order().

template<class BasisFunctionSet, class LocalDofVector>
void Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::clear ( )
inline
template<class BasisFunctionSet, class LocalDofVector>
const EntityType& Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::entity ( ) const
inline
template<class BasisFunctionSet, class LocalDofVector>
template<class PointType >
void Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::evaluate ( const PointType &  x,
RangeType ret 
) const
inline
template<class BasisFunctionSet, class LocalDofVector>
template<class QuadratureType , class VectorType >
void Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::evaluateQuadrature ( const QuadratureType &  quad,
VectorType &  result 
) const
inline
template<class BasisFunctionSet, class LocalDofVector>
template<class QuadratureType , class VectorType >
void Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::evaluateQuadrature ( const QuadratureType &  quad,
VectorType &  result,
const RangeType  
) const
inlineprotected
template<class BasisFunctionSet, class LocalDofVector>
template<class QuadratureType , class VectorType >
void Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::evaluateQuadrature ( const QuadratureType &  quad,
VectorType &  result,
const JacobianRangeType  
) const
inlineprotected
template<class BasisFunctionSet, class LocalDofVector>
template<class PointType >
void Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::hessian ( const PointType &  x,
HessianRangeType ret 
) const
inline

evaluate Hessian of the local function

Note
Though the Hessian is evaluated on the reference element, the return value is the Hessian with respect to the actual entity.
Parameters
[in]xevaluation point in local coordinates
[out]retHessian of the function in the evaluation point
template<class BasisFunctionSet, class LocalDofVector>
void Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::init ( const BasisFunctionSetType basisFunctionSet)
inline
template<class BasisFunctionSet, class LocalDofVector>
template<class PointType >
void Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::jacobian ( const PointType &  x,
JacobianRangeType ret 
) const
inline

evaluate Jacobian of the local function

Note
Though the Jacobian is evaluated on the reference element, the return value is the Jacobian with respect to the actual entity.
Parameters
[in]xevaluation point in local coordinates
[out]retJacobian of the function in the evaluation point
template<class BasisFunctionSet, class LocalDofVector>
const LocalDofVectorType& Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::localDofVector ( ) const
inline

return const reference to local Dof Vector

Referenced by Dune::Fem::LocalFunction< DiscreteFunctionSpaceType::BasisFunctionSetType, Dune::DynamicVector< typename DiscreteFunctionSpaceType::RangeFieldType > >::assign(), Dune::Fem::LocalFunction< DiscreteFunctionSpaceType::BasisFunctionSetType, Dune::DynamicVector< typename DiscreteFunctionSpaceType::RangeFieldType > >::axpy(), Dune::Fem::LocalFunction< DiscreteFunctionSpaceType::BasisFunctionSetType, Dune::DynamicVector< typename DiscreteFunctionSpaceType::RangeFieldType > >::axpyQuadrature(), Dune::Fem::BasicConstLocalFunction< DiscreteFunctionTraits< std::remove_const< DiscreteFunction >::type >::DiscreteFunctionSpaceType::BasisFunctionSetType, Dune::DynamicVector< DiscreteFunctionTraits< std::remove_const< DiscreteFunction >::type >::DofType, DiscreteFunctionTraits< std::remove_const< DiscreteFunction >::type >::LocalDofVectorAllocatorType::template rebind< DiscreteFunctionTraits< std::remove_const< DiscreteFunction >::type >::DofType >::other > >::BasicConstLocalFunction(), Dune::Fem::LocalFunction< DiscreteFunctionSpaceType::BasisFunctionSetType, Dune::DynamicVector< typename DiscreteFunctionSpaceType::RangeFieldType > >::clear(), Dune::Fem::ConstLocalFunction< DiscreteFunction >::ConstLocalFunction(), Dune::Fem::LocalFunction< DiscreteFunctionSpaceType::BasisFunctionSetType, Dune::DynamicVector< typename DiscreteFunctionSpaceType::RangeFieldType > >::evaluate(), Dune::Fem::LocalFunction< DiscreteFunctionSpaceType::BasisFunctionSetType, Dune::DynamicVector< typename DiscreteFunctionSpaceType::RangeFieldType > >::evaluateQuadrature(), Dune::Fem::LocalFunction< DiscreteFunctionSpaceType::BasisFunctionSetType, Dune::DynamicVector< typename DiscreteFunctionSpaceType::RangeFieldType > >::hessian(), Dune::Fem::ConstLocalFunction< DiscreteFunction >::init(), Dune::Fem::LocalFunction< DiscreteFunctionSpaceType::BasisFunctionSetType, Dune::DynamicVector< typename DiscreteFunctionSpaceType::RangeFieldType > >::jacobian(), Dune::Fem::MutableLocalFunction< DiscreteFunction >::MutableLocalFunction(), Dune::Fem::LocalFunction< DiscreteFunctionSpaceType::BasisFunctionSetType, Dune::DynamicVector< typename DiscreteFunctionSpaceType::RangeFieldType > >::numDofs(), Dune::Fem::LocalFunction< DiscreteFunctionSpaceType::BasisFunctionSetType, Dune::DynamicVector< typename DiscreteFunctionSpaceType::RangeFieldType > >::operator+=(), Dune::Fem::LocalFunction< DiscreteFunctionSpaceType::BasisFunctionSetType, Dune::DynamicVector< typename DiscreteFunctionSpaceType::RangeFieldType > >::operator-=(), and Dune::Fem::LocalFunction< DiscreteFunctionSpaceType::BasisFunctionSetType, Dune::DynamicVector< typename DiscreteFunctionSpaceType::RangeFieldType > >::size().

template<class BasisFunctionSet, class LocalDofVector>
LocalDofVectorType& Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::localDofVector ( )
inline

return mutable reference to local Dof Vector

template<class BasisFunctionSet, class LocalDofVector>
int Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::numDofs ( ) const
inline
template<class BasisFunctionSet, class LocalDofVector>
int Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::numScalarDofs ( ) const
inline

obtain the number of local DoFs in the scalar case

Obtain the number of local DoFs of the scalar case of this local function. The value is identical to the number of basis functons on the entity.

Returns
number of local DoFs, scalar case
template<class BasisFunctionSet, class LocalDofVector>
template<class T >
ThisType& Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::operator+= ( const LocalFunction< BasisFunctionSet, T > &  other)
inline

add another local function to this one

Note
The local function to add may be any implementation of a LocalFunction.
Parameters
[in]lflocal function to add
Returns
a reference to this local function (i.e., *this)
template<class BasisFunctionSet, class LocalDofVector>
template<class T >
ThisType& Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::operator-= ( const LocalFunction< BasisFunctionSet, T > &  other)
inline

subtract another local function to this one

Note
The local function to suctract may be any implementation of a LocalFunction.
Parameters
[in]lflocal function to subtract
Returns
a reference to this local function (i.e., *this)
template<class BasisFunctionSet, class LocalDofVector>
const DofType& Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::operator[] ( SizeType  num) const
inline

access to local dofs (read-only)

Parameters
[in]numlocal dof number
Returns
reference to dof
template<class BasisFunctionSet, class LocalDofVector>
DofType& Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::operator[] ( SizeType  num)
inline

access to local dofs (read-write)

Parameters
[in]numlocal DoF number
Returns
reference to DoF
template<class BasisFunctionSet, class LocalDofVector>
int Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::order ( ) const
inline

obtain the order of this local function

The order of a local function refers to the polynomial order required to integrate it exactly.

Note
It is not completely clear what this value should be, e.g., for bilinear basis functions.
Returns
order of the local function

Referenced by Dune::Fem::LocalAverageImpl< LocalFunction, GridPart, DiscreteFunctionSpace >::apply(), Dune::Fem::LocalAverageImpl< LocalFunction, GridPart, DiscontinuousGalerkinSpace< FunctionSpace, GridPart, order, Storage > >::apply(), Dune::Fem::DefaultLocalL2Projection< LocalRieszProjectionType, Quadrature >::apply(), and Dune::Fem::DiscontinuousGalerkinLocalInterpolation< DiscreteFunctionSpace, Quadrature >::operator()().

template<class BasisFunctionSet, class LocalDofVector>
SizeType Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::size ( ) const
inline

Member Data Documentation

template<class BasisFunctionSet, class LocalDofVector>
BasisFunctionSetType Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::basisFunctionSet_
protected
template<class BasisFunctionSet, class LocalDofVector>
const int Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::dimDomain = FunctionSpaceType::dimDomain
static

dimension of the domain

template<class BasisFunctionSet, class LocalDofVector>
const int Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::dimRange = FunctionSpaceType::dimRange
static
template<class BasisFunctionSet, class LocalDofVector>
LocalDofVectorType Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::localDofVector_
protected

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