19#ifndef OPM_TIMESTEPCONTROLINTERFACE_HEADER_INCLUDED
20#define OPM_TIMESTEPCONTROLINTERFACE_HEADER_INCLUDED
22#include <opm/simulators/timestepping/AdaptiveSimulatorTimer.hpp>
33 class RelativeChangeInterface
36 RelativeChangeInterface() {}
50 class TimeStepControlInterface
53 TimeStepControlInterface() {}
69 virtual bool timeStepAccepted(
const double error,
const double timeStepJustCompleted)
const = 0;
Simulation timer for adaptive time stepping.
Definition AdaptiveSimulatorTimer.hpp:41
RelativeChangeInterface.
Definition TimeStepControlInterface.hpp:34
virtual ~RelativeChangeInterface()
virtual destructor (empty)
Definition TimeStepControlInterface.hpp:42
virtual double relativeChange() const =0
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,...
virtual ~TimeStepControlInterface()
virtual destructor (empty)
Definition TimeStepControlInterface.hpp:72
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
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition blackoilbioeffectsmodules.hh:43