mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
BUG: nutUBlendedWallFunction: avoid pressure spikes (fixes #2299)
This commit is contained in:
committed by
Andrew Heather
parent
7552608e08
commit
2296d91423
@ -5,7 +5,7 @@
|
|||||||
\\ / A nd | www.openfoam.com
|
\\ / A nd | www.openfoam.com
|
||||||
\\/ M anipulation |
|
\\/ M anipulation |
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
Copyright (C) 2016-2020 OpenCFD Ltd.
|
Copyright (C) 2016-2022 OpenCFD Ltd.
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
License
|
License
|
||||||
This file is part of OpenFOAM.
|
This file is part of OpenFOAM.
|
||||||
@ -103,7 +103,8 @@ Foam::nutUBlendedWallFunctionFvPatchScalarField::calcUTau
|
|||||||
{
|
{
|
||||||
const scalar yPlus = y[facei]*ut/nuw[facei];
|
const scalar yPlus = y[facei]*ut/nuw[facei];
|
||||||
const scalar uTauVis = magUp[facei]/yPlus;
|
const scalar uTauVis = magUp[facei]/yPlus;
|
||||||
const scalar uTauLog = kappa_*magUp[facei]/log(E_*yPlus);
|
const scalar uTauLog =
|
||||||
|
kappa_*magUp[facei]/log(max(E_*yPlus, 1 + 1e-4));
|
||||||
|
|
||||||
const scalar utNew =
|
const scalar utNew =
|
||||||
pow(pow(uTauVis, n_) + pow(uTauLog, n_), 1.0/n_);
|
pow(pow(uTauVis, n_) + pow(uTauLog, n_), 1.0/n_);
|
||||||
|
|||||||
Reference in New Issue
Block a user