My Project
Opm::HardcodedTimeStepControl Class Reference

HardcodedTimeStepControl Input generated from summary file using the ert application: More...

#include <TimeStepControl.hpp>

Inheritance diagram for Opm::HardcodedTimeStepControl:
Opm::TimeStepControlInterface

Public Member Functions

 HardcodedTimeStepControl (const std::string &filename)
 constructor More...
 
double computeTimeStepSize (const double dt, const int, const RelativeChangeInterface &, const double simulationTimeElapsed) const
 compute new time step size suggestions based on the PID controller More...
 
- Public Member Functions inherited from Opm::TimeStepControlInterface
virtual double computeTimeStepSize (const double dt, const int iterations, const RelativeChangeInterface &relativeChange, const double simulationTimeElapsed) const =0
 compute new time step size suggestions based on the PID controller More...
 
virtual ~TimeStepControlInterface ()
 virtual destructor (empty)
 

Protected Attributes

std::vector< double > subStepTime_
 

Detailed Description

HardcodedTimeStepControl Input generated from summary file using the ert application:

ecl_summary DECK TIME > filename

Assumes time is given in days

Constructor & Destructor Documentation

◆ HardcodedTimeStepControl()

Opm::HardcodedTimeStepControl::HardcodedTimeStepControl ( const std::string &  filename)
explicit

constructor

Parameters
filenamefilename contaning the timesteps

Member Function Documentation

◆ computeTimeStepSize()

double Opm::HardcodedTimeStepControl::computeTimeStepSize ( const double  dt,
const int  ,
const RelativeChangeInterface ,
const double  simulationTimeElapsed 
) const
virtual

compute new time step size suggestions based on the PID controller

Parameters
dttime step size used in the current step
iterationsnumber of iterations used (linear/nonlinear)
timeErrorobject to compute || u^n+1 - u^n || / || u^n+1 ||
Returns
suggested time step size for the next step

Implements Opm::TimeStepControlInterface.


The documentation for this class was generated from the following files: