mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: nutUBlended wall function - added protection for uTau. See #696
This commit is contained in:
@ -93,6 +93,8 @@ Foam::nutUBlendedWallFunctionFvPatchScalarField::calcUTau
|
||||
forAll(uTaup, facei)
|
||||
{
|
||||
scalar ut = sqrt((nutw[facei] + nuw[facei])*magGradU[facei]);
|
||||
if (mag(ut) > ROOTVSMALL)
|
||||
{
|
||||
scalar error = GREAT;
|
||||
label iter = 0;
|
||||
while (iter++ < 10 && error > 0.001)
|
||||
@ -105,6 +107,7 @@ Foam::nutUBlendedWallFunctionFvPatchScalarField::calcUTau
|
||||
error = mag(ut - utNew)/(ut + ROOTVSMALL);
|
||||
ut = 0.5*(ut + utNew);
|
||||
}
|
||||
}
|
||||
uTaup[facei] = ut;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user