From 075c358fb902cb38e0fbe5ba171c28a89d065449 Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Tue, 22 Aug 2023 16:48:11 +0100 Subject: [PATCH] snappyHexMeshConfig: layers can be specified for individual surfaces --- .../snappyHexMeshConfig/snappyHexMeshConfig.C | 21 ++++++---- .../snappyHexMeshConfiguration.C | 38 ++++++++++++------- .../snappyHexMeshConfiguration.H | 6 +-- 3 files changed, 42 insertions(+), 23 deletions(-) diff --git a/applications/utilities/preProcessing/snappyHexMeshConfig/snappyHexMeshConfig.C b/applications/utilities/preProcessing/snappyHexMeshConfig/snappyHexMeshConfig.C index 8616cd2b22..c005214a11 100644 --- a/applications/utilities/preProcessing/snappyHexMeshConfig/snappyHexMeshConfig.C +++ b/applications/utilities/preProcessing/snappyHexMeshConfig/snappyHexMeshConfig.C @@ -86,8 +86,8 @@ Description '-refinementBoxes' for quick, box-shaped refinement regions specified by min and max bounds; '-refinementDists' for distance-based refinement; and '-nCellsBetweenLevels' to control the transition between refinement - levels. A '-layers' option specifies additional layers of cells at wall - boundaries. The insidePoint parameter is set to '(0 0 0)' by default but can + levels. A '-layers' option controls additional layers of cells at specified + surfaces. The insidePoint parameter is set to '(0 0 0)' by default but can be overridden using the '-insidePoint' option. Usage @@ -137,8 +137,8 @@ Usage - \par -explicitFeatures, Use explicit feature capturing, default is implicit - - \par -layers \ - Specify surface layers at wall boundaries, default 0 + - \par -layers \ + Number of layers on specified surfaces, e.g. '((car 3) (ground 4))' - \par -firstLayerThickness \ Specify the thickness of the near wall cells for layer addition @@ -322,8 +322,8 @@ int main(int argc, char *argv[]) argList::addOption ( "layers", - "int", - "specify surface layers at wall boundaries, default 0" + "entry", + "number of layers on specified surfaces, e.g. '((car 3) (ground 4))'" ); argList::addOption @@ -592,7 +592,14 @@ int main(int argc, char *argv[]) const bool explicitFeatures(args.optionFound("explicitFeatures")); - const label layers(args.optionLookupOrDefault