BUG: omegaWallFunction: add missing corner weight (fixes #3003)

This commit is contained in:
Kutalmis Bercin
2023-10-25 11:51:58 +01:00
committed by Andrew Heather
parent a737240e13
commit 64aee19823

View File

@ -6,7 +6,7 @@
\\/ M anipulation | \\/ M anipulation |
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
Copyright (C) 2011-2016, 2019 OpenFOAM Foundation Copyright (C) 2011-2016, 2019 OpenFOAM Foundation
Copyright (C) 2017-2022 OpenCFD Ltd. Copyright (C) 2017-2023 OpenCFD Ltd.
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
License License
This file is part of OpenFOAM. This file is part of OpenFOAM.
@ -249,7 +249,7 @@ void Foam::omegaWallFunctionFvPatchScalarField::calculate
case blenderType::MAX: case blenderType::MAX:
{ {
// (PH:Eq. 27) // (PH:Eq. 27)
omega0[celli] += max(omegaVis, omegaLog); omega0[celli] += w*max(omegaVis, omegaLog);
break; break;
} }