multiphaseEuler: Prevent zero blending factors when alpha is zero

This commit is contained in:
Will Bainbridge
2024-06-14 17:38:02 +01:00
parent 16f82f2da0
commit cdafb7e42b

View File

@ -2,7 +2,7 @@
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org \\ / O peration | Website: https://openfoam.org
\\ / A nd | Copyright (C) 2014-2023 OpenFOAM Foundation \\ / A nd | Copyright (C) 2014-2024 OpenFOAM Foundation
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
@ -176,7 +176,7 @@ Foam::tmp<Foam::volScalarField> Foam::blendingMethod::x
return return
systemSet == 0b00 systemSet == 0b00
? alpha(alphas, phaseSet, false) ? alpha(alphas, phaseSet, false)
: alpha(alphas, phaseSet, false)/alpha(alphas, systemSet, true); : alpha(alphas, phaseSet, true)/alpha(alphas, systemSet, true);
} }