Merge pull request #4540 from totto82/fpr_co2store

output average pressure in all cells unconditionally with co2store
This commit is contained in:
Bård Skaflestad 2023-03-24 13:06:13 +01:00 committed by GitHub
commit d0f8d879df
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1022,11 +1022,17 @@ private:
this->dynamicPoreVolume_[globalDofIdx] = pv;
Scalar hydrocarbon = 0.0;
if (!this->eclState_.runspec().co2Storage()) {
// Common case. Hydrocarbon volume is fraction occupied by actual hydrocarbons.
if (FluidSystem::phaseIsActive(oilPhaseIdx))
hydrocarbon += getValue(fs.saturation(oilPhaseIdx));
if (FluidSystem::phaseIsActive(gasPhaseIdx))
hydrocarbon += getValue(fs.saturation(gasPhaseIdx));
} else {
// CO2 storage: Hydrocarbon volume is full pore-volume.
hydrocarbon = 1.0;
}
this->hydrocarbonPoreVolume_[globalDofIdx] = pv * hydrocarbon;
if (FluidSystem::phaseIsActive(oilPhaseIdx)) {