OpenCAEPoro
0.2.0 Sep/22/2022
A simulator for multicomponent porous media flow
|
Top-level data structure for the OpenCAEPoro simulator. More...
#include <OCP.hpp>
Public Member Functions | |
void | PrintVersion () const |
Output OpenCAEPoro version information. | |
void | PrintUsage (string cmdname) const |
Provide at least InputFileName for the input data. | |
void | InputParam (ParamRead ¶m) |
Read input parameters to an internal structure. More... | |
void | SetupSimulator (ParamRead ¶m, const USI &argc, const char *options[]) |
Setup reservoir based on an internal structure. More... | |
void | InitReservoir () |
Initialize or get initial status of reservoir. More... | |
void | RunSimulation () |
Run dynamic simulation. More... | |
void | OutputResults () const |
Output necessary information for post-processing. More... | |
Top-level data structure for the OpenCAEPoro simulator.
void OpenCAEPoro::InitReservoir | ( | ) |
Initialize or get initial status of reservoir.
Initialize the reservoir class.
Definition at line 49 of file OCP.cpp.
References Solver::InitReservoir(), OCPControl::RecordTotalTime(), GetWallTime::Start(), and GetWallTime::Stop().
void OpenCAEPoro::InputParam | ( | ParamRead & | param | ) |
Read input parameters to an internal structure.
Read from input file and set control and output params.
Definition at line 15 of file OCP.cpp.
References OCPControl::InputParam(), Reservoir::InputParam(), ParamRead::paramControl, and ParamRead::paramOutput.
void OpenCAEPoro::OutputResults | ( | ) | const |
void OpenCAEPoro::RunSimulation | ( | ) |
Run dynamic simulation.
Call IMPEC, FIM, etc for dynamic simulation.
Definition at line 63 of file OCP.cpp.
References AIMc, AIMs, AIMt, FIM, FIMn, OCPControl::GetMethod(), IMPEC, OCP_ABORT, and Solver::RunSimulation().
Setup reservoir based on an internal structure.
Call setup procedures for reservoir, output, and linear solver.
Definition at line 23 of file OCP.cpp.
References InputParam(), OCPControl::RecordTotalTime(), Reservoir::Setup(), Solver::Setup(), OCPControl::SetupFastControl(), GetWallTime::Start(), and GetWallTime::Stop().