Opm::SimulatorAdapter< T > Struct Template Reference
Inheritance diagram for Opm::SimulatorAdapter< T >:
Detailed Descriptiontemplate<typename T> struct Opm::SimulatorAdapter< T > Instance of a concrete simulator that adhere to the interface. This adapter class allows us to bring into the simulator type class any class that has the necessary methods but not necessarily shares a common base class.
Member Function Documentation◆ init()
template<typename T >
Activate the reference by creating a new instance of the underlaying simulator with the given parameters and then point to it. Implements Opm::Simulator. ◆ run()
template<typename T >
Run the simulation. This will run succesive timesteps until timer.done() is true. It will modify the reservoir and well states.
Implements Opm::Simulator. ◆ sync()
template<typename T >
Notify the simulator that a callback has an interest in reading for reporting purposes the contents of the state argument that was passed to the run() method. The simulator will then flush any internal state which is currently not reflected in it.
Implements Opm::Simulator. ◆ timestep_completed()
template<typename T >
Event that is signaled every time the simulator has completed a timestep.
Implements Opm::Simulator. The documentation for this struct was generated from the following file: |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||