mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Modified do-while for U generation, incorrect use of continue.
This commit is contained in:
@ -344,11 +344,13 @@ void Foam::FreeStream<CloudType>::inflow()
|
|||||||
|
|
||||||
if (uNormal < 0.0)
|
if (uNormal < 0.0)
|
||||||
{
|
{
|
||||||
continue;
|
P = -1;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
P = 2.0*uNormal/uNormProbCoeffA
|
P = 2.0*uNormal/uNormProbCoeffA
|
||||||
*exp(uNormProbCoeffB - sqr(uNormalThermal));
|
*exp(uNormProbCoeffB - sqr(uNormalThermal));
|
||||||
|
}
|
||||||
|
|
||||||
} while (P < rndGen.scalar01());
|
} while (P < rndGen.scalar01());
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user