move assignment of porevolume fip values into FIPContainer

This commit is contained in:
Arne Morten Kvarving
2025-01-31 09:19:32 +01:00
parent 9cc5f11084
commit 9ae656fd58
3 changed files with 14 additions and 2 deletions

View File

@@ -297,6 +297,15 @@ assignOilGasDistribution(const unsigned globalDofIdx,
}
}
template<class FluidSystem>
void
FIPContainer<FluidSystem>::
assignPoreVolume(const unsigned globalDofIdx,
const Scalar value)
{
this->fip_[Inplace::Phase::PoreVolume][globalDofIdx] = value;
}
template<class T> using FS = BlackOilFluidSystem<T,BlackOilDefaultIndexTraits>;
#define INSTANTIATE_TYPE(T) \

View File

@@ -86,6 +86,9 @@ public:
const Scalar gasInPlaceLiquid,
const Scalar oilInPlaceGas);
void assignPoreVolume(const unsigned globalDofIdx,
const Scalar value);
void assignVolumesSurface(const unsigned globalDofIdx,
const std::array<Scalar, numPhases>& fip);

View File

@@ -1427,8 +1427,8 @@ private:
const auto hydrocarbon = this->hydroCarbonFraction(fs);
if (! this->hydrocarbonPoreVolume_.empty()) {
this->fip_[Inplace::Phase::PoreVolume][globalDofIdx] =
totVolume * intQuants.referencePorosity();
this->fipC_.assignPoreVolume(globalDofIdx,
totVolume * intQuants.referencePorosity());
this->dynamicPoreVolume_[globalDofIdx] = pv;
this->hydrocarbonPoreVolume_[globalDofIdx] = pv * hydrocarbon;