OpenCAEPoro
v0.5.0
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 354 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, Map_Str2Int(), OCP_ABORT, OCP_MESSAGE, paramRs, and ReadLine().
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 345 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().