mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
increase stability of cfdemSolverRhoPimpleChem
analogous to 16560cfe4f
VSMALL is typically DBL_MIN (1e-37 or smaller) which is actually too
small here
This commit is contained in:
@ -60,13 +60,13 @@ tmp<fv::convectionScheme<scalar> > mvConvection
|
|||||||
|
|
||||||
if (propagateInertSpecie)
|
if (propagateInertSpecie)
|
||||||
{
|
{
|
||||||
if (inertIndex!=-1) Yt /= (1-Y[inertIndex] + VSMALL);
|
if (inertIndex!=-1) Yt /= (1-Y[inertIndex] + ROOTVSMALL);
|
||||||
forAll(Y,i)
|
forAll(Y,i)
|
||||||
{
|
{
|
||||||
if (i!=inertIndex)
|
if (i!=inertIndex)
|
||||||
{
|
{
|
||||||
volScalarField& Yi = Y[i];
|
volScalarField& Yi = Y[i];
|
||||||
Yi = Yi/(Yt+VSMALL);
|
Yi = Yi/(Yt+ROOTVSMALL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user