mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
clean up
This commit is contained in:
parent
7b04c9641d
commit
b5836354c2
@ -266,13 +266,11 @@ public:
|
|||||||
fluidState_.setRv(0.0);
|
fluidState_.setRv(0.0);
|
||||||
|
|
||||||
if (FluidSystem::enableVaporizedWater()) {
|
if (FluidSystem::enableVaporizedWater()) {
|
||||||
const Evaluation& RvwSat = FluidSystem::saturatedWaterVaporationFactor(fluidState_,
|
const Evaluation& RvwSat = FluidSystem::saturatedVaporizationFactor(fluidState_,
|
||||||
gasPhaseIdx,
|
gasPhaseIdx,
|
||||||
pvtRegionIdx);
|
pvtRegionIdx);
|
||||||
fluidState_.setRvw(RvwSat);
|
fluidState_.setRvw(RvwSat);
|
||||||
}
|
}
|
||||||
else //if (compositionSwitchEnabled)
|
|
||||||
fluidState_.setRvw(0.0);
|
|
||||||
}
|
}
|
||||||
else if (priVars.primaryVarsMeaning() == PrimaryVariables::Rvw_po_Sg) {
|
else if (priVars.primaryVarsMeaning() == PrimaryVariables::Rvw_po_Sg) {
|
||||||
// The switching variable is the water-gas ratio Rvw
|
// The switching variable is the water-gas ratio Rvw
|
||||||
|
@ -488,7 +488,8 @@ public:
|
|||||||
T,
|
T,
|
||||||
pg);
|
pg);
|
||||||
setPrimaryVarsMeaning(Rvw_po_Sg);
|
setPrimaryVarsMeaning(Rvw_po_Sg);
|
||||||
//Sw = 0.0; //check
|
(*this)[Indices::waterSaturationIdx] = RvwSat; //primary variable becomes Rvw
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -607,9 +608,14 @@ public:
|
|||||||
|
|
||||||
Scalar po = (*this)[Indices::pressureSwitchIdx];
|
Scalar po = (*this)[Indices::pressureSwitchIdx];
|
||||||
Scalar T = asImp_().temperature_();
|
Scalar T = asImp_().temperature_();
|
||||||
|
Scalar Sg = 0.0;
|
||||||
|
if (compositionSwitchEnabled)
|
||||||
|
Sg = (*this)[Indices::compositionSwitchIdx];
|
||||||
|
|
||||||
|
Scalar So = 1.0 - Sg - solventSaturation_();
|
||||||
Scalar pC[numPhases] = { 0.0 };
|
Scalar pC[numPhases] = { 0.0 };
|
||||||
const MaterialLawParams& matParams = problem.materialLawParams(globalDofIdx);
|
const MaterialLawParams& matParams = problem.materialLawParams(globalDofIdx);
|
||||||
computeCapillaryPressures_(pC, So, Sg + solventSaturation_(), Sw, matParams);
|
computeCapillaryPressures_(pC, So, Sg + solventSaturation_(), /*Sw=*/ 0.0, matParams);
|
||||||
Scalar pg = po + (pC[gasPhaseIdx] - pC[oilPhaseIdx]);
|
Scalar pg = po + (pC[gasPhaseIdx] - pC[oilPhaseIdx]);
|
||||||
Scalar RvwSat = FluidSystem::gasPvt().saturatedWaterVaporizationFactor(pvtRegionIdx_,
|
Scalar RvwSat = FluidSystem::gasPvt().saturatedWaterVaporizationFactor(pvtRegionIdx_,
|
||||||
T,
|
T,
|
||||||
|
Loading…
Reference in New Issue
Block a user