OpenCAEPoro  0.2.0 Sep/22/2022
A simulator for multicomponent porous media flow
WellPerf.hpp
Go to the documentation of this file.
1 
12 #ifndef __PERFORATION_HEADER__
13 #define __PERFORATION_HEADER__
14 
15 // Standard header files
16 #include <vector>
17 
18 // OpenCAEPoro header files
19 #include "OCPConst.hpp"
20 
21 using namespace std;
22 
25 {
26  friend class Well;
27  friend class DetailInfo;
28 
29 public:
31  Perforation() = default;
32 
34  void setState(const bool& flag) { state = flag; };
36  OCP_USI GetLoaction() { return location; }
37 
38 private:
39  USI I;
40  USI J;
41  USI K;
42  bool state;
43  OCP_USI location;
44  OCP_DBL depth;
45  OCP_DBL trans;
46  OCP_DBL P;
47 
48  OCP_DBL WI;
50  OCP_DBL radius;
51  OCP_DBL kh;
52  OCP_DBL skinFactor;
53  USI direction;
54 
57  OCP_DBL multiplier;
60  mutable OCP_DBL xi;
61  vector<OCP_DBL> qi_lbmol;
63  vector<OCP_DBL> transj;
64  OCP_DBL transINJ;
65  vector<OCP_DBL> qj_ft3;
67  OCP_DBL qt_ft3;
69 };
70 
71 #endif /* end if __PERFORATION_HEADER__ */
72 
73 /*----------------------------------------------------------------------------*/
74 /* Brief Change History of This File */
75 /*----------------------------------------------------------------------------*/
76 /* Author Date Actions */
77 /*----------------------------------------------------------------------------*/
78 /* Shizhe Li Oct/01/2021 Create file */
79 /* Chensong Zhang Oct/15/2021 Format file */
80 /*----------------------------------------------------------------------------*/
Definition of build-in datatypes and consts.
unsigned int USI
Generic unsigned integer.
Definition: OCPConst.hpp:22
double OCP_DBL
Double precision.
Definition: OCPConst.hpp:26
unsigned int OCP_USI
Long unsigned integer.
Definition: OCPConst.hpp:24
Collect more detailed information of each time step.
Definition: OCPOutput.hpp:165
Perforation describe the connections between wells and bulks.
Definition: WellPerf.hpp:25
OCP_USI GetLoaction()
Return the location of perf: index of bulk.
Definition: WellPerf.hpp:36
Perforation()=default
Default constuctor.
void setState(const bool &flag)
Set state of perf.
Definition: WellPerf.hpp:34
Definition: Well.hpp:105