21 #ifndef OPM_SUBSTEPPING_HEADER_INCLUDED 22 #define OPM_SUBSTEPPING_HEADER_INCLUDED 27 #include <opm/core/utility/parameters/ParameterGroup.hpp> 28 #include <opm/common/ErrorMacros.hpp> 29 #include <opm/simulators/timestepping/SimulatorTimer.hpp> 30 #include <opm/simulators/timestepping/TimeStepControlInterface.hpp> 46 const bool terminal_output =
true );
56 const ParameterGroup& param,
57 const bool terminal_output =
true );
68 template <
class Solver,
class State,
class WellState>
70 Solver& solver, State& state, WellState& well_state,
84 template <
class Solver,
class State,
class WellState,
class Output>
86 Solver& solver, State& state, WellState& well_state,
89 const std::vector<int>* fipnum =
nullptr);
101 template <
class Solver,
class State,
class WellState,
class Output>
102 SimulatorReport stepImpl(
const SimulatorTimer& timer,
103 Solver& solver, State& state, WellState& well_state,
105 Output* outputWriter,
106 const std::vector<int>* fipnum);
108 void init(
const ParameterGroup& param);
110 typedef std::unique_ptr< TimeStepControlInterface > TimeStepControlType;
128 #include <opm/simulators/timestepping/AdaptiveTimeStepping_impl.hpp> TimeStepControlType timeStepControl_
time step control object
Definition: AdaptiveTimeStepping.hpp:113
double suggested_next_timestep_
suggested size of next timestep
Definition: AdaptiveTimeStepping.hpp:121
const double max_time_step_
maximal allowed time step size
Definition: AdaptiveTimeStepping.hpp:117
const SimulatorReport & failureReport() const
Returns the simulator report for the failed substeps of the last report step.
Definition: AdaptiveTimeStepping.hpp:94
Definition: AdaptiveTimeStepping.hpp:38
This file contains a set of helper functions used by VFPProd / VFPInj.
Definition: AdditionalObjectDeleter.hpp:22
SimulatorReport step(const SimulatorTimer &timer, Solver &solver, State &state, WellState &well_state, const bool event)
step method that acts like the solver::step method in a sub cycle of time steps
Definition: AdaptiveTimeStepping_impl.hpp:164
SimulatorReport failureReport_
statistics for the failed substeps of the last timestep
Definition: AdaptiveTimeStepping.hpp:112
const double restart_factor_
factor to multiply time step with when solver fails to converge
Definition: AdaptiveTimeStepping.hpp:114
const double max_growth_
factor that limits the maximum growth of a time step
Definition: AdaptiveTimeStepping.hpp:116
const double growth_factor_
factor to multiply time step when solver recovered from failed convergence
Definition: AdaptiveTimeStepping.hpp:115
AdaptiveTimeStepping(const ParameterGroup ¶m, const bool terminal_output=true)
contructor taking parameter object
Definition: AdaptiveTimeStepping_impl.hpp:99
const int solver_restart_max_
how many restart of solver are allowed
Definition: AdaptiveTimeStepping.hpp:118
const double timestep_after_event_
suggested size of timestep after an event
Definition: AdaptiveTimeStepping.hpp:123
const bool timestep_verbose_
timestep verbosity
Definition: AdaptiveTimeStepping.hpp:120
const bool solver_verbose_
solver verbosity
Definition: AdaptiveTimeStepping.hpp:119
Definition: SimulatorTimer.hpp:34
bool use_newton_iteration_
use newton iteration count for adaptive time step control
Definition: AdaptiveTimeStepping.hpp:124
bool full_timestep_initially_
beginning with the size of the time step from data file
Definition: AdaptiveTimeStepping.hpp:122