OpenCAEPoro  0.2.0 Sep/22/2022
A simulator for multicomponent porous media flow
ParamRead.hpp
Go to the documentation of this file.
1 
15 #ifndef __PARAMREAD_HEADER__
16 #define __PARAMREAD_HEADER__
17 
18 // Standard header files
19 #include <fstream>
20 #include <iostream>
21 #include <string>
22 
23 // OpenCAEPoro header files
24 #include "ParamControl.hpp"
25 #include "ParamOutput.hpp"
26 #include "ParamReservoir.hpp"
27 #include "ParamWell.hpp"
28 
29 using namespace std;
30 
32 class ParamRead
33 {
34 public:
35  string inputFile;
36  string workDir;
37  string fileName;
38 
39  // Main workloads for ParamRead: read reservoir params, read well params,
40  // read control params, and read output param. These workloads are assigned
41  // to the following classes, respectively.
46 
47 public:
49  void GetDirAndName();
50 
52  void Init();
53 
55  void ReadInputFile(const string& file);
56 
58  void ReadFile(const string& file);
59 
61  void ReadINCLUDE(ifstream& ifs);
62 
64  void CheckParam();
65 };
66 
67 #endif /* end if __PARAMREAD_HEADER__ */
68 
69 /*----------------------------------------------------------------------------*/
70 /* Brief Change History of This File */
71 /*----------------------------------------------------------------------------*/
72 /* Author Date Actions */
73 /*----------------------------------------------------------------------------*/
74 /* Shizhe Li Oct/01/2021 Create file */
75 /* Chensong Zhang Oct/16/2021 Format file */
76 /*----------------------------------------------------------------------------*/
ParamControl class declaration.
ParamOutput class declaration.
ParamReservoir class declaration.
ParamWell class declaration.
Pre-processing unit for OpenCAEPoro for reading params from input files.
Definition: ParamRead.hpp:33
ParamOutput paramOutput
Read the output params.
Definition: ParamRead.hpp:45
ParamWell paramWell
Read the well params.
Definition: ParamRead.hpp:43
ParamControl paramControl
Read the control params.
Definition: ParamRead.hpp:44
string workDir
Current work directory.
Definition: ParamRead.hpp:36
ParamReservoir paramRs
Read the reservoir params.
Definition: ParamRead.hpp:42
string fileName
File name of input file.
Definition: ParamRead.hpp:37
string inputFile
Input file with its path (absolute or relative).
Definition: ParamRead.hpp:35