Merge pull request #5324 from daavid00/fixMass

Bug fix massGas in place
This commit is contained in:
Bård Skaflestad 2024-05-03 09:41:14 +02:00 committed by GitHub
commit 226e90f8e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1610,7 +1610,7 @@ private:
const Scalar mM = FluidSystem::molarMass(gasCompIdx, fs.pvtRegionIndex());
const Scalar massGas = (1 - xgW) * pv * rhog;
if (!this->fip_[Inplace::Phase::CO2Mass].empty()) {
this->fip_[Inplace::Phase::CO2Mass][globalDofIdx] = massGas;
this->fip_[Inplace::Phase::CO2Mass][globalDofIdx] = massGas * sg;
}
if (!this->fip_[Inplace::Phase::CO2InGasPhaseInMob].empty()) {