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
......@@ -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;
}
}
......
Supports Markdown
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