multiphaseEuler: Prevent zero blending factors when alpha is zero
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user