OGS
|
Backward Euler scheme.
Definition at line 127 of file TimeDiscretization.h.
#include <TimeDiscretization.h>
Public Member Functions | |
void | setInitialState (const double t0) override |
Sets the initial condition. | |
void | nextTimestep (const double t, const double delta_t) override |
double | getCurrentTime () const override |
double | getCurrentTimeIncrement () const override |
double | getPreviousTimeIncrement () const override |
Returns the value of \(\Delta t\) from the previous time step. | |
void | getWeightedOldX (GlobalVector &y, GlobalVector const &x_old) const override |
Returns \( x_O \). | |
Public Member Functions inherited from NumLib::TimeDiscretization | |
TimeDiscretization ()=default | |
virtual | ~TimeDiscretization ()=default |
Private Attributes | |
double | _t = std::numeric_limits<double>::quiet_NaN() |
\( t_C \) | |
double | _delta_t |
the timestep size | |
double | _delta_t_prev = std::numeric_limits<double>::quiet_NaN() |
The timestep size of the previous timestep. | |
|
inlineoverridevirtual |
Returns \( t_C \), i.e., the time at which the equation will be assembled.
Implements NumLib::TimeDiscretization.
Definition at line 138 of file TimeDiscretization.h.
References _t.
|
inlineoverridevirtual |
Returns \( \Delta t_C \), i.e., the time at which the equation will be assembled.
Implements NumLib::TimeDiscretization.
Definition at line 139 of file TimeDiscretization.h.
References _delta_t.
|
inlineoverridevirtual |
Returns the value of \(\Delta t\) from the previous time step.
Implements NumLib::TimeDiscretization.
Definition at line 140 of file TimeDiscretization.h.
References _delta_t_prev.
|
overridevirtual |
Returns \( x_O \).
Implements NumLib::TimeDiscretization.
Definition at line 18 of file TimeDiscretization.cpp.
References _delta_t, MathLib::LinAlg::copy(), and MathLib::LinAlg::scale().
|
inlineoverridevirtual |
Indicate that the computation of a new timestep is being started now.
delta_t
must not change throughout the entire time integration process! This is not checked by this code! Implements NumLib::TimeDiscretization.
Definition at line 131 of file TimeDiscretization.h.
References _delta_t, _delta_t_prev, and _t.
|
inlineoverridevirtual |
Sets the initial condition.
Implements NumLib::TimeDiscretization.
Definition at line 130 of file TimeDiscretization.h.
References _t.
|
private |
the timestep size
Definition at line 146 of file TimeDiscretization.h.
Referenced by getCurrentTimeIncrement(), getWeightedOldX(), and nextTimestep().
|
private |
The timestep size of the previous timestep.
Definition at line 150 of file TimeDiscretization.h.
Referenced by getPreviousTimeIncrement(), and nextTimestep().
|
private |
\( t_C \)
Definition at line 145 of file TimeDiscretization.h.
Referenced by getCurrentTime(), nextTimestep(), and setInitialState().