From 37bf8b4493cb37fc8ccb5c091f72f93e2a9f9a70 Mon Sep 17 00:00:00 2001 From: mattijs Date: Fri, 12 Apr 2013 12:21:58 +0100 Subject: [PATCH] ENH: layerParameters: added smoothing parameter --- .../layerParameters/layerParameters.C | 5 +++-- .../layerParameters/layerParameters.H | 10 +++++++++- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/layerParameters/layerParameters.C b/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/layerParameters/layerParameters.C index 6574ad9cbd..8444b6632c 100644 --- a/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/layerParameters/layerParameters.C +++ b/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/layerParameters/layerParameters.C @@ -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 @@ -138,6 +138,7 @@ Foam::layerParameters::layerParameters readLabel(dict.lookup("nSmoothSurfaceNormals")) ), nSmoothNormals_(readLabel(dict.lookup("nSmoothNormals"))), + nSmoothDisplacement_(dict.lookupOrDefault("nSmoothDisplacement", 0)), nSmoothThickness_(readLabel(dict.lookup("nSmoothThickness"))), maxFaceThicknessRatio_ ( @@ -278,7 +279,7 @@ Foam::layerParameters::layerParameters const keyType& key = iter().keyword(); const labelHashSet patchIDs ( - boundaryMesh.patchSet(List(1, key)) + boundaryMesh.patchSet(List(1, wordRe(key))) ); if (patchIDs.size() == 0) diff --git a/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/layerParameters/layerParameters.H b/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/layerParameters/layerParameters.H index 2578c44b68..4005dd5df8 100644 --- a/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/layerParameters/layerParameters.H +++ b/src/mesh/autoMesh/autoHexMesh/autoHexMeshDriver/layerParameters/layerParameters.H @@ -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 @@ -119,6 +119,8 @@ private: label nSmoothNormals_; + label nSmoothDisplacement_; + label nSmoothThickness_; scalar maxFaceThicknessRatio_; @@ -275,6 +277,12 @@ public: return layerTerminationCos_; } + //- Smooth internal displacement + label nSmoothDisplacement() const + { + return nSmoothDisplacement_; + } + //- Smooth layer thickness over surface patches label nSmoothThickness() const {