Class that represents a time level during time integration.
More...
#include <dumux/timestepping/timelevel.hh>
template<class Scalar>
class Dumux::Experimental::TimeLevel< Scalar >
Class that represents a time level during time integration.
|
| | TimeLevel (Scalar curTime) |
| | Construct a time level with a time.
|
| | TimeLevel (Scalar curTime, Scalar prevTime, Scalar dtFraction) |
| | Construct a time level with information on an ongoing time step.
|
| Scalar | current () const |
| | Return the current time.
|
| Scalar | previous () const |
| | Return the time at the beginning of time integration.
|
| Scalar | timeStepFraction () const |
| | Return the fraction of the time step this level corresponds to.
|
◆ TimeLevel() [1/2]
Construct a time level with a time.
- 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]
Construct a time level with information on an ongoing time step.
- Parameters
-
| curTime | The current time level |
| prevTime | The previous time level |
| dtFraction | The 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.
◆ current()
◆ previous()
Return the time at the beginning of time integration.
◆ timeStepFraction()
Return the fraction of the time step this level corresponds to.
The documentation for this class was generated from the following file: