OpenCAEPoro  0.2.0 Sep/22/2022
A simulator for multicomponent porous media flow
OCPStructure.hpp
Go to the documentation of this file.
1 
12 #ifndef __OCPSTRUCTURE_HEADER__
13 #define __OCPSTRUCTURE_HEADER__
14 
15 // Standard header files
16 #include <vector>
17 
18 // OpenCAEPoro header files
19 #include "OCPConst.hpp"
20 
21 using namespace std;
22 
24 class ResFIM
25 {
26 public:
27  void SetZero()
28  {
29  fill(res.begin(), res.end(), 0);
30  maxRelRes_v = 0;
31  maxRelRes_mol = 0;
32  maxWellRelRes_mol = 0;
33  }
34 
35  vector<double> res;
36  OCP_DBL maxRelRes0_v;
37  OCP_DBL maxRelRes_v;
38  OCP_DBL maxRelRes_mol;
39  OCP_DBL maxWellRelRes_mol;
40 
41  // use negative number to represent well number (ToDo)
42  OCP_INT maxId_v;
43  OCP_INT maxId_mol;
44 };
45 
46 #endif
Definition of build-in datatypes and consts.
double OCP_DBL
Double precision.
Definition: OCPConst.hpp:26
int OCP_INT
Long integer.
Definition: OCPConst.hpp:25