Skip to content
Snippets Groups Projects
Commit 8599a55d authored by Henry's avatar Henry
Browse files

PaSR: ensure the sqrt operates on a positive number

parent 600d8dca
Branches
Tags
No related merge requests found
......@@ -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)
{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment