DUNE-ACFEM (2.5.1)

Dune::ACFem::FractionGridFunction< FunctionSpace, GridPart, numerator, denominator > Class Template Reference

A grid-function which is constant with a scalar fractional value. More...

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

+ Collaboration diagram for Dune::ACFem::FractionGridFunction< FunctionSpace, GridPart, numerator, denominator >:

Public Types

typedef FractionGridFunctionTraits< FunctionSpace, GridPart, numerator, denominator > TraitsType
 type of traits
 
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::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 LocalFunction LocalFunctionType
 type of local function to export
 

Public Member Functions

 FractionGridFunction (const GridPart &grid)
 The value of this function is built into its type, so the only dynamic constituent for the constructor is 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 DiscreteFunctionSpaceTypespace () const
 See Dune::Fem::DiscreteFunctionInterface::space() const.
 
RangeType value () const
 Return the one constant value.
 

Detailed Description

template<class FunctionSpace, class GridPart, ssize_t numerator, size_t denominator>
class Dune::ACFem::FractionGridFunction< FunctionSpace, GridPart, numerator, denominator >

A grid-function which is constant with a scalar fractional value.

This function is in particular used to model the scalar constant 1 function. Expression templates will to some extent honour multiplication by this function as a no-op.

Parameters
FunctionSpaceThe Super-ordinate function space. Note that the actual function-space of FractionGridFunction is FunctionSpace::ScalarFunctionSpace. This family of functions is never vector-valued.

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.80.0 (May 4, 22:30, 2024)