![]() |
OpenCAEPoro
0.2.0 Sep/22/2022
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 20 of file Solver.hpp.
| void Solver::InitReservoir | ( | Reservoir & | rs | ) | const |
Initialize the reservoir.
Initialize the reservoir setting for different solution methods.
Definition at line 18 of file Solver.cpp.
References IsothermalSolver::InitReservoir().
| 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 25 of file Solver.cpp.
References Reservoir::ApplyControl(), OCPControl::ApplyControl(), EOS_PVTW, Bulk::GetMixMode(), OCPControl::GetNumTSteps(), OCPControl::IsCriticalTime(), OCPControl::RecordTotalTime(), GetWallTime::Start(), and GetWallTime::Stop().