From aa42bb9a285f97c108dffed57d7ddd1ecda999c4 Mon Sep 17 00:00:00 2001 From: danielque Date: Tue, 1 Mar 2022 10:13:52 +0100 Subject: [PATCH] increase stability of cfdemSolverRhoPimpleChem analogous to 16560cfe4f9622fd49f2a5f8c9eb9ec766142d44 VSMALL is typically DBL_MIN (1e-37 or smaller) which is actually too small here --- applications/solvers/cfdemSolverRhoPimpleChem/YEqn.H | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/applications/solvers/cfdemSolverRhoPimpleChem/YEqn.H b/applications/solvers/cfdemSolverRhoPimpleChem/YEqn.H index e4d58344..df659248 100644 --- a/applications/solvers/cfdemSolverRhoPimpleChem/YEqn.H +++ b/applications/solvers/cfdemSolverRhoPimpleChem/YEqn.H @@ -60,13 +60,13 @@ tmp > mvConvection if (propagateInertSpecie) { - if (inertIndex!=-1) Yt /= (1-Y[inertIndex] + VSMALL); + if (inertIndex!=-1) Yt /= (1-Y[inertIndex] + ROOTVSMALL); forAll(Y,i) { if (i!=inertIndex) { volScalarField& Yi = Y[i]; - Yi = Yi/(Yt+VSMALL); + Yi = Yi/(Yt+ROOTVSMALL); } } }