|
opm-simulators
|
TimeStepControlInterface. More...
#include <TimeStepControlInterface.hpp>
Public Member Functions | |
| virtual double | computeTimeStepSize (const double dt, const int iterations, const RelativeChangeInterface &relativeChange, const AdaptiveSimulatorTimer &substepTimer) const =0 |
| compute new time step size suggestions based on the PID controller | |
| virtual bool | timeStepAccepted (const double error, const double timeStepJustCompleted) const =0 |
| For the general 3rd order controller, the internal shifting of errors and time steps happens here, and hence this method needs to be called for (after) each time step. | |
| virtual | ~TimeStepControlInterface () |
| virtual destructor (empty) | |
|
pure virtual |
compute new time step size suggestions based on the PID controller
| dt | time step size used in the current step |
| iterations | number of iterations used (linear/nonlinear) |
| relativeChange | Relative change handler |
| substepTimer | Sub step timer |
Implemented in Opm::General3rdOrderController, Opm::HardcodedTimeStepControl, Opm::PIDAndIterationCountTimeStepControl, Opm::PIDTimeStepControl, and Opm::SimpleIterationCountTimeStepControl.
|
pure virtual |
For the general 3rd order controller, the internal shifting of errors and time steps happens here, and hence this method needs to be called for (after) each time step.
Implemented in Opm::General3rdOrderController, Opm::HardcodedTimeStepControl, Opm::PIDAndIterationCountTimeStepControl, Opm::PIDTimeStepControl, and Opm::SimpleIterationCountTimeStepControl.