mirror of
https://github.com/OPM/opm-simulators.git
synced 2025-02-25 18:55:30 -06:00
Merge pull request #4551 from totto82/outputGIPL
output gas in water to F(R)GIPL for gas-water systems
This commit is contained in:
commit
8858d725a8
@ -1156,6 +1156,10 @@ private:
|
|||||||
if (!this->fip_[Inplace::Phase::WaterInWaterPhase].empty())
|
if (!this->fip_[Inplace::Phase::WaterInWaterPhase].empty())
|
||||||
this->fip_[Inplace::Phase::WaterInWaterPhase][globalDofIdx] = fip[waterPhaseIdx];
|
this->fip_[Inplace::Phase::WaterInWaterPhase][globalDofIdx] = fip[waterPhaseIdx];
|
||||||
|
|
||||||
|
// For water+gas cases the gas in water is added to the GIPL value
|
||||||
|
if (!this->fip_[Inplace::Phase::GasInLiquidPhase].empty() && !FluidSystem::phaseIsActive(oilPhaseIdx))
|
||||||
|
this->fip_[Inplace::Phase::GasInLiquidPhase][globalDofIdx] = gasInPlaceWater;
|
||||||
|
|
||||||
// Add dissolved gas and vaporized water to total Fip
|
// Add dissolved gas and vaporized water to total Fip
|
||||||
if (!this->fip_[Inplace::Phase::WATER].empty())
|
if (!this->fip_[Inplace::Phase::WATER].empty())
|
||||||
this->fip_[Inplace::Phase::WATER][globalDofIdx] += waterInPlaceGas;
|
this->fip_[Inplace::Phase::WATER][globalDofIdx] += waterInPlaceGas;
|
||||||
|
Loading…
Reference in New Issue
Block a user