Skip to content
Snippets Groups Projects
Commit 8b90aa52 authored by Sergio Ferraris's avatar Sergio Ferraris
Browse files

ENH: Adding FPE stabilization to Edash for nutkAtmRoughWall

parent 92629f2c
Branches
Tags
No related merge requests found
......@@ -2,7 +2,7 @@
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration |
\\ / A nd | Copyright (C) 2011-2012 OpenFOAM Foundation
\\ / A nd | Copyright (C) 2011-2013 OpenFOAM Foundation
\\/ M anipulation |
-------------------------------------------------------------------------------
License
......@@ -63,10 +63,10 @@ tmp<scalarField> nutkAtmRoughWallFunctionFvPatchScalarField::calcNut() const
scalar uStar = Cmu25*sqrt(k[faceCellI]);
scalar yPlus = uStar*y[faceI]/nuw[faceI];
scalar Edash = (y[faceI] + z0_[faceI])/z0_[faceI];
scalar Edash = (y[faceI] + z0_[faceI])/(z0_[faceI] + 1e-4);
nutw[faceI] =
nuw[faceI]*(yPlus*kappa_/log(max(Edash, 1+1e-4)) - 1);
nuw[faceI]*(yPlus*kappa_/log(max(Edash, 1 + 1e-4)) - 1);
if (debug)
{
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment