20 const USI len = misterm.surTenRef.size();
const OCP_DBL TINY
Small constant.
unsigned int USI
Generic unsigned integer.
double OCP_DBL
Double precision.
unsigned int OCP_USI
Long unsigned integer.
unsigned int OCP_BOOL
OCP_BOOL in OCP.
PhasePermeability class declaration.
vector< OCP_USI > map_Act2All
Mapping from active grid to all grid: activeGridNum.
OCP_USI activeGridNum
Num of active grid.
vector< OCP_DBL > SwatInit
Initial water saturation.
OCP_BOOL CalFkFp(const OCP_USI &n, OCP_DBL &fk, OCP_DBL &fp)
Calculate Fk, Fp and return if miscible.
OCP_BOOL ifUseMiscible
Miscible treatment of hydrocarbons, only used in compositional Model.
void InputParam(const Miscstr &misterm)
Input param from input file.
OCP_DBL surTenRef
The reference surface tension - flow is immiscible when the surface tension.
vector< OCP_DBL > Fp
The capillary pressure interpolation parameter.
vector< OCP_DBL > surTen
Surface tensions between hydrocarbon phases.
vector< OCP_DBL > lsurTen
last surTen.
OCP_DBL Fkexp
Exponent set used to calculate Fk.
void Setup(const OCP_USI &numBulk)
Allocate memory for Miscible term.
OCP_DBL surTenPc
Maximum surface tension for capillary pressure / surTenRef.
vector< OCP_DBL > Fk
The relative permeability interpolation parameter.
OCP_BOOL ifSetup
Only one setup is needed.
OCP_BOOL ifScale
If true, then Scale will be used.
vector< OCP_DBL > scaleVal
Scale values for Pcow, it will be calculated from swatInit.
vector< OCP_DBL > swatInit
Initial water distribution.
void Setup(const Grid &myGrid)
Setup ScalePcow term.