mirror of
https://github.com/OPM/opm-simulators.git
synced 2024-12-02 05:49:09 -06:00
commit
aba95a8263
@ -57,6 +57,7 @@ std::string EclString(Opm::Inplace::Phase phase) {
|
||||
case Opm::Inplace::Phase::WaterResVolume: return "WIPR";
|
||||
case Opm::Inplace::Phase::OilResVolume: return "OIPR";
|
||||
case Opm::Inplace::Phase::GasResVolume: return "GIPR";
|
||||
case Opm::Inplace::Phase::SALT: return "SIP";
|
||||
default: throw std::logic_error("Phase not recognized");
|
||||
}
|
||||
}
|
||||
@ -1051,6 +1052,7 @@ fipUnitConvert_(std::unordered_map<Inplace::Phase, Scalar>& fip) const
|
||||
{Inplace::Phase::WaterResVolume, M::volume},
|
||||
{Inplace::Phase::OilResVolume, M::volume},
|
||||
{Inplace::Phase::GasResVolume, M::volume},
|
||||
{Inplace::Phase::SALT, M::mass},
|
||||
};
|
||||
|
||||
for (auto& [phase, value] : fip) {
|
||||
@ -1621,6 +1623,7 @@ updateSummaryRegionValues(const Inplace& inplace,
|
||||
inplace.get(Inplace::Phase::PoreVolume),
|
||||
false);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
// The region summary vectors should loop through the FIPxxx regions to
|
||||
|
@ -675,7 +675,7 @@ private:
|
||||
continue;
|
||||
|
||||
const double b = getValue(fs.invB(phaseIdx));
|
||||
const double s = getValue(fs.saturation(phaseIdx));
|
||||
const double s = getValue(fs.saturation(phaseIdx));
|
||||
fipr[phaseIdx] = s * pv;
|
||||
fip[phaseIdx] = b * fipr[phaseIdx];
|
||||
}
|
||||
@ -693,6 +693,9 @@ private:
|
||||
this->fip_[Inplace::Phase::GasResVolume][globalDofIdx] = fipr[gasPhaseIdx];
|
||||
if (FluidSystem::phaseIsActive(waterPhaseIdx) && !this->fip_[Inplace::Phase::WaterResVolume].empty())
|
||||
this->fip_[Inplace::Phase::WaterResVolume][globalDofIdx] = fipr[waterPhaseIdx];
|
||||
|
||||
if (FluidSystem::phaseIsActive(waterPhaseIdx) && !this->fip_[Inplace::Phase::SALT].empty())
|
||||
this->fip_[Inplace::Phase::SALT][globalDofIdx] = fipr[waterPhaseIdx] * fs.saltConcentration().value();
|
||||
|
||||
// Store the pure oil and gas Fip
|
||||
if (FluidSystem::phaseIsActive(oilPhaseIdx) && !this->fip_[Inplace::Phase::OilInLiquidPhase].empty())
|
||||
|
Loading…
Reference in New Issue
Block a user