mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
avoid negative rs/rv max
This commit is contained in:
parent
96da980897
commit
b9b0257e8a
@ -289,11 +289,11 @@ copyToWellState(const MultisegmentWellGeneric<Scalar>& mswell,
|
||||
Scalar rvMax = 0.0;
|
||||
if (FluidSystem::phaseIsActive(FluidSystem::gasPhaseIdx)) {
|
||||
// Both oil and gas active.
|
||||
rsMax = FluidSystem::oilPvt()
|
||||
.saturatedGasDissolutionFactor(pvtReg, temperature, segment_pressure[seg]);
|
||||
rsMax = std::max(Scalar{0.0}, FluidSystem::oilPvt()
|
||||
.saturatedGasDissolutionFactor(pvtReg, temperature, segment_pressure[seg]));
|
||||
|
||||
rvMax = FluidSystem::gasPvt()
|
||||
.saturatedOilVaporizationFactor(pvtReg, temperature, segment_pressure[seg]);
|
||||
rvMax = std::max(Scalar{0.0}, FluidSystem::gasPvt()
|
||||
.saturatedOilVaporizationFactor(pvtReg, temperature, segment_pressure[seg]));
|
||||
}
|
||||
|
||||
// 1) Infer phase splitting for oil/gas.
|
||||
|
Loading…
Reference in New Issue
Block a user