DUNE-ACFEM (2.5.1)

Dune::ACFem::ParameterGridFunction< Parameter, FunctionSpace, GridPart > Class Template Reference

ParameterGridFunction implements a constant function where the value is defined by something which fulfills the ParameterInterface. More...

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

+ Collaboration diagram for Dune::ACFem::ParameterGridFunction< Parameter, FunctionSpace, GridPart >:

Public Types

typedef ParameterGridFunctionTraits< Parameter, FunctionSpace, GridPart > Traits
 type of traits
 
typedef Traits::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 Traits::EntityType EntityType
 type of codim 0 entity
 
typedef Parameter ParameterType
 Type of the parameter implementation.
 
typedef LocalFunction LocalFunctionType
 type of local function to export
 
typedef ParameterGridFunction< Parameter, FunctionSpace, GridPart > ExpressionType
 The type of the underlying expression.
 

Public Member Functions

 ParameterGridFunction (const ParameterInterface< ParameterType > &value, const GridPart &grid)
 Construct the ParameterGridFunction from its constituents: the parameter and the grid.
 
void evaluate (const DomainType &global, RangeType &result) const
 Evaluate function in global coordinates.
 
void jacobian (const DomainType &global, JacobianRangeType &result) const
 Evaluate jacobian in global coordinates.
 
void hessian (const DomainType &global, HessianRangeType &result) const
 Evaluate hessian in global coordinates.
 
const LocalFunctionType localFunction (const EntityType &entity) const
 See Dune::Fem::DiscreteFunctionInterface::localFunction(const EntityType &entity) const.
 
LocalFunctionType localFunction (const EntityType &entity)
 See Dune::Fem::DiscreteFunctionInterface::localFunction(const EntityType &entity)
 
const std::string & expressionName () const
 See Dune::Fem::DiscreteFunctionInterface::name() const.
 
const DiscreteFunctionSpaceTypespace () const
 See Dune::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.
 

Detailed Description

template<class Parameter, class FunctionSpace, class GridPart>
class Dune::ACFem::ParameterGridFunction< Parameter, FunctionSpace, GridPart >

ParameterGridFunction implements a constant function where the value is defined by something which fulfills the ParameterInterface.

Member Function Documentation

◆ name()

const std::string & Dune::ACFem::GridFunctionExpression< FunctionSpace , ParameterGridFunction< Parameter, FunctionSpace, GridPart > , 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< FunctionSpace , ParameterGridFunction< Parameter, FunctionSpace, GridPart > , 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 (Aug 13, 22:30, 2024)