OpenCAEPoro
0.2.0 Sep/22/2022
A simulator for multicomponent porous media flow
|
Pre-processing unit for OpenCAEPoro for reading params from input files. More...
#include <ParamRead.hpp>
Public Member Functions | |
void | GetDirAndName () |
Get current work dir and input file name from the full file path. More... | |
void | Init () |
Initialize the param reading process. More... | |
void | ReadInputFile (const string &file) |
General interface for reading input data. More... | |
void | ReadFile (const string &file) |
Read the input file. More... | |
void | ReadINCLUDE (ifstream &ifs) |
Handle the INCLUDE keyword, which contains other input files. More... | |
void | CheckParam () |
Check whether the params contain error. More... | |
Public Attributes | |
string | inputFile |
Input file with its path (absolute or relative). | |
string | workDir |
Current work directory. | |
string | fileName |
File name of input file. | |
ParamReservoir | paramRs |
Read the reservoir params. | |
ParamWell | paramWell |
Read the well params. | |
ParamControl | paramControl |
Read the control params. | |
ParamOutput | paramOutput |
Read the output params. | |
Pre-processing unit for OpenCAEPoro for reading params from input files.
Definition at line 32 of file ParamRead.hpp.
void ParamRead::CheckParam | ( | ) |
Check whether the params contain error.
Check parameters in paramRs and paramWell.
Definition at line 290 of file ParamRead.cpp.
References ParamReservoir::blackOil, ParamReservoir::CheckParam(), ParamWell::CheckParam(), paramRs, and paramWell.
void ParamRead::GetDirAndName | ( | ) |
Get current work dir and input file name from the full file path.
Get workDir and fileName from inputFile.
Definition at line 23 of file ParamRead.cpp.
void ParamRead::Init | ( | ) |
Initialize the param reading process.
Initialize paramRs, paramWell, and paramControl.
Definition at line 15 of file ParamRead.cpp.
References ParamReservoir::Init(), ParamWell::Init(), ParamControl::Init(), paramControl, paramRs, paramWell, and workDir.
void ParamRead::ReadFile | ( | const string & | file | ) |
Read the input file.
Read parameters from a file, which is called in ReadInputFile.
Definition at line 49 of file ParamRead.cpp.
References ParamReservoir::blackOil, ParamControl::criticalTime, ParamWell::criticalTime, ParamReservoir::disGas, ParamReservoir::EoSp, ParamReservoir::gas, ParamWell::InputCOMPDAT(), ParamReservoir::InputCOMPS(), ParamReservoir::InputCOPY(), ParamReservoir::InputDENSITY(), ParamReservoir::InputDIMENS(), ParamReservoir::InputEQUALS(), ParamReservoir::InputEQUIL(), ParamReservoir::InputGRAVITY(), ParamReservoir::InputGRID(), ParamControl::InputMETHOD(), ParamReservoir::InputMISCSTR(), ParamReservoir::InputMULTIPLY(), ParamReservoir::InputRegion(), ParamReservoir::InputROCK(), ParamOutput::InputRPTSCHED(), ParamReservoir::InputRTEMP(), ParamOutput::InputSUMMARY(), ParamReservoir::InputTABDIMS(), ParamReservoir::InputTABLE(), ParamWell::InputTSTEP(), ParamControl::InputTUNING(), ParamWell::InputWCONINJE(), ParamWell::InputWCONPROD(), ParamWell::InputWELLSTRE(), ParamWell::InputWELSPECS(), ParamWell::InputWELTARG(), Map_Str2Int(), EoSparam::miscible, OCP_ABORT, OCP_MESSAGE, ParamReservoir::oil, paramControl, paramOutput, paramRs, paramWell, ReadINCLUDE(), ReadLine(), and ParamReservoir::water.
void ParamRead::ReadINCLUDE | ( | ifstream & | ifs | ) |
Handle the INCLUDE keyword, which contains other input files.
Read INCLUDE files; these files should have identical format.
Definition at line 281 of file ParamRead.cpp.
References DealDefault(), ReadFile(), ReadLine(), and workDir.
void ParamRead::ReadInputFile | ( | const string & | file | ) |
General interface for reading input data.
This is the general interface for reading input files.
Definition at line 39 of file ParamRead.cpp.
References CheckParam(), GetDirAndName(), Init(), inputFile, and ReadFile().