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];
296 paramRs.InputCOMPONENTS(ifs, keyword);
301 paramRs.InputRefPR(ifs, keyword);
357 <<
"=========================================" << endl
358 <<
"Check reading parameters from input data!" << endl
359 <<
"=========================================" << endl;
ParamRead class declaration.
#define OCP_MESSAGE(msg)
Log error messages.
#define OCP_ABORT(msg)
Abort if critical error happens.
vector< OCP_DBL > criticalTime
USI model
model: thermal or isothermal.
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, const string &keyword)
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.
OCP_BOOL oil
If OCP_TRUE, oil phase could exist.
void InputDIMENS(ifstream &ifs)
TODO: Add Doxygen.
void InputTABDIMS(ifstream &ifs)
TABDIMS contains the num of saturation region and PVT region.
void CheckParam()
Check the reservoir param from input file.
void InputTHCON(ifstream &ifs, const string &keyword)
Input the phase ifThermal conductivity.
ComponentParam comsParam
information for components
void InputGRID(ifstream &ifs, string &keyword)
TODO: Add Doxygen.
void InputMISCSTR(ifstream &ifs)
Input the Miscibility information.
OCP_BOOL gas
If OCP_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.
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.
OCP_BOOL blackOil
If ture, blackoil model will be used.
void InputDENSITY(ifstream &ifs)
Input the reference density of oil, water, and air in standard condition.
OCP_BOOL disGas
If OCP_TRUE, dissolve gas could exist in oil phase.
void InputCOPY(ifstream &ifs)
Input the keyword: COPY. COPY could copy the value of one variable to another.
void InputHLOSS(ifstream &ifs)
Input heat loss property for overburden rock and underburden rock.
void InputROCKT(ifstream &ifs)
Input Rock information for ifThermal model.
void InputGRAVITY(ifstream &ifs)
Input the reference gravity of oil, water, and air in standard condition.
OCP_BOOL water
If OCP_TRUE, water phase could exist.
OCP_BOOL thermal
If OCP_TRUE, ifThermal model will be used.
void InputRTEMP(ifstream &ifs)
Input the keyword: RTEMP. RTEMP gives the temperature of reservoir.
void InputWTEMP(ifstream &ifs)
Input the temperature of injected fluid.
void InputWCONPROD(ifstream &ifs)
void InputPSURF(ifstream &ifs)
Input surface pressure.
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.
vector< OCP_DBL > criticalTime
Records the critical time given by users.
void InputWCONINJE(ifstream &ifs)
void InputUNWEIGHT(ifstream &ifs)
Input injector type – MOBWEIGHT(defaulted) or UNWEIGHT.
void InputTSURF(ifstream &ifs)
Input surface temperature.
void InputCOMPDAT(ifstream &ifs)
void CheckParam(const OCP_BOOL &boModel) const
Check if wrong params are input.