opm-simulators
Loading...
Searching...
No Matches
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
 
double computeTimeStepSize (const double dt, const int, const RelativeChangeInterface &, const AdaptiveSimulatorTimer &substepTimer) const override
 compute new time step size suggestions based on the PID controller
 
bool timeStepAccepted (const double, const double) const override
 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.
 
template<class Serializer >
void serializeOp (Serializer &serializer)
 
bool operator== (const HardcodedTimeStepControl &) const
 
- Public Member Functions inherited from Opm::TimeStepControlInterface
virtual ~TimeStepControlInterface ()
 virtual destructor (empty)
 

Static Public Member Functions

static HardcodedTimeStepControl serializationTestObject ()
 

Static Public Attributes

static constexpr TimeStepControlType Type = TimeStepControlType::HardCodedTimeStep
 

Protected Attributes

std::vector< doublesubStepTime_
 

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 AdaptiveSimulatorTimer substepTimer 
) const
overridevirtual

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)
relativeChangeRelative change handler
substepTimerSub step timer
Returns
suggested time step size for the next step
Parameters
dtTime step length
substepTimerSub step timer

Implements Opm::TimeStepControlInterface.

◆ timeStepAccepted()

bool Opm::HardcodedTimeStepControl::timeStepAccepted ( const double  error,
const double  timeStepJustCompleted 
) const
inlineoverridevirtual

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.

Implements Opm::TimeStepControlInterface.


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