12 #ifndef __BOMIXTURE_HEADER__
13 #define __BOMIXTURE_HEADER__
35 OCP_ABORT(
"Should not be used in Black Oil mode!");
return 0;
39 USI GetFtype()
override {
OCP_ABORT(
"Should not be used in Black Oil mode!");
return 100; }
40 OCP_SIN GetMinEigenSkip()
override {
OCP_ABORT(
"Should not be used in Black Oil mode!");
return 0; }
41 bool GetFlagSkip()
override {
OCP_ABORT(
"Should not be used in Black Oil mode!");
return false; }
42 OCP_DBL GetSurTen()
override {
OCP_ABORT(
"Should not be used in Black Oil mode!");
return 0; }
43 OCP_DBL GetErrorPEC()
override {
OCP_ABORT(
"Should not be used in Black Oil mode!");
return 0; }
44 OCP_ULL GetSSMSTAiters()
override {
OCP_ABORT(
"Should not be used in Black Oil mode!");
return 0;
46 OCP_ULL GetNRSTAiters()
override {
OCP_ABORT(
"Should not be used in Black Oil mode!");
return 0;
48 OCP_ULL GetSSMSPiters()
override {
OCP_ABORT(
"Should not be used in Black Oil mode!");
return 0;
50 OCP_ULL GetNRSPiters()
override {
OCP_ABORT(
"Should not be used in Black Oil mode!");
return 0;
52 OCP_ULL GetRRiters()
override {
OCP_ABORT(
"Should not be used in Black Oil mode!");
return 0;
54 OCP_ULL GetSSMSTAcounts()
override {
55 OCP_ABORT(
"Should not be used in Black Oil mode!");
return 0;
57 OCP_ULL GetNRSTAcounts()
override {
58 OCP_ABORT(
"Should not be used in Black Oil mode!");
return 0;
60 OCP_ULL GetSSMSPcounts()
override {
61 OCP_ABORT(
"Should not be used in Black Oil mode!");
return 0;
63 OCP_ULL GetNRSPcounts()
override {
64 OCP_ABORT(
"Should not be used in Black Oil mode!");
return 0;
66 OCP_ULL GetRRcounts()
override {
67 OCP_ABORT(
"Should not be used in Black Oil mode!");
return 0;
113 const OCP_DBL* lastKs)
override {
118 const OCP_DBL* lastKs)
override {
123 const OCP_DBL* njin,
const USI& ftype,
const USI* phaseExistin,
124 const USI& lastNP,
const OCP_DBL* lastKs)
override {
161 const OCP_DBL* lastKs)
override;
164 const OCP_DBL* lastKs)
override;
167 const OCP_DBL* njin,
const USI& ftype,
const USI* phaseExistin,
168 const USI& lastNP,
const OCP_DBL* lastKs)
override {
179 vector<OCP_DBL> data;
181 vector<OCP_DBL> cdata;
212 const OCP_DBL* lastKs)
override;
215 const OCP_DBL* lastKs)
override;
218 const OCP_DBL* njin,
const USI& ftype,
const USI* phaseExistin,
219 const USI& lastNP,
const OCP_DBL* lastKs)
override {
232 vector<OCP_DBL> data;
234 vector<OCP_DBL> cdata;
Mixture class declaration.
unsigned int USI
Generic unsigned integer.
double OCP_DBL
Double precision.
float OCP_SIN
Single precision.
unsigned long long OCP_ULL
Long long unsigned integer.
OCPTable class declaration.
#define OCP_ABORT(msg)
Abort if critical error happens.
void InitFlash(const OCP_DBL &Pin, const OCP_DBL &Pbbin, const OCP_DBL &Tin, const OCP_DBL *Sjin, const OCP_DBL &Vpore, const OCP_DBL *Ziin) override
flash calculation with saturation of phases.
OCP_DBL GammaPhaseG(const OCP_DBL &Pin) override
return gamma of gas phase, gamma equals to mass density times gravity factor.
OCP_DBL XiPhase(const OCP_DBL &Pin, const OCP_DBL &Tin, const OCP_DBL *Ziin) override
void Flash(const OCP_DBL &Pin, const OCP_DBL &Tin, const OCP_DBL *Niin, const USI &ftype, const USI &lastNP, const OCP_DBL *lastKs) override
Flash calculation with moles of components.
void FlashDeriv(const OCP_DBL &Pin, const OCP_DBL &Tin, const OCP_DBL *Niin, const USI &ftype, const USI &lastNP, const OCP_DBL *lastKs) override
Flash calculation with moles of components and Calculate the derivative.
OCP_DBL GammaPhaseW(const OCP_DBL &Pin) override
return gamma of water phase, gamma equals to mass density times gravity factor.
OCP_DBL RhoPhase(const OCP_DBL &Pin, const OCP_DBL &Tin, const OCP_DBL *Ziin) override
return mass density of phase.
OCP_DBL GammaPhaseO(const OCP_DBL &Pin, const OCP_DBL &Pbbin) override
return gamma of oil phase, gamma equals to mass density times gravity factor.
void InitFlash(const OCP_DBL &Pin, const OCP_DBL &Pbbin, const OCP_DBL &Tin, const OCP_DBL *Sjin, const OCP_DBL &Vpore, const OCP_DBL *Ziin) override
flash calculation with saturation of phases.
OCP_DBL XiPhase(const OCP_DBL &Pin, const OCP_DBL &Tin, const OCP_DBL *Ziin) override
OCP_DBL GammaPhaseW(const OCP_DBL &Pin) override
return gamma of water phase, gamma equals to mass density times gravity factor.
OCP_DBL RhoPhase(const OCP_DBL &Pin, const OCP_DBL &Tin, const OCP_DBL *Ziin) override
return mass density of phase.
OCP_DBL GammaPhaseO(const OCP_DBL &Pin, const OCP_DBL &Pbbin) override
return gamma of oil phase, gamma equals to mass density times gravity factor.
void Flash(const OCP_DBL &Pin, const OCP_DBL &Tin, const OCP_DBL *Niin, const USI &ftype, const USI &lastNP, const OCP_DBL *lastKs) override
Flash calculation with moles of components.
void FlashDeriv(const OCP_DBL &Pin, const OCP_DBL &Tin, const OCP_DBL *Niin, const USI &ftype, const USI &lastNP, const OCP_DBL *lastKs) override
Flash calculation with moles of components and Calculate the derivative.
OCP_DBL XiPhase(const OCP_DBL &Pin, const OCP_DBL &Tin, const OCP_DBL *Ziin) override
OCP_DBL RhoPhase(const OCP_DBL &Pin, const OCP_DBL &Tin, const OCP_DBL *Ziin) override
return mass density of phase.
void InitFlash(const OCP_DBL &Pin, const OCP_DBL &Pbbin, const OCP_DBL &Tin, const OCP_DBL *Sjin, const OCP_DBL &Vpore, const OCP_DBL *Ziin) override
flash calculation with saturation of phases.
OCP_DBL GammaPhaseW(const OCP_DBL &Pin) override
return gamma of water phase, gamma equals to mass density times gravity factor.
void FlashDeriv(const OCP_DBL &Pin, const OCP_DBL &Tin, const OCP_DBL *Niin, const USI &ftype, const USI &lastNP, const OCP_DBL *lastKs) override
Flash calculation with moles of components and Calculate the derivative.
void Flash(const OCP_DBL &Pin, const OCP_DBL &Tin, const OCP_DBL *Niin, const USI &ftype, const USI &lastNP, const OCP_DBL *lastKs) override
Flash calculation with moles of components.
BOMixture is inherited class of Mixture, it's used for black oil model.
OCP_DBL std_GammaO
std_RhoO * gravity factor.
virtual OCP_DBL GammaPhaseW(const OCP_DBL &Pin) override
return gamma of water phase, gamma equals to mass density times gravity factor.
OCP_DBL std_RhoW
mass density of water phase in standard condition.
OCP_DBL GammaPhaseOG(const OCP_DBL &Pin, const OCP_DBL &Tin, const OCP_DBL *Ziin) override
OCP_DBL std_RhoG
mass density of gas phase in standard condition.
OCP_DBL std_RhoO
< others.
OCP_DBL std_GammaW
std_RhoW * gravity factor.
OCP_DBL std_GammaG
std_RhoG * gravity factor.
virtual OCP_DBL GammaPhaseO(const OCP_DBL &Pin, const OCP_DBL &Pbbin) override
return gamma of oil phase, gamma equals to mass density times gravity factor.
virtual OCP_DBL GammaPhaseG(const OCP_DBL &Pin) override
return gamma of gas phase, gamma equals to mass density times gravity factor.