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
|
||||
\\ / O peration | Website: https://openfoam.org
|
||||
\\ / A nd | Copyright (C) 2014-2023 OpenFOAM Foundation
|
||||
\\ / A nd | Copyright (C) 2014-2024 OpenFOAM Foundation
|
||||
\\/ M anipulation |
|
||||
-------------------------------------------------------------------------------
|
||||
License
|
||||
@ -176,7 +176,7 @@ Foam::tmp<Foam::volScalarField> Foam::blendingMethod::x
|
||||
return
|
||||
systemSet == 0b00
|
||||
? 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