OpenCAEPoro  0.2.0 Sep/22/2022
A simulator for multicomponent porous media flow
MixtureBO.cpp
Go to the documentation of this file.
1 
12 #include "MixtureBO.hpp"
13 
14 void BOMixture::BOMixtureInit(const ParamReservoir& rs_param)
15 {
17  numPhase = rs_param.numPhase;
18  numCom = rs_param.numCom;
19 
20  Allocate();
21 
22  if (rs_param.density.activity) {
23  std_RhoO = rs_param.density.data[0];
24  std_RhoW = rs_param.density.data[1];
25  std_RhoG = rs_param.density.data[2];
26  } else {
27  std_RhoO = (141.5 * RHOW_STD) / (rs_param.gravity.data[0] + 131.5);
28  std_RhoW = RHOW_STD * rs_param.gravity.data[1];
29  std_RhoG = RHOAIR_STD * rs_param.gravity.data[2];
30  }
31 
35 
36 }
37 
38 
39 /*----------------------------------------------------------------------------*/
40 /* Brief Change History of This File */
41 /*----------------------------------------------------------------------------*/
42 /* Author Date Actions */
43 /*----------------------------------------------------------------------------*/
44 /* Shizhe Li Oct/01/2021 Create file */
45 /* Chensong Zhang Oct/15/2021 Format file */
46 /*----------------------------------------------------------------------------*/
MixtureBO class declaration.
const USI BLKOIL
Mixture model = black-oil.
Definition: OCPConst.hpp:88
const OCP_DBL GRAVITY_FACTOR
0.00694444 ft2 psi / lb
Definition: OCPConst.hpp:52
const OCP_DBL RHOW_STD
Water density in lb / ft3.
Definition: OCPConst.hpp:53
const OCP_DBL RHOAIR_STD
Air density in lb / ft3.
Definition: OCPConst.hpp:54
OCP_DBL std_GammaO
std_RhoO * gravity factor.
Definition: MixtureBO.hpp:76
OCP_DBL std_RhoW
mass density of water phase in standard condition.
Definition: MixtureBO.hpp:79
OCP_DBL std_RhoG
mass density of gas phase in standard condition.
Definition: MixtureBO.hpp:77
OCP_DBL std_RhoO
< others.
Definition: MixtureBO.hpp:75
OCP_DBL std_GammaW
std_RhoW * gravity factor.
Definition: MixtureBO.hpp:80
OCP_DBL std_GammaG
std_RhoG * gravity factor.
Definition: MixtureBO.hpp:78
USI numCom
num of components.
Definition: Mixture.hpp:157
USI numPhase
num of phases.
Definition: Mixture.hpp:156
USI mixtureType
Definition: Mixture.hpp:153
void Allocate()
Allocate memory for common variables for basic class.
Definition: Mixture.hpp:38
USI numPhase
Number of phases.
Type_A_r< OCP_DBL > density
Density of oil, water, gas in standard conditions.
USI numCom
Number of components(hydrocarbon components), used in Compositional Model when input.
Type_A_r< OCP_DBL > gravity
Gravity of oil, water, gas in standard conditions.
vector< T > data
Data of param.
bool activity
If false, this param is not given.