mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Modifying dsmcFields to allow negative rhoNMean values, only cheching for min(mag(rhoNMean)) < VSMALL
This commit is contained in:
@ -137,7 +137,7 @@ void Foam::dsmcFields::write()
|
|||||||
iDofMeanName
|
iDofMeanName
|
||||||
);
|
);
|
||||||
|
|
||||||
if (min(rhoNMean).value() > VSMALL)
|
if (min(mag(rhoNMean)).value() > VSMALL)
|
||||||
{
|
{
|
||||||
Info<< "Calculating dsmcFields." << endl;
|
Info<< "Calculating dsmcFields." << endl;
|
||||||
|
|
||||||
@ -223,10 +223,9 @@ void Foam::dsmcFields::write()
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Info<< "Small or negative value (" << min(rhoNMean)
|
Info<< "Small value (" << min(mag(rhoNMean))
|
||||||
<< ") found in rhoNMean field. "
|
<< ") found in rhoNMean field. "
|
||||||
<< "Not calculating dsmcFields to avoid division by zero "
|
<< "Not calculating dsmcFields to avoid division by zero."
|
||||||
<< "or invalid results."
|
|
||||||
<< endl;
|
<< endl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user