dune-fem 2.12-git
Loading...
Searching...
No Matches
Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > > Class Template Reference

#include <dune/fem/function/common/localcontribution.hh>

Inheritance diagram for Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > >:
Inheritance graph

Public Types

typedef DiscreteFunction DiscreteFunctionType
 
typedef AssemblyOperation< typename DiscreteFunctionTraits< DiscreteFunctionType >::DiscreteFunctionTypeAssemblyOperationType
 
typedef DiscreteFunctionType::DiscreteFunctionSpaceType::BasisFunctionSetType BasisFunctionSetType
 
typedef DiscreteFunctionType::DofType DofType
 
typedef DiscreteFunctionType::RangeType RangeType
 
typedef RangeType::field_type RangeFieldType
 
typedef DiscreteFunctionType::JacobianRangeType JacobianRangeType
 
typedef BaseType::LocalDofVectorType LocalDofVectorType
 
typedef LocalDofVectorType::size_type SizeType
 
typedef BasisFunctionSetType::EntityType EntityType
 
typedef EntityType::Geometry Geometry
 type of the geometry, the local function lives on is given by the space
 
typedef BasisFunctionSetType::FunctionSpaceType FunctionSpaceType
 type of functionspace
 
typedef FunctionSpaceType::DomainFieldType DomainFieldType
 field type of the domain
 
typedef FunctionSpaceType::DomainType DomainType
 type of domain vectors, i.e., type of coordinates
 
typedef FunctionSpaceType::HessianRangeType HessianRangeType
 type of the Hessian
 
typedef Geometry::LocalCoordinate LocalCoordinateType
 type of local coordinates
 
typedef Traits::derived_type derived_type
 
typedef Traits::value_type value_type
 
typedef FieldTraits< value_type >::field_type field_type
 
typedef Traits::value_type block_type
 
typedef Traits::size_type size_type
 
typedef DenseIterator< DenseVector, value_typeIterator
 
typedef Iterator iterator
 
typedef DenseIterator< const DenseVector, const value_typeConstIterator
 
typedef ConstIterator const_iterator
 

Public Member Functions

template<class... Args>
 LocalContribution (DiscreteFunctionType &discreteFunction, const bool communicate, Args &&... args)
 
template<class... Args>
 LocalContribution (DiscreteFunctionType &discreteFunction, Args &&... args)
 
 LocalContribution (const ThisType &)=delete
 
 LocalContribution (ThisType &&)=delete
 
 ~LocalContribution ()
 
ThisTypeoperator= (const ThisType &)=delete
 
ThisTypeoperator= (ThisType &&)=delete
 
const DiscreteFunctionTypediscreteFunction () const
 
DiscreteFunctionTypediscreteFunction ()
 
void bind (const EntityType &entity)
 
void unbind ()
 
void init (const EntityType &entity)
 initialize the local function for an entity
 
void bind (const EntityType &entity)
 initialize the local function for an entity
 
template<class IntersectionType >
void bind (const IntersectionType &intersection, IntersectionSide side)
 initialize the local function for an entity adjacent to the intersection
 
const DiscreteFunctionSpaceType & space () const
 return discrete function space this local function belongs to
 
const LocalDofVectorTypelocalDofVector () const
 return const reference to local Dof Vector

 
LocalDofVectorTypelocalDofVector ()
 return mutable reference to local Dof Vector

 
const DofTypeoperator[] (SizeType num) const
 access to local dofs (read-only)
 
DofTypeoperator[] (SizeType num)
 access to local dofs (read-write)
 
constexpr value_typeoperator[] (size_type i)
 
constexpr const value_typeoperator[] (size_type i) const
 
void assign (const LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType, T > &other)
 assign all DoFs of this local function
 
void clear ()
 set all DoFs to zero
 
void axpy (const PointType &x, const RangeType &factor)
 axpy operation for local function
 
void axpy (const PointType &x, const JacobianRangeType &factor)
 axpy operation for local function
 
void axpy (const PointType &x, const HessianRangeType &factor)
 
void axpy (const PointType &x, const RangeType &factor1, const JacobianRangeType &factor2)
 axpy operation for local function
 
constexpr derived_typeaxpy (const field_type &a, const DenseVector< Other > &x)
 
int order () const
 obtain the order of this local function
 
const BasisFunctionSetTypebasisFunctionSet () const
 obtain the basis function set for this local function
 
const EntityTypeentity () const
 obtain the entity, this local function lives on
 
const Geometrygeometry () const
 obtain the geometry, this local function lives on
 
void evaluate (const PointType &x, RangeType &ret) const
 evaluate the local function
 
void jacobian (const PointType &x, JacobianRangeType &ret) const
 evaluate Jacobian of the local function
 
void hessian (const PointType &x, HessianRangeType &ret) const
 evaluate Hessian of the local function
 
int numDofs () const
 obtain the number of local DoFs
 
SizeType size () const
 obtain the number of local DoFs
 
void axpyQuadrature (const QuadratureType &quad, const Vectors &... values)
 evaluate all basisfunctions for all quadrature points, multiply with the given factor and add the result to the local coefficients

 
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
 
void evaluateQuadrature (const QuadratureType &quad, Vectors &... vec) const
 evaluate all basisfunctions for all quadrature points and store the results in the result vector
 
void jacobianQuadrature (const QuadratureType &quad, Vectors &... vec) const
 evaluate all Jacobians for all basis functions for all quadrature points and store the results in the result vector
 
void hessianQuadrature (const QuadratureType &quad, Vectors &... vec) const
 evaluate all hessians of all basis functions for all quadrature points and store the results in the result vector
 
bool valid () const
 Returns true if local function if bind or init was previously called.
 
constexpr value_typefront ()
 
constexpr const value_typefront () const
 
constexpr value_typeback ()
 
constexpr const value_typeback () const
 
constexpr bool empty () const
 
constexpr Iterator begin ()
 
constexpr ConstIterator begin () const
 
constexpr Iterator end ()
 
constexpr ConstIterator end () const
 
constexpr Iterator beforeEnd ()
 
constexpr ConstIterator beforeEnd () const
 
constexpr Iterator beforeBegin ()
 
constexpr ConstIterator beforeBegin () const
 
constexpr Iterator find (size_type i)
 
constexpr ConstIterator find (size_type i) const
 
constexpr derived_typeoperator+= (const DenseVector< Other > &x)
 
constexpr std::enable_if< std::is_convertible< ValueType, value_type >::value, derived_type >::type & operator+= (const ValueType &kk)
 
constexpr derived_typeoperator-= (const DenseVector< Other > &x)
 
constexpr std::enable_if< std::is_convertible< ValueType, value_type >::value, derived_type >::type & operator-= (const ValueType &kk)
 
constexpr derived_type operator+ (const DenseVector< Other > &b) const
 
constexpr derived_type operator- (const DenseVector< Other > &b) const
 
constexpr derived_type operator- () const
 
constexpr std::enable_if< std::is_convertible< FieldType, field_type >::value, derived_type >::type & operator*= (const FieldType &kk)
 
constexpr std::enable_if< std::is_convertible< FieldType, field_type >::value, derived_type >::type & operator/= (const FieldType &kk)
 
constexpr bool operator== (const DenseVector< Other > &x) const
 
constexpr bool operator!= (const DenseVector< Other > &x) const
 
constexpr PromotionTraits< field_type, typenameDenseVector< Other >::field_type >::PromotedType operator* (const DenseVector< Other > &x) const
 
constexpr PromotionTraits< field_type, typenameDenseVector< Other >::field_type >::PromotedType dot (const DenseVector< Other > &x) const
 
constexpr FieldTraits< value_type >::real_type one_norm () const
 
constexpr FieldTraits< value_type >::real_type one_norm_real () const
 
constexpr FieldTraits< value_type >::real_type two_norm () const
 
constexpr FieldTraits< value_type >::real_type two_norm2 () const
 
constexpr FieldTraits< vt >::real_type infinity_norm () const
 
constexpr FieldTraits< vt >::real_type infinity_norm () const
 
constexpr FieldTraits< vt >::real_type infinity_norm_real () const
 
constexpr FieldTraits< vt >::real_type infinity_norm_real () const
 
constexpr size_type N () const
 
constexpr size_type dim () const
 
std::ostreamoperator<< (std::ostream &s, const DenseVector< V > &v)
 

Static Public Attributes

static const int dimDomain
 dimension of the domain
 
static const int dimRange
 dimension of the range
 
static constexpr int blocklevel
 

Protected Member Functions

void init (const EntityType &entity)
 initialize the local function for an entity
 
void init (const BasisFunctionSetType &basisFunctionSet)
 initialize the local function for an basisFunctionSet
 
void evaluateQuadrature (const QuadratureType &quad, VectorType &result, const RangeType &) const
 
void evaluateQuadrature (const QuadratureType &quad, VectorType &result, const JacobianRangeType &) const
 
void evaluateQuadrature (const QuadratureType &quad, VectorType &result, const HessianRangeType &) const
 

Protected Attributes

DiscreteFunctionTypediscreteFunction_
 
AssemblyOperationType assemblyOperation_
 
const bool communicate_
 
bool bound_
 
const DiscreteFunctionSpaceType & dfSpace_
 
BasisFunctionSetType basisFunctionSet_
 
LocalDofVectorType localDofVector_
 

Member Typedef Documentation

◆ AssemblyOperationType

template<class DiscreteFunction , template< class > class AssemblyOperation>
typedef AssemblyOperation< typename DiscreteFunctionTraits< DiscreteFunctionType >::DiscreteFunctionType > Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > >::AssemblyOperationType

◆ BasisFunctionSetType

template<class DiscreteFunction , template< class > class AssemblyOperation>
typedef DiscreteFunctionType::DiscreteFunctionSpaceType::BasisFunctionSetType Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > >::BasisFunctionSetType

◆ DiscreteFunctionType

template<class DiscreteFunction , template< class > class AssemblyOperation>
typedef DiscreteFunction Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > >::DiscreteFunctionType

◆ DofType

template<class DiscreteFunction , template< class > class AssemblyOperation>
typedef DiscreteFunctionType::DofType Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > >::DofType

◆ DomainFieldType

typedef FunctionSpaceType::DomainFieldType Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::DomainFieldType
inherited

field type of the domain

◆ DomainType

typedef FunctionSpaceType::DomainType Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::DomainType
inherited

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

◆ EntityType

template<class DiscreteFunction , template< class > class AssemblyOperation>
typedef BasisFunctionSetType::EntityType Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > >::EntityType

◆ FunctionSpaceType

typedef BasisFunctionSetType::FunctionSpaceType Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::FunctionSpaceType
inherited

type of functionspace

◆ Geometry

typedef EntityType::Geometry Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::Geometry
inherited

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

◆ HessianRangeType

typedef FunctionSpaceType::HessianRangeType Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::HessianRangeType
inherited

type of the Hessian

◆ JacobianRangeType

template<class DiscreteFunction , template< class > class AssemblyOperation>
typedef DiscreteFunctionType::JacobianRangeType Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > >::JacobianRangeType

◆ LocalCoordinateType

type of local coordinates

◆ LocalDofVectorType

template<class DiscreteFunction , template< class > class AssemblyOperation>
typedef BaseType::LocalDofVectorType Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > >::LocalDofVectorType

◆ RangeFieldType

template<class DiscreteFunction , template< class > class AssemblyOperation>
typedef RangeType::field_type Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > >::RangeFieldType

◆ RangeType

template<class DiscreteFunction , template< class > class AssemblyOperation>
typedef DiscreteFunctionType::RangeType Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > >::RangeType

◆ SizeType

template<class DiscreteFunction , template< class > class AssemblyOperation>
typedef LocalDofVectorType::size_type Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > >::SizeType

Constructor & Destructor Documentation

◆ LocalContribution() [1/4]

template<class DiscreteFunction , template< class > class AssemblyOperation>
template<class... Args>
Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > >::LocalContribution ( DiscreteFunctionType discreteFunction,
const bool  communicate,
Args &&...  args 
)
inlineexplicit

◆ LocalContribution() [2/4]

template<class DiscreteFunction , template< class > class AssemblyOperation>
template<class... Args>
Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > >::LocalContribution ( DiscreteFunctionType discreteFunction,
Args &&...  args 
)
inlineexplicit

◆ LocalContribution() [3/4]

template<class DiscreteFunction , template< class > class AssemblyOperation>
Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > >::LocalContribution ( const ThisType )
delete

◆ LocalContribution() [4/4]

template<class DiscreteFunction , template< class > class AssemblyOperation>
Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > >::LocalContribution ( ThisType &&  )
delete

◆ ~LocalContribution()

template<class DiscreteFunction , template< class > class AssemblyOperation>
Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > >::~LocalContribution ( )
inline

Member Function Documentation

◆ assign()

void Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::assign ( const LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , T > &  other)
inlineinherited

assign all DoFs of this local function

Parameters
[in]lflocal function to assign DoFs from

◆ axpy() [1/4]

void Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::axpy ( const PointType &  x,
const HessianRangeType factor 
)
inlineinherited

◆ axpy() [2/4]

void Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::axpy ( const PointType &  x,
const JacobianRangeType factor 
)
inlineinherited

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

◆ axpy() [3/4]

void Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::axpy ( const PointType &  x,
const RangeType factor 
)
inlineinherited

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

◆ axpy() [4/4]

void Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::axpy ( const PointType &  x,
const RangeType factor1,
const JacobianRangeType factor2 
)
inlineinherited

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 )\)

◆ axpyQuadrature() [1/2]

void Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::axpyQuadrature ( const QuadratureType &  quad,
const RangeVectorType &  rangeVector,
const JacobianRangeVectorType &  jacobianVector 
)
inlineinherited

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

◆ axpyQuadrature() [2/2]

void Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::axpyQuadrature ( const QuadratureType &  quad,
const Vectors &...  values 
)
inlineinherited

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

◆ basisFunctionSet()

const BasisFunctionSetType & Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::basisFunctionSet ( ) const
inlineinherited

obtain the basis function set for this local function

Returns
reference to the basis function set

◆ bind() [1/3]

template<class DiscreteFunction , template< class > class AssemblyOperation>
void Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > >::bind ( const EntityType entity)
inline

◆ bind() [2/3]

template<class DiscreteFunctionSpace , class DofVector >
void Dune::Fem::BasicTemporaryLocalFunction< DiscreteFunctionSpace, DofVector >::bind ( const EntityType entity)
inlineinherited

initialize the local function for an entity

Binds the local function to an entity.

Note
A local function must be initialized to an entity before it can be used.
This function can be called multiple times to use the local function for more than one entity.
Parameters
[in]entityentity to bind the local function to

◆ bind() [3/3]

template<class DiscreteFunctionSpace , class DofVector >
template<class IntersectionType >
void Dune::Fem::BasicTemporaryLocalFunction< DiscreteFunctionSpace, DofVector >::bind ( const IntersectionType &  intersection,
IntersectionSide  side 
)
inlineinherited

initialize the local function for an entity adjacent to the intersection

Binds the local function to an entity.

Note
A local function must be initialized to an entity before it can be used.
This function can be called multiple times to use the local function for more than one entity.
Parameters
[in]intersectionto bind the local function to either inside or outside entity
[in]sideside of intersection, i.e. in or out

◆ clear()

void Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::clear ( )
inlineinherited

set all DoFs to zero

◆ discreteFunction() [1/2]

template<class DiscreteFunction , template< class > class AssemblyOperation>
DiscreteFunctionType & Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > >::discreteFunction ( )
inline

◆ discreteFunction() [2/2]

template<class DiscreteFunction , template< class > class AssemblyOperation>
const DiscreteFunctionType & Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > >::discreteFunction ( ) const
inline

◆ entity()

const EntityType & Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::entity ( ) const
inlineinherited

obtain the entity, this local function lives on

Returns
reference to the entity

◆ evaluate()

void Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::evaluate ( const PointType &  x,
RangeType ret 
) const
inlineinherited

evaluate the local function

Parameters
[in]xevaluation point in local coordinates
[out]retvalue of the function in the given point

◆ evaluateQuadrature() [1/4]

void Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::evaluateQuadrature ( const QuadratureType &  quad,
Vectors &...  vec 
) const
inlineinherited

evaluate all basisfunctions for all quadrature points and store the results in the result vector

◆ evaluateQuadrature() [2/4]

void Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::evaluateQuadrature ( const QuadratureType &  quad,
VectorType &  result,
const HessianRangeType  
) const
inlineprotectedinherited

◆ evaluateQuadrature() [3/4]

void Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::evaluateQuadrature ( const QuadratureType &  quad,
VectorType &  result,
const JacobianRangeType  
) const
inlineprotectedinherited

◆ evaluateQuadrature() [4/4]

void Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::evaluateQuadrature ( const QuadratureType &  quad,
VectorType &  result,
const RangeType  
) const
inlineprotectedinherited

◆ geometry()

const Geometry & Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::geometry ( ) const
inlineinherited

obtain the geometry, this local function lives on

Returns
reference to the geometry

◆ hessian()

void Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::hessian ( const PointType &  x,
HessianRangeType ret 
) const
inlineinherited

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

◆ hessianQuadrature()

void Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::hessianQuadrature ( const QuadratureType &  quad,
Vectors &...  vec 
) const
inlineinherited

evaluate all hessians of all basis functions for all quadrature points and store the results in the result vector

◆ init() [1/3]

void Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::init ( const BasisFunctionSetType basisFunctionSet)
inlineprotectedinherited

initialize the local function for an basisFunctionSet

Binds the local function to an basisFunctionSet and entity.

Note
A local function must be initialized to an entity before it can be used.
This function can be called multiple times to use the local function for more than one entity.
Parameters
[in]basisFunctionSetto bind the local function to

◆ init() [2/3]

void Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::init ( const EntityType entity)
inlineprotectedinherited

initialize the local function for an entity

Binds the local function to an basisFunctionSet and entity.

Note
Must be overloaded on the derived implementation class.
Parameters
[in]entityto bind the local function to

◆ init() [3/3]

template<class DiscreteFunctionSpace , class DofVector >
void Dune::Fem::BasicTemporaryLocalFunction< DiscreteFunctionSpace, DofVector >::init ( const EntityType entity)
inlineinherited

initialize the local function for an entity

Binds the local function to an entity.

Note
A local function must be initialized to an entity before it can be used.
This function can be called multiple times to use the local function for more than one entity.
Parameters
[in]entityentity to bind the local function to

◆ jacobian()

void Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::jacobian ( const PointType &  x,
JacobianRangeType ret 
) const
inlineinherited

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

◆ jacobianQuadrature()

void Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::jacobianQuadrature ( const QuadratureType &  quad,
Vectors &...  vec 
) const
inlineinherited

evaluate all Jacobians for all basis functions for all quadrature points and store the results in the result vector

◆ localDofVector() [1/2]

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

return mutable reference to local Dof Vector

◆ localDofVector() [2/2]

template<class DiscreteFunctionSpace , class DofVector >
const LocalDofVectorType & Dune::Fem::LocalFunction< BasisFunctionSet, LocalDofVector >::localDofVector ( ) const
inlineinherited

return const reference to local Dof Vector

◆ numDofs()

int Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::numDofs ( ) const
inlineinherited

obtain the number of local DoFs

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

Returns
number of local DoFs

◆ operator=() [1/2]

template<class DiscreteFunction , template< class > class AssemblyOperation>
ThisType & Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > >::operator= ( const ThisType )
delete

◆ operator=() [2/2]

template<class DiscreteFunction , template< class > class AssemblyOperation>
ThisType & Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > >::operator= ( ThisType &&  )
delete

◆ operator[]() [1/2]

DofType & Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::operator[] ( SizeType  num)
inlineinherited

access to local dofs (read-write)

Parameters
[in]numlocal DoF number
Returns
reference to DoF

◆ operator[]() [2/2]

const DofType & Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::operator[] ( SizeType  num) const
inlineinherited

access to local dofs (read-only)

Parameters
[in]numlocal dof number
Returns
reference to dof

◆ order()

int Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::order ( ) const
inlineinherited

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

◆ size()

SizeType Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::size ( ) const
inlineinherited

obtain the number of local DoFs

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

Returns
number of local DoFs

◆ space()

template<class DiscreteFunctionSpace , class DofVector >
const DiscreteFunctionSpaceType & Dune::Fem::BasicTemporaryLocalFunction< DiscreteFunctionSpace, DofVector >::space ( ) const
inlineinherited

return discrete function space this local function belongs to

◆ unbind()

template<class DiscreteFunction , template< class > class AssemblyOperation>
void Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > >::unbind ( )
inline

◆ valid()

bool Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::valid ( ) const
inlineinherited

Returns true if local function if bind or init was previously called.

Member Data Documentation

◆ assemblyOperation_

template<class DiscreteFunction , template< class > class AssemblyOperation>
AssemblyOperationType Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > >::assemblyOperation_
protected

◆ basisFunctionSet_

BasisFunctionSetType Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::basisFunctionSet_
protectedinherited

◆ bound_

template<class DiscreteFunction , template< class > class AssemblyOperation>
bool Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > >::bound_
protected

◆ communicate_

template<class DiscreteFunction , template< class > class AssemblyOperation>
const bool Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > >::communicate_
protected

◆ dfSpace_

template<class DiscreteFunctionSpace , class DofVector >
const DiscreteFunctionSpaceType& Dune::Fem::BasicTemporaryLocalFunction< DiscreteFunctionSpace, DofVector >::dfSpace_
protectedinherited

◆ dimDomain

const int Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::dimDomain
staticinherited

dimension of the domain

◆ dimRange

const int Dune::Fem::LocalFunction< DiscreteFunctionSpace ::BasisFunctionSetType , DofVector >::dimRange
staticinherited

dimension of the range

◆ discreteFunction_

template<class DiscreteFunction , template< class > class AssemblyOperation>
DiscreteFunctionType& Dune::Fem::LocalContribution< DiscreteFunction, AssemblyOperation, std::enable_if_t< std::is_base_of< Fem::IsDiscreteFunction, DiscreteFunction >::value > >::discreteFunction_
protected

◆ localDofVector_


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