25 #if defined(_CONSOLE) || defined(_WIN32) || defined(_WIN64)
51 ifstream ifs(filename, ios::in);
54 OCP_ABORT(
"Failed to open the input file!");
60 string keyword = vbuf[0];
241 paramRs.InputCOMPONENTS(ifs, keyword);
292 cout <<
"=========================================" << endl
293 <<
"Check reading parameters from input data!" << endl
294 <<
"=========================================" << endl;
ParamRead class declaration.
#define OCP_MESSAGE(msg)
Log error messages.
#define OCP_ABORT(msg)
Abort if critical error happens.
bool miscible
Miscible treatment of hydrocarbons, used in compositional Model.
vector< OCP_DBL > criticalTime
void Init(string &indir)
Assign default values to parameters.
void InputTUNING(ifstream &ifs)
Input the Keyword: TUNING.
void InputMETHOD(ifstream &ifs)
Input the Keyword: METHOD.
void InputRPTSCHED(ifstream &ifs)
void InputSUMMARY(ifstream &ifs)
ParamOutput paramOutput
Read the output params.
ParamWell paramWell
Read the well params.
void Init()
Initialize the param reading process.
void GetDirAndName()
Get current work dir and input file name from the full file path.
void ReadFile(const string &file)
Read the input file.
void ReadInputFile(const string &file)
General interface for reading input data.
void ReadINCLUDE(ifstream &ifs)
Handle the INCLUDE keyword, which contains other input files.
ParamControl paramControl
Read the control params.
string workDir
Current work directory.
ParamReservoir paramRs
Read the reservoir params.
string fileName
File name of input file.
string inputFile
Input file with its path (absolute or relative).
void CheckParam()
Check whether the params contain error.
void InputDIMENS(ifstream &ifs)
TODO: Add Doxygen.
bool disGas
If true, dissolve gas could exist in oil phase.
void InputTABDIMS(ifstream &ifs)
TABDIMS contains the num of saturation region and PVT region.
void CheckParam()
Check the reservoir param from input file.
void InputGRID(ifstream &ifs, string &keyword)
TODO: Add Doxygen.
void InputMISCSTR(ifstream &ifs)
Input the Miscibility information.
bool gas
If true, gas phase could exist.
void InputEQUIL(ifstream &ifs)
EQUIL contains initial information of reservoir; see ParamEQUIL.
void InputCOMPS(ifstream &ifs)
TODO: Add Doxygen.
void InputRegion(ifstream &ifs, const string &keyword)
Input the keyword: SATNUM and PVTNUM.
void InputMULTIPLY(ifstream &ifs)
TODO: Add Doxygen.
bool oil
If true, oil phase could exist.
void Init()
Initialize the default value in reservoir, such as temperature, density, table.
void InputEQUALS(ifstream &ifs)
TODO: Add Doxygen.
void InputTABLE(ifstream &ifs, const string &tabName)
Input PVTtable and SATtable such as SWOF, PVCO.
void InputROCK(ifstream &ifs)
Read data from the ROCK keyword.
void InputDENSITY(ifstream &ifs)
Input the reference density of oil, water, and air in standard condition.
void InputCOPY(ifstream &ifs)
Input the keyword: COPY. COPY could copy the value of one variable to another.
bool blackOil
If ture, blackoil model will be used.
void InputGRAVITY(ifstream &ifs)
Input the reference gravity of oil, water, and air in standard condition.
void InputRTEMP(ifstream &ifs)
Input the keyword: RTEMP. RTEMP gives the temperature of reservoir.
bool water
If true, water phase could exist.
EoSparam EoSp
Initial component composition, used in compositional models.
void InputWCONPROD(ifstream &ifs)
void InputWELLSTRE(ifstream &ifs)
void InputWELSPECS(ifstream &ifs)
void InputWELTARG(ifstream &ifs)
void InputTSTEP(ifstream &ifs)
void Init()
Initialize the inputting the params of wells.
void CheckParam(const bool &boModel) const
Check if wrong params are input.
vector< OCP_DBL > criticalTime
Records the critical time given by users.
void InputWCONINJE(ifstream &ifs)
void InputCOMPDAT(ifstream &ifs)