DUNE-FEM (unstable)

Dune::Fem::SpaceOperatorInterface< DiscreteFunction, JacobianOperator > Class Template Referenceabstract

interface for time evolution operators More...

#include <dune/fem/operator/common/spaceoperatorif.hh>

Public Types

typedef DiscreteFunction DestinationType
 type of argument and destination
 
typedef DestinationType::DiscreteFunctionSpaceType DiscreteFunctionSpaceType
 type of discrete function space
 
typedef DiscreteFunctionSpaceType SpaceType
 convenience typedef for space type
 

Public Member Functions

virtual ~SpaceOperatorInterface ()
 destructor
 
virtual const DiscreteFunctionSpaceTypespace () const =0
 return reference to space (needed by ode solvers)
 
virtual int size () const
 return size of discrete function space, i.e. number of unknowns
 
virtual void initializeTimeStepSize (const DestinationType &U0) const
 call operator once to calculate initial time step size More...
 
virtual bool hasLimiter () const
 return true if limit method is implemented More...
 
virtual void setTime (const double time)
 set time for operators More...
 
virtual double timeStepEstimate () const
 estimate maximum time step More...
 
virtual void limit (const DestinationType &arg, DestinationType &dest) const
 limiter application operator More...
 
virtual void applyLimiter (DestinationType &U) const
 limiter application operator More...
 
virtual const DestinationTypedestination () const
 return reference to pass's local memory
 
virtual void jacobian (const DomainFunctionType &u, JacobianOperatorType &jOp) const=0
 obtain linearization More...
 
virtual void operator() (const DomainFunctionType &u, RangeFunctionType &w) const=0
 application operator More...
 
virtual void finalize ()
 finalization of operator More...
 
virtual bool nonlinear () const
 

Detailed Description

template<class DiscreteFunction, class JacobianOperator = Fem::AutomaticDifferenceOperator< DiscreteFunction >>
class Dune::Fem::SpaceOperatorInterface< DiscreteFunction, JacobianOperator >

interface for time evolution operators

The SpaceOperatorInterface defines an interface for operators \(L: X \longrightarrow X\) from a discrete function space \(X\) into itself. This interface is used to implement operators working with the ODE solvers.

Template Parameters
DiscreteFunctiontype of discretefunction modelling the elements of \(X\).
An interface class:

Member Function Documentation

◆ applyLimiter()

template<class DiscreteFunction , class JacobianOperator = Fem::AutomaticDifferenceOperator< DiscreteFunction >>
virtual void Dune::Fem::SpaceOperatorInterface< DiscreteFunction, JacobianOperator >::applyLimiter ( DestinationType U) const
inlinevirtual

limiter application operator

Parameters
[in,out]Uargument and destination to apply Limiter(u), needs internal copying
Note
: Default implementation is to do nothing (hasLimiter == false)

References Dune::Fem::SpaceOperatorInterface< DiscreteFunction, JacobianOperator >::hasLimiter(), Dune::Fem::SpaceOperatorInterface< DiscreteFunction, JacobianOperator >::limit(), and Dune::Fem::SpaceOperatorInterface< DiscreteFunction, JacobianOperator >::space().

◆ finalize()

virtual void Dune::Fem::Operator< JacobianOperator::DomainFunctionType , JacobianOperator::RangeFunctionType >::finalize ( )
inlinevirtualinherited

finalization of operator

Note
The default implementation is empty.

◆ hasLimiter()

template<class DiscreteFunction , class JacobianOperator = Fem::AutomaticDifferenceOperator< DiscreteFunction >>
virtual bool Dune::Fem::SpaceOperatorInterface< DiscreteFunction, JacobianOperator >::hasLimiter ( ) const
inlinevirtual

◆ initializeTimeStepSize()

template<class DiscreteFunction , class JacobianOperator >
void Dune::Fem::SpaceOperatorInterface< DiscreteFunction, JacobianOperator >::initializeTimeStepSize ( const DestinationType U0) const
inlinevirtual

call operator once to calculate initial time step size

Parameters
U0initial data to compute initial time step size

◆ jacobian()

virtual void Dune::Fem::DifferentiableOperator< AutomaticDifferenceLinearOperator< DiscreteFunction, DiscreteFunction > >::jacobian ( const DomainFunctionType u,
JacobianOperatorType jOp 
) const
pure virtualinherited

obtain linearization

Parameters
[in]uargument discrete function
[out]jOpdestination Jacobian operator
Note
This method has to be implemented by all derived classes.

◆ limit()

template<class DiscreteFunction , class JacobianOperator = Fem::AutomaticDifferenceOperator< DiscreteFunction >>
virtual void Dune::Fem::SpaceOperatorInterface< DiscreteFunction, JacobianOperator >::limit ( const DestinationType arg,
DestinationType dest 
) const
inlinevirtual

limiter application operator

Parameters
argargument, u
destdestination, Limiter(u)
Note
: Default implementation is to copy arg into dest.

References Dune::Fem::SpaceOperatorInterface< DiscreteFunction, JacobianOperator >::hasLimiter().

Referenced by Dune::Fem::SpaceOperatorInterface< DiscreteFunction, JacobianOperator >::applyLimiter().

◆ nonlinear()

virtual bool Dune::Fem::Operator< JacobianOperator::DomainFunctionType , JacobianOperator::RangeFunctionType >::nonlinear ( ) const
inlinevirtualinherited

Return true if the Operator is nonlinear and false otherwise (default is true).

◆ operator()()

virtual void Dune::Fem::Operator< JacobianOperator::DomainFunctionType , JacobianOperator::RangeFunctionType >::operator() ( const DomainFunctionType u,
RangeFunctionType w 
) const
pure virtualinherited

application operator

Parameters
[in]uargument discrete function
[out]wdestination discrete function
Note
This method has to be implemented by all derived classes.

Implemented in EllipticOperator< JacobianOperator::DomainFunctionType, JacobianOperator::RangeFunctionType, Model >.

◆ setTime()

template<class DiscreteFunction , class JacobianOperator = Fem::AutomaticDifferenceOperator< DiscreteFunction >>
virtual void Dune::Fem::SpaceOperatorInterface< DiscreteFunction, JacobianOperator >::setTime ( const double  time)
inlinevirtual

set time for operators

Parameters
timecurrent time of evaluation

Reimplemented in Dune::Fem::SpaceOperatorPtr< OperatorType >, and Dune::Fem::HdivProjection< DiscreteFunctionType >.

Referenced by DuneODE::ExplicitRungeKuttaSolver< DestinationImp >::solve().

◆ timeStepEstimate()

template<class DiscreteFunction , class JacobianOperator = Fem::AutomaticDifferenceOperator< DiscreteFunction >>
virtual double Dune::Fem::SpaceOperatorInterface< DiscreteFunction, JacobianOperator >::timeStepEstimate ( ) const
inlinevirtual

estimate maximum time step

For an explicit time discretization, the time step has to be limited. An estimate for the maximum time step of an explicit Euler scheme is returned by this function. Maximum time steps for higher order Runge Kutta schemes can be derived from this value.

Reimplemented in Dune::Fem::SpaceOperatorPtr< OperatorType >, and Dune::Fem::HdivProjection< DiscreteFunctionType >.

References Dune::Hybrid::max.

Referenced by DuneODE::ExplicitRungeKuttaSolver< DestinationImp >::initialize(), and DuneODE::ExplicitRungeKuttaSolver< DestinationImp >::solve().


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