Called when the end of an simulation episode is reached.
void
finalize ()
Called after the simulation has been run sucessfully.
void
timeIntegration ()
Called by Opm::Simulator in order to do a time integration on the model.
Scalar
minTimeStepSize () const
Returns the minimum allowable size of a time step.
unsigned
maxTimeIntegrationFailures () const
Returns the maximum number of subsequent failures for the time integration before giving up.
bool
continueOnConvergenceError () const
Returns if we should continue with a non-converged solution instead of giving up if we encounter a time step size smaller than the minimum time step size.
void
setNextTimeStepSize (Scalar dt)
Impose the next time step size to be used externally.
Scalar
nextTimeStepSize () const
Called by Opm::Simulator whenever a solution for a time step has been computed and the simulation time has been updated.
Returns true if the current solution should be written to disk (i.e.
void
advanceTimeLevel ()
Called by the simulator after everything which can be done about the current time step is finished and the model should be prepared to do the next time integration.
This method is used for problems where the gravitational acceleration does not depend on the spatial position. The default behaviour is that if the EnableGravity property is true, holds, else .
Returns the intrinsic permeability of an intersection.
This method is specific to the finite volume discretizations. If left unspecified, it calls the intrinsicPermeability() method for the intersection's interior and exterior finite volumes and averages them harmonically. Note that if this function is defined, the intrinsicPermeability() method does not need to be defined by the problem (if a finite-volume discretization is used).
Returns the material law parameters within a control volume.
If you get a compiler error at this method, you set the MaterialLaw property to something different than Opm::NullMaterialLaw. In this case, you have to overload the matererialLaw() method in the derived class!
Parameters
context
Reference to the object which represents the current execution context.
spaceIdx
The local index of spatial entity defined by the context
Returns the temperature for an isothermal problem.
This is not specific to the discretization. By default it just throws an exception so it must be overloaded by the problem if no energy equation is to be used.