Skip to content

Commit d8e8951

Browse files
committed
BUG: Multiply phase averaged he by rhos
1 parent c9956f1 commit d8e8951

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

src/thermodynamicModels/derived/multiphaseFluidBlastThermo/multiphaseFluidBlastThermo.C

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -765,10 +765,18 @@ Foam::multiphaseFluidBlastThermo::he
765765
const volScalarField& T
766766
) const
767767
{
768-
tmp<volScalarField> tmpF(volumeFractions_[0]*thermos_[0].he(p, T));
768+
tmp<volScalarField> tmpF
769+
(
770+
volumeFractions_[0]
771+
*rhos_[0]
772+
*thermos_[0].he(p, T)
773+
);
769774
for (label phasei = 1; phasei < thermos_.size(); phasei++)
770775
{
771-
tmpF.ref() += volumeFractions_[phasei]*thermos_[phasei].he(p, T);
776+
tmpF.ref() +=
777+
volumeFractions_[phasei]
778+
*rhos_[phasei]
779+
*thermos_[phasei].he(p, T);
772780
}
773781
return massNormalise(tmpF);
774782
}

0 commit comments

Comments
 (0)