version 3.10-dev
Dumux::Experimental::TimeLevel< Scalar > Class Template Reference

Class that represents a time level during time integration.

#include <dumux/experimental/timestepping/timelevel.hh>

Public Member Functions

 TimeLevel (Scalar curTime)
 Construct a time level with a time. More...
 
 TimeLevel (Scalar curTime, Scalar prevTime, Scalar dtFraction)
 Construct a time level with information on an ongoing time step. More...
 
Scalar current () const
 Return the current time. More...
 
Scalar previous () const
 Return the time at the beginning of time integration. More...
 
Scalar timeStepFraction () const
 Return the fraction of the time step this level corresponds to. More...
 

Constructor & Destructor Documentation

◆ TimeLevel() [1/2]

template<class Scalar >
Dumux::Experimental::TimeLevel< Scalar >::TimeLevel ( Scalar  curTime)
inlineexplicit
Note
This can be used in contexts outside of time integration, where no information on a previous time or time step size is needed.

◆ TimeLevel() [2/2]

template<class Scalar >
Dumux::Experimental::TimeLevel< Scalar >::TimeLevel ( Scalar  curTime,
Scalar  prevTime,
Scalar  dtFraction 
)
inline
Parameters
curTimeThe current time level
prevTimeThe previous time level
dtFractionThe fraction of a time step this level corresponds to.
Note
Within a time integration step, several time levels might occur when multi-stage methods are used. The argument dtFraction allows for determining the time that will be reached at the end of the time integration step.

Member Function Documentation

◆ current()

template<class Scalar >
Scalar Dumux::Experimental::TimeLevel< Scalar >::current ( ) const
inline

◆ previous()

template<class Scalar >
Scalar Dumux::Experimental::TimeLevel< Scalar >::previous ( ) const
inline

◆ timeStepFraction()

template<class Scalar >
Scalar Dumux::Experimental::TimeLevel< Scalar >::timeStepFraction ( ) const
inline

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