Skip to content
Snippets Groups Projects
Commit 6d265b0a authored by Graham's avatar Graham
Browse files

Modifying dsmcFields to allow negative rhoNMean values, only cheching for...

Modifying dsmcFields to allow negative rhoNMean values, only cheching for min(mag(rhoNMean)) < VSMALL
parent 6dc53f42
No related branches found
No related tags found
No related merge requests found
......@@ -137,7 +137,7 @@ void Foam::dsmcFields::write()
iDofMeanName
);
if (min(rhoNMean).value() > VSMALL)
if (min(mag(rhoNMean)).value() > VSMALL)
{
Info<< "Calculating dsmcFields." << endl;
......@@ -223,10 +223,9 @@ void Foam::dsmcFields::write()
}
else
{
Info<< "Small or negative value (" << min(rhoNMean)
Info<< "Small value (" << min(mag(rhoNMean))
<< ") found in rhoNMean field. "
<< "Not calculating dsmcFields to avoid division by zero "
<< "or invalid results."
<< "Not calculating dsmcFields to avoid division by zero."
<< endl;
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment