BUG: Limiting min alpha to SMALL to avoid zero transient term of turbulence model
In certain turbulence models such as kEpsilon, kOmegaSST, etc when used in the multiphase context throw an error in the preconditioner. This is due to alpha being zero. Fixes #1789.
Showing
- src/phaseSystemModels/reactingEulerFoam/reactingMultiphaseEulerFoam/multiphaseSystem/multiphaseSystem.C 2 additions, 1 deletion...ngMultiphaseEulerFoam/multiphaseSystem/multiphaseSystem.C
- src/phaseSystemModels/reactingEulerFoam/reactingTwoPhaseEulerFoam/twoPhaseSystem/twoPhaseSystem.C 2 additions, 1 deletion...reactingTwoPhaseEulerFoam/twoPhaseSystem/twoPhaseSystem.C
-
Hi,
I think this limitation should be moved to the turbulence models themselves and not affect the alpha-U-p loop causing mass loss (see implementation of the kinetic theory, where this is done too). The scheme should enforce positivity and boundedness, so it is better to clip when using the value than accumulating the error in the alpha-U-p loop.
Best, Alberto
Edited by Alberto Passalacqua
Please register or sign in to comment