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);
|
||||
|
||||
if (FluidSystem::enableVaporizedWater()) {
|
||||
const Evaluation& RvwSat = FluidSystem::saturatedWaterVaporationFactor(fluidState_,
|
||||
const Evaluation& RvwSat = FluidSystem::saturatedVaporizationFactor(fluidState_,
|
||||
gasPhaseIdx,
|
||||
pvtRegionIdx);
|
||||
fluidState_.setRvw(RvwSat);
|
||||
}
|
||||
else //if (compositionSwitchEnabled)
|
||||
fluidState_.setRvw(0.0);
|
||||
}
|
||||
else if (priVars.primaryVarsMeaning() == PrimaryVariables::Rvw_po_Sg) {
|
||||
// The switching variable is the water-gas ratio Rvw
|
||||
|
@ -488,7 +488,8 @@ public:
|
||||
T,
|
||||
pg);
|
||||
setPrimaryVarsMeaning(Rvw_po_Sg);
|
||||
//Sw = 0.0; //check
|
||||
(*this)[Indices::waterSaturationIdx] = RvwSat; //primary variable becomes Rvw
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -607,9 +608,14 @@ public:
|
||||
|
||||
Scalar po = (*this)[Indices::pressureSwitchIdx];
|
||||
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 };
|
||||
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 RvwSat = FluidSystem::gasPvt().saturatedWaterVaporizationFactor(pvtRegionIdx_,
|
||||
T,
|
||||
|
Loading…
Reference in New Issue
Block a user