OpenCAEPoro
v0.5.0
A simulator for multicomponent porous media flow
|
Solver class for overall solution methods. More...
#include <Solver.hpp>
Public Member Functions | |
void | Setup (Reservoir &rs, const OCPControl &ctrl) |
Setup Solver. | |
void | InitReservoir (Reservoir &rs) const |
Initialize the reservoir. More... | |
void | RunSimulation (Reservoir &rs, OCPControl &ctrl, OCPOutput &output) |
Start simulation. More... | |
Solver class for overall solution methods.
Definition at line 21 of file Solver.hpp.
void Solver::InitReservoir | ( | Reservoir & | rs | ) | const |
Initialize the reservoir.
Initialize the reservoir setting for different solution methods.
Definition at line 45 of file Solver.cpp.
void Solver::RunSimulation | ( | Reservoir & | rs, |
OCPControl & | ctrl, | ||
OCPOutput & | output | ||
) |
Start simulation.
Simulation will go through all time steps and call GoOneStep at each step.
Definition at line 61 of file Solver.cpp.
References Reservoir::ApplyControl(), OCPControl::ApplyControl(), OCPControl::GetNumTSteps(), OCPControl::IsCriticalTime(), OCPControl::RecordTotalTime(), GetWallTime::Start(), and GetWallTime::Stop().