DUNE-ACFEM (2.5.1)

BinaryGridFunctionExpression implements point-wise vector-space operations for GridFunction-types. More...

#include <dune/acfem/functions/gridfunctionexpression.hh>

+ Collaboration diagram for Dune::ACFem::BinaryGridFunctionExpression< BinOp, LeftFunction, RightFunction >:

Classes

class  LocalFunction
 General local function object for binary grid-function expressions. More...
 

Public Types

typedef BinaryGridFunctionExpressionTraits< BinOp, LeftFunctionType, RightFunctionType > TraitsType
 type of traits
 
typedef ThisType DiscreteFunctionType
 type of discrete function (self)
 
typedef TraitsType::DiscreteFunctionSpaceType DiscreteFunctionSpaceType
 type of discrete function space
 
typedef DiscreteFunctionSpaceType::GridPartType GridPartType
 type of gridPart
 
typedef DiscreteFunctionSpaceType::GridType GridType
 type of grid
 
typedef DiscreteFunctionSpaceType::DomainFieldType DomainFieldType
 domain type (from function space)
 
typedef DiscreteFunctionSpaceType::RangeFieldType RangeFieldType
 range type (from function space)
 
typedef DiscreteFunctionSpaceType::DomainType DomainType
 domain type (from function space)
 
typedef DiscreteFunctionSpaceType::RangeType RangeType
 range type (from function space)
 
typedef DiscreteFunctionSpaceType::JacobianRangeType JacobianRangeType
 jacobian type (from function space)
 
typedef DiscreteFunctionSpaceType::HessianRangeType HessianRangeType
 hessian type (from function space)
 
typedef TraitsType::EntityType EntityType
 type of codim 0 entity
 
typedef GridPartType::IntersectionType IntersectionType
 type of intersection
 
typedef LocalFunction LocalFunctionType
 type of local function to export
 
typedef BinaryGridFunctionExpression< BinOp, LeftFunction, RightFunction > ExpressionType
 The type of the underlying expression.
 

Public Member Functions

 BinaryGridFunctionExpression (const LeftFunctionType &f, const RightFunctionType &g)
 Constructor.
 
void evaluate (const DomainType &global, RangeType &result) const
 evaluate function at global coordinates
 
void jacobian (const DomainType &global, JacobianRangeType &result) const
 jacobian at global coordinates
 
void hessian (const DomainType &global, HessianRangeType &result) const
 hessian at global coordinates
 
const LocalFunctionType localFunction (const EntityType &entity) const
 See Fem::DiscreteFunctionInterface::localFunction(const EntityType &entity)> const.
 
LocalFunctionType localFunction (const EntityType &entity)
 See Fem::DiscreteFunctionInterface::localFunction(const EntityType &entity)
 
const std::string & expressionName () const
 See Fem::DiscreteFunctionInterface::name() const.
 
const DiscreteFunctionSpaceTypespace () const
 See Fem::DiscreteFunctionInterface::space() const.
 
void setName (const std::string &newName)
 Supply a descriptive name for the function. More...
 
const std::string & name () const
 Return a descriptive name for the function. More...
 
const ExpressionTypeexpression () const
 Return a const reference to the underlying expression.
 
ExpressionTypeexpression ()
 Return a mutable reference to the underlying expression.
 
ExpressionType operator* () const
 Return a copy from of the underlying expression.
 

BoundarySupportedFunction support

enum  { emptySupport = ExpressionTraits<IndicatorType>::isZero , globalSupport = std::is_same<IndicatorType, EntireBoundaryIndicatorType>::value }
 Resulting Boundary indicator type. More...
 
typedef TraitsType::IndicatorType IndicatorType
 Resulting Boundary indicator type. More...
 
const LocalFunctionType localFunction (const EntityType &entity, const IntersectionType &intersection) const
 See Fem::DiscreteFunctionInterface::localFunction(const EntityType &entity)> const.
 
LocalFunctionType localFunction (const EntityType &entity, const IntersectionType &intersection)
 See Fem::DiscreteFunctionInterface::localFunction(const IntersectionType &intersection)
 
IndicatorType indicator () const
 Resulting Boundary indicator type. More...
 

Detailed Description

template<class BinOp, class LeftFunction, class RightFunction>
class Dune::ACFem::BinaryGridFunctionExpression< BinOp, LeftFunction, RightFunction >

BinaryGridFunctionExpression implements point-wise vector-space operations for GridFunction-types.

Member Typedef Documentation

◆ IndicatorType

template<class BinOp , class LeftFunction , class RightFunction >
typedef TraitsType::IndicatorType Dune::ACFem::BinaryGridFunctionExpression< BinOp, LeftFunction, RightFunction >::IndicatorType

Resulting Boundary indicator type.

Member Enumeration Documentation

◆ anonymous enum

template<class BinOp , class LeftFunction , class RightFunction >
anonymous enum

Resulting Boundary indicator type.

Enumerator
emptySupport 
globalSupport 

Member Function Documentation

◆ indicator()

template<class BinOp , class LeftFunction , class RightFunction >
IndicatorType Dune::ACFem::BinaryGridFunctionExpression< BinOp, LeftFunction, RightFunction >::indicator ( ) const
inline

Resulting Boundary indicator type.

◆ name()

const std::string & Dune::ACFem::GridFunctionExpression< BinaryGridFunctionExpressionTraits< BinOp, LeftFunction, RightFunction >::FunctionSpaceType , BinaryGridFunctionExpression< BinOp, LeftFunction, RightFunction > , ExpressionTemplate >::name ( ) const
inlineinherited

Return a descriptive name for the function.

If set by setName(), return that user-supplied name. Otherwise return a (lengthy) auto-generated name describing the underlying algebraic expression.

◆ setName()

void Dune::ACFem::GridFunctionExpression< BinaryGridFunctionExpressionTraits< BinOp, LeftFunction, RightFunction >::FunctionSpaceType , BinaryGridFunctionExpression< BinOp, LeftFunction, RightFunction > , ExpressionTemplate >::setName ( const std::string &  newName)
inlineinherited

Supply a descriptive name for the function.

This name will also be stored in the VTK files. It should be a "valid variable name".


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 12, 23:30, 2024)