PaSR: ensure the sqrt operates on a positive number
This commit is contained in:
parent
6884300a00
commit
0003b4b008
1 changed files with 1 additions and 1 deletions
|
|
@ -84,7 +84,7 @@ void Foam::combustionModels::PaSR<Type>::correct()
|
|||
forAll(epsilon, i)
|
||||
{
|
||||
scalar tk =
|
||||
Cmix_*Foam::sqrt(muEff[i]/rho[i]/(epsilon[i] + SMALL));
|
||||
Cmix_*sqrt(max(muEff[i]/rho[i]/(epsilon[i] + SMALL), 0));
|
||||
|
||||
if (tk > SMALL)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue