OpenCAEPoro  v0.5.0
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 Out4RPT;
28 
29 public:
31  Perforation() = default;
32 
34  void SetState(const OCP_BOOL& flag) { state = flag; };
36  OCP_USI Location() const { return location; }
37 
38 private:
39  USI I;
40  USI J;
41  USI K;
42  OCP_BOOL state;
43  OCP_USI location;
44  OCP_DBL depth;
45  OCP_DBL P;
46 
47  OCP_DBL WI;
49  OCP_DBL radius;
50  OCP_DBL kh;
51  OCP_DBL skinFactor;
52  USI direction;
53 
56  OCP_DBL multiplier;
59  mutable OCP_DBL xi;
60  vector<OCP_DBL> qi_lbmol;
62  vector<OCP_DBL> transj;
63  OCP_DBL transINJ;
64  vector<OCP_DBL> qj_ft3;
66  OCP_DBL qt_ft3;
68 };
69 
70 #endif /* end if __PERFORATION_HEADER__ */
71 
72 /*----------------------------------------------------------------------------*/
73 /* Brief Change History of This File */
74 /*----------------------------------------------------------------------------*/
75 /* Author Date Actions */
76 /*----------------------------------------------------------------------------*/
77 /* Shizhe Li Oct/01/2021 Create file */
78 /* Chensong Zhang Oct/15/2021 Format file */
79 /*----------------------------------------------------------------------------*/
Definition of build-in datatypes and consts.
unsigned int USI
Generic unsigned integer.
Definition: OCPConst.hpp:23
double OCP_DBL
Double precision.
Definition: OCPConst.hpp:27
unsigned int OCP_USI
Long unsigned integer.
Definition: OCPConst.hpp:25
unsigned int OCP_BOOL
OCP_BOOL in OCP.
Definition: OCPConst.hpp:29
Collect more detailed information of each time step.
Definition: OCPOutput.hpp:211
Perforation describe the connections between wells and bulks.
Definition: WellPerf.hpp:25
OCP_USI Location() const
Return the location of perf: index of bulk.
Definition: WellPerf.hpp:36
Perforation()=default
Default constructor.
void SetState(const OCP_BOOL &flag)
Set state of perf.
Definition: WellPerf.hpp:34
Definition: Well.hpp:45