OpenCAEPoro  v0.5.0
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 {
16  Allocate();
17 
18  if (rs_param.density.activity) {
19  std_RhoO = rs_param.density.data[0];
20  std_RhoW = rs_param.density.data[1];
21  std_RhoG = rs_param.density.data[2];
22  } else {
23  std_RhoO = (141.5 * RHOW_STD) / (rs_param.gravity.data[0] + 131.5);
24  std_RhoW = RHOW_STD * rs_param.gravity.data[1];
25  std_RhoG = RHOAIR_STD * rs_param.gravity.data[2];
26  }
27 }
28 
29 /*----------------------------------------------------------------------------*/
30 /* Brief Change History of This File */
31 /*----------------------------------------------------------------------------*/
32 /* Author Date Actions */
33 /*----------------------------------------------------------------------------*/
34 /* Shizhe Li Oct/01/2021 Create file */
35 /* Chensong Zhang Oct/15/2021 Format file */
36 /*----------------------------------------------------------------------------*/
MixtureBO class declaration.
const OCP_DBL RHOW_STD
Water density at surface cond: lb/ft3.
Definition: OCPConst.hpp:57
const OCP_DBL RHOAIR_STD
Air density at surface cond : lb/ft3.
Definition: OCPConst.hpp:58
OCP_DBL std_RhoW
The density of water at surface conditions : lb/ft3.
Definition: MixtureBO.hpp:77
OCP_DBL std_RhoG
The density of gas at surface conditions : lb/ft3.
Definition: MixtureBO.hpp:76
OCP_DBL std_RhoO
< others.
Definition: MixtureBO.hpp:67
void Allocate()
Allocate memory for common variables for basic class.
Definition: Mixture.hpp:40
Type_A_r< OCP_DBL > density
Density of oil, water, gas in standard conditions.
Type_A_r< OCP_DBL > gravity
Gravity of oil, water, gas in standard conditions.
OCP_BOOL activity
If OCP_FALSE, this param is not given.
vector< T > data
Data of param.