OpenCAEPoro  v0.5.0
A simulator for multicomponent porous media flow
ParamOutput.hpp
Go to the documentation of this file.
1 
12 #ifndef __PARAMOUTPUT_HEADER__
13 #define __PARAMOUTPUT_HEADER__
14 
15 // Standard header files
16 #include <fstream>
17 #include <vector>
18 
19 // OpenCAEPoro header files
20 #include "UtilInput.hpp"
21 
23 class COOIJK
24 {
25 public:
26  COOIJK() = default;
27  COOIJK(const USI& i, const USI& j, const USI& k)
28  : I(i)
29  , J(j)
30  , K(k){};
31  USI I;
32  USI J;
33  USI K;
34 };
35 
37 class Type_B_o
38 {
39 public:
40  OCP_BOOL activity{OCP_FALSE};
41  vector<COOIJK> obj;
42 };
43 
45 class Type_A_o
46 {
47 public:
48  OCP_BOOL activity{OCP_FALSE};
49  vector<string> obj;
50 };
51 
55 {
56 
57 public:
58  OCP_BOOL FPR{OCP_FALSE};
59  OCP_BOOL FTR{OCP_FALSE};
60  OCP_BOOL FOPR{OCP_FALSE};
61  OCP_BOOL FOPT{OCP_FALSE};
62  OCP_BOOL FGPR{OCP_FALSE};
63  OCP_BOOL FGPt{OCP_FALSE};
64  OCP_BOOL FWPR{OCP_FALSE};
65  OCP_BOOL FWPT{OCP_FALSE};
66  OCP_BOOL FGIR{OCP_FALSE};
67  OCP_BOOL FGIT{OCP_FALSE};
68  OCP_BOOL FWIR{OCP_FALSE};
69  OCP_BOOL FWIT{OCP_FALSE};
70 
83 
88 };
89 
91 {
92 public:
93  OCP_BOOL PRE{OCP_FALSE};
94  OCP_BOOL PGAS{OCP_FALSE};
95  OCP_BOOL PWAT{OCP_FALSE};
96  OCP_BOOL SOIL{OCP_FALSE};
97  OCP_BOOL SGAS{OCP_FALSE};
98  OCP_BOOL SWAT{OCP_FALSE};
99  OCP_BOOL DENO{OCP_FALSE};
100  OCP_BOOL DENG{OCP_FALSE};
101  OCP_BOOL DENW{OCP_FALSE};
102  OCP_BOOL KRO{OCP_FALSE};
103  OCP_BOOL KRG{OCP_FALSE};
104  OCP_BOOL KRW{OCP_FALSE};
105  OCP_BOOL BOIL{OCP_FALSE};
106  OCP_BOOL BGAS{OCP_FALSE};
107  OCP_BOOL BWAT{OCP_FALSE};
108  OCP_BOOL VOIL{OCP_FALSE};
109  OCP_BOOL VGAS{OCP_FALSE};
110  OCP_BOOL VWAT{OCP_FALSE};
111  OCP_BOOL XMF{OCP_FALSE};
112  OCP_BOOL YMF{OCP_FALSE};
113  OCP_BOOL PCW{OCP_FALSE};
114 };
115 
120 {
121 public:
122  OCP_BOOL useRPT{OCP_FALSE};
124 };
125 
127 {
128 public:
129  OCP_BOOL useVTK{OCP_FALSE};
131 };
132 
138 {
139 public:
143 
147  void InputSUMMARY(ifstream& ifs);
150  void InputType_A(ifstream& ifs, Type_A_o& obj);
153  void InputType_B(ifstream& ifs, Type_B_o& obj);
154 
157  void InputRPTSCHED(ifstream& ifs, const string& keyword);
158 };
159 
160 #endif /* end if __PARAMOUTPUT_HEADER__ */
161 
162 /*----------------------------------------------------------------------------*/
163 /* Brief Change History of This File */
164 /*----------------------------------------------------------------------------*/
165 /* Author Date Actions */
166 /*----------------------------------------------------------------------------*/
167 /* Shizhe Li Oct/01/2021 Create file */
168 /* Chensong Zhang Oct/15/2021 Format file */
169 /*----------------------------------------------------------------------------*/
unsigned int USI
Generic unsigned integer.
Definition: OCPConst.hpp:23
unsigned int OCP_BOOL
OCP_BOOL in OCP.
Definition: OCPConst.hpp:29
Supply basic tools used to input files.
OCP_BOOL DENG
Gas density of grids.
OCP_BOOL PWAT
Water pressure of grids.
Definition: ParamOutput.hpp:95
OCP_BOOL DENW
Water density of grids.
OCP_BOOL XMF
liquid component mole fractions.
OCP_BOOL SWAT
Water saturation of grids.
Definition: ParamOutput.hpp:98
OCP_BOOL BWAT
Water reservoir molar densities of grids.
OCP_BOOL PRE
Pressure of grids.
Definition: ParamOutput.hpp:93
OCP_BOOL BOIL
Oil reservoir molar densities of grids.
OCP_BOOL PCW
capillary pressure: Po - Pw.
OCP_BOOL YMF
gas component mole fractions.
OCP_BOOL VOIL
Oil viscosity of grids.
OCP_BOOL KRG
Gas relative permeability of grids.
OCP_BOOL VWAT
Water viscosity of grids.
OCP_BOOL SOIL
Oil saturation of grids.
Definition: ParamOutput.hpp:96
OCP_BOOL VGAS
Gas viscosity of grids.
OCP_BOOL SGAS
Gas saturation of grids.
Definition: ParamOutput.hpp:97
OCP_BOOL KRW
Water relative permeability of grids.
OCP_BOOL DENO
Oil density of grids.
Definition: ParamOutput.hpp:99
OCP_BOOL PGAS
Gas pressure of grids.
Definition: ParamOutput.hpp:94
OCP_BOOL KRO
Oil relative permeability of grids.
OCP_BOOL BGAS
Gas reservoir molar densities of grids.
A structure of three-dimensional coordinates.
Definition: ParamOutput.hpp:24
Type_A_o WWIR
Well water injection rate.
Definition: ParamOutput.hpp:79
Type_B_o SOIL
Oil saturation of bulk.
Definition: ParamOutput.hpp:85
OCP_BOOL FGIT
Field total gas injection.
Definition: ParamOutput.hpp:67
Type_A_o WGPR
Well gas production rate.
Definition: ParamOutput.hpp:73
OCP_BOOL FPR
Field average Pressure.
Definition: ParamOutput.hpp:58
OCP_BOOL FGPR
Field gas production rate.
Definition: ParamOutput.hpp:62
Type_A_o DG
Pressure difference between wells and perforations.
Definition: ParamOutput.hpp:82
Type_A_o WOPT
Well total oil production rate.
Definition: ParamOutput.hpp:72
OCP_BOOL FTR
Field average Temperature.
Definition: ParamOutput.hpp:59
Type_A_o WGPT
Well total gas production.
Definition: ParamOutput.hpp:74
OCP_BOOL FOPT
Field total oil production.
Definition: ParamOutput.hpp:61
Type_A_o WWPT
Well total water production.
Definition: ParamOutput.hpp:76
OCP_BOOL FWPT
Field total water production.
Definition: ParamOutput.hpp:65
Type_B_o BPR
Bulk pressure.
Definition: ParamOutput.hpp:84
Type_B_o SWAT
Water saturation of bulk.
Definition: ParamOutput.hpp:87
Type_A_o WOPR
Well oil production rate.
Definition: ParamOutput.hpp:71
OCP_BOOL FGIR
Field gas injection rate.
Definition: ParamOutput.hpp:66
OCP_BOOL FGPt
Field total gas production.
Definition: ParamOutput.hpp:63
Type_A_o WGIR
Well gas injection rate.
Definition: ParamOutput.hpp:77
Type_B_o SGAS
Gas saturation of bulk.
Definition: ParamOutput.hpp:86
Type_A_o WGIT
Well total gas injection.
Definition: ParamOutput.hpp:78
OCP_BOOL FWPR
Field water production rate.
Definition: ParamOutput.hpp:64
OCP_BOOL FOPR
Field oil production rate.
Definition: ParamOutput.hpp:60
OCP_BOOL FWIT
Field total water injection.
Definition: ParamOutput.hpp:69
Type_A_o WBHP
Well pressure.
Definition: ParamOutput.hpp:81
Type_A_o WWIT
Well total water injection.
Definition: ParamOutput.hpp:80
Type_A_o WWPR
Well water production rate.
Definition: ParamOutput.hpp:75
OCP_BOOL FWIR
Field water injection rate.
Definition: ParamOutput.hpp:68
void InputType_A(ifstream &ifs, Type_A_o &obj)
void InputType_B(ifstream &ifs, Type_B_o &obj)
void InputRPTSCHED(ifstream &ifs, const string &keyword)
OutputVTKParam outVTKParam
See OutputVTKParam.
void InputSUMMARY(ifstream &ifs)
Definition: ParamOutput.cpp:14
OutputSummary summary
See OutputSummary.
OutputRPTParam outRPTParam
See OutputRPTParam.
Used to store the contents of keyword whose contents are in form of string.
Definition: ParamOutput.hpp:46
Used to store the contents of keyword whose contents are in form of coordinates.
Definition: ParamOutput.hpp:38