We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9956f1 commit d8e8951Copy full SHA for d8e8951
src/thermodynamicModels/derived/multiphaseFluidBlastThermo/multiphaseFluidBlastThermo.C
@@ -765,10 +765,18 @@ Foam::multiphaseFluidBlastThermo::he
765
const volScalarField& T
766
) const
767
{
768
- tmp<volScalarField> tmpF(volumeFractions_[0]*thermos_[0].he(p, T));
+ tmp<volScalarField> tmpF
769
+ (
770
+ volumeFractions_[0]
771
+ *rhos_[0]
772
+ *thermos_[0].he(p, T)
773
+ );
774
for (label phasei = 1; phasei < thermos_.size(); phasei++)
775
- tmpF.ref() += volumeFractions_[phasei]*thermos_[phasei].he(p, T);
776
+ tmpF.ref() +=
777
+ volumeFractions_[phasei]
778
+ *rhos_[phasei]
779
+ *thermos_[phasei].he(p, T);
780
}
781
return massNormalise(tmpF);
782
0 commit comments