AdaptiveTimeStepping_impl.hpp
Go to the documentation of this file.
45 , max_time_step_( unit::convert::from(param.getDefault("timestep.max_timestep_in_days", 365.0 ), unit::day) )
63 const int iterations = param.getDefault("timestep.control.targetiteration", defaultTargetIterations );
64 timeStepControl_ = TimeStepControlType( new PIDAndIterationCountTimeStepControl( iterations, tol, parallel_information ) );
68 const int iterations = param.getDefault("timestep.control.targetiteration", defaultTargetIterations );
71 timeStepControl_ = TimeStepControlType( new SimpleIterationCountTimeStepControl( iterations, decayrate, growthrate ) );
83 step( const SimulatorTimer& simulatorTimer, Solver& solver, State& state, WellState& well_state )
118 AdaptiveSimulatorTimer substepTimer( simulatorTimer, suggested_next_timestep_, max_time_step_ );
192 << " ) finished at time " << unit::convert::to(substepTimer.simulationTimeElapsed(),unit::day) << " (days)." << std::endl << std::endl;
213 OPM_THROW(Opm::NumericalProblem,"Solver failed to converge after " << restarts << " restarts.");
237 std::cout << "Suggested next step size = " << unit::convert::to( suggested_next_timestep_, unit::day ) << " (days)" << std::endl;
const double growth_factor_ factor to multiply time step when solver recovered from failed convergence Definition: AdaptiveTimeStepping.hpp:85 Definition: TimeStepControl.hpp:75 Definition: AnisotropicEikonal.hpp:43 virtual void writeTimeStep(const SimulatorTimerInterface &timer, const SimulatorState &reservoirState, const WellState &wellState, bool isSubstep)=0 Write a blackoil reservoir state to disk for later inspection with visualization tools like ResInsigh... Definition: ParameterGroup.hpp:109 double currentStepLength() const double simulationTimeElapsed() const void report(std::ostream &os) const report start and end time as well as used steps so far double suggested_next_timestep_ suggested size of next timestep Definition: AdaptiveTimeStepping.hpp:91 void provideTimeStepEstimate(const double dt_estimate) provide and estimate for new time step size const bool solver_verbose_ solver verbosity Definition: AdaptiveTimeStepping.hpp:89 const double max_time_step_ maximal allowed time step size Definition: AdaptiveTimeStepping.hpp:87 T getDefault(const std::string &name, const T &default_value) const This method is used to read a parameter from the parameter group. Definition: ParameterGroup_impl.hpp:226 Simulation timer for adaptive time stepping. Definition: AdaptiveSimulatorTimer.hpp:39 TimeStepControlType timeStepControl_ time step control object Definition: AdaptiveTimeStepping.hpp:83 int currentStepNum() const const double max_growth_ factor that limits the maximum growth of a time step Definition: AdaptiveTimeStepping.hpp:86 double currentStepLength() const Definition: OutputWriter.hpp:61 const bool timestep_verbose_ timestep verbosity Definition: AdaptiveTimeStepping.hpp:90 std::unique_ptr< TimeStepControlInterface > TimeStepControlType Definition: AdaptiveTimeStepping.hpp:81 const int solver_restart_max_ how many restart of solver are allowed Definition: AdaptiveTimeStepping.hpp:88 Definition: TimeStepControl.hpp:147 void stepImpl(const SimulatorTimer &timer, Solver &solver, State &state, WellState &well_state, OutputWriter *outputWriter) const double restart_factor_ factor to multiply time step with when solver fails to converge Definition: AdaptiveTimeStepping.hpp:84 Definition: SimulatorTimer.hpp:34 Definition: TimeStepControl.hpp:38 AdaptiveTimeStepping(const parameter::ParameterGroup ¶m, const boost::any &pinfo=boost::any(), const bool terminal_output=true) contructor taking parameter object Definition: AdaptiveTimeStepping_impl.hpp:37 bool done() const bool full_timestep_initially_ beginning with the size of the time step from data file Definition: AdaptiveTimeStepping.hpp:92 void step(const SimulatorTimer &timer, Solver &solver, State &state, WellState &well_state) step method that acts like the solver::step method in a sub cycle of time steps Definition: AdaptiveTimeStepping_impl.hpp:83 |