From a1036ec01275427b031f01da5439087bce269a33 Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Fri, 11 Jun 2021 09:34:43 +0100 Subject: [PATCH] templates: usability improvements in snappyHexMeshDict --- .../mesh/generation/snappyHexMeshDict.cfg | 2 +- .../closedVolume/system/snappyHexMeshDict | 12 ++++-------- .../system/snappyHexMeshDict | 8 ++++---- .../system/snappyHexMeshDict | 16 ++++++++-------- .../inflowOutflow/system/snappyHexMeshDict | 16 ++++++++-------- .../system/snappyHexMeshDict | 16 ++++++++-------- .../singleFluidCHT/system/snappyHexMeshDict | 8 ++++---- 7 files changed, 37 insertions(+), 41 deletions(-) diff --git a/etc/caseDicts/mesh/generation/snappyHexMeshDict.cfg b/etc/caseDicts/mesh/generation/snappyHexMeshDict.cfg index a1f9ba7ad4..9fe77ae767 100644 --- a/etc/caseDicts/mesh/generation/snappyHexMeshDict.cfg +++ b/etc/caseDicts/mesh/generation/snappyHexMeshDict.cfg @@ -53,7 +53,7 @@ addLayersControls nSmoothNormals 3; nSmoothThickness 10; maxFaceThicknessRatio 0.5; - maxThicknessToMedialRatio 0.3; + maxThicknessToMedialRatio 0.6; minMedialAxisAngle 90; nMedialAxisIter 10; diff --git a/etc/templates/closedVolume/system/snappyHexMeshDict b/etc/templates/closedVolume/system/snappyHexMeshDict index 6df81a739b..e08cd3c579 100644 --- a/etc/templates/closedVolume/system/snappyHexMeshDict +++ b/etc/templates/closedVolume/system/snappyHexMeshDict @@ -26,10 +26,6 @@ geometry { type triSurfaceMesh; file "CAD.obj"; - regions - { - { name ; } - } } }; @@ -65,8 +61,8 @@ castellatedMeshControls snapControls { -// explicitFeatureSnap true; -// implicitFeatureSnap false; +// explicitFeatureSnap on; +// implicitFeatureSnap off; } addLayersControls @@ -79,13 +75,13 @@ addLayersControls } } - relativeSizes true; // false, usually with firstLayerThickness + relativeSizes on; // off, usually with firstLayerThickness expansionRatio 1.2; finalLayerThickness 0.5; minThickness 1e-3; // firstLayerThickness 0.01; -// maxThicknessToMedialRatio 0.6; +// maxThicknessToMedialRatio 0.3; } writeFlags diff --git a/etc/templates/closedVolumeRotating/system/snappyHexMeshDict b/etc/templates/closedVolumeRotating/system/snappyHexMeshDict index faa3445fda..4444073374 100644 --- a/etc/templates/closedVolumeRotating/system/snappyHexMeshDict +++ b/etc/templates/closedVolumeRotating/system/snappyHexMeshDict @@ -88,8 +88,8 @@ castellatedMeshControls snapControls { - explicitFeatureSnap true; - implicitFeatureSnap false; +// explicitFeatureSnap on; +// implicitFeatureSnap off; } addLayersControls @@ -102,13 +102,13 @@ addLayersControls } } - relativeSizes true; // false, usually with firstLayerThickness + relativeSizes on; // off, usually with firstLayerThickness expansionRatio 1.2; finalLayerThickness 0.5; minThickness 1e-3; // firstLayerThickness 0.01; -// maxThicknessToMedialRatio 0.6; +// maxThicknessToMedialRatio 0.3; } writeFlags diff --git a/etc/templates/compressibleInflowOutflow/system/snappyHexMeshDict b/etc/templates/compressibleInflowOutflow/system/snappyHexMeshDict index 981db9b37d..f9c1894dbc 100644 --- a/etc/templates/compressibleInflowOutflow/system/snappyHexMeshDict +++ b/etc/templates/compressibleInflowOutflow/system/snappyHexMeshDict @@ -28,8 +28,8 @@ geometry file "CAD.obj"; regions { - { name inlet; } - { name outlet; } + { name inlet; } + { name outlet; } } } }; @@ -50,7 +50,7 @@ castellatedMeshControls regions { - + { level (2 2); patchInfo @@ -60,7 +60,7 @@ castellatedMeshControls } } - + { level (2 2); patchInfo @@ -89,8 +89,8 @@ castellatedMeshControls snapControls { -// explicitFeatureSnap true; -// implicitFeatureSnap false; +// explicitFeatureSnap on; +// implicitFeatureSnap off; } addLayersControls @@ -103,13 +103,13 @@ addLayersControls } } - relativeSizes true; // false, usually with firstLayerThickness + relativeSizes on; // off, usually with firstLayerThickness expansionRatio 1.2; finalLayerThickness 0.5; minThickness 1e-3; // firstLayerThickness 0.01; -// maxThicknessToMedialRatio 0.6; +// maxThicknessToMedialRatio 0.3; } writeFlags diff --git a/etc/templates/inflowOutflow/system/snappyHexMeshDict b/etc/templates/inflowOutflow/system/snappyHexMeshDict index 981db9b37d..f9c1894dbc 100644 --- a/etc/templates/inflowOutflow/system/snappyHexMeshDict +++ b/etc/templates/inflowOutflow/system/snappyHexMeshDict @@ -28,8 +28,8 @@ geometry file "CAD.obj"; regions { - { name inlet; } - { name outlet; } + { name inlet; } + { name outlet; } } } }; @@ -50,7 +50,7 @@ castellatedMeshControls regions { - + { level (2 2); patchInfo @@ -60,7 +60,7 @@ castellatedMeshControls } } - + { level (2 2); patchInfo @@ -89,8 +89,8 @@ castellatedMeshControls snapControls { -// explicitFeatureSnap true; -// implicitFeatureSnap false; +// explicitFeatureSnap on; +// implicitFeatureSnap off; } addLayersControls @@ -103,13 +103,13 @@ addLayersControls } } - relativeSizes true; // false, usually with firstLayerThickness + relativeSizes on; // off, usually with firstLayerThickness expansionRatio 1.2; finalLayerThickness 0.5; minThickness 1e-3; // firstLayerThickness 0.01; -// maxThicknessToMedialRatio 0.6; +// maxThicknessToMedialRatio 0.3; } writeFlags diff --git a/etc/templates/inflowOutflowRotating/system/snappyHexMeshDict b/etc/templates/inflowOutflowRotating/system/snappyHexMeshDict index 83558c0cfa..7af586c19d 100644 --- a/etc/templates/inflowOutflowRotating/system/snappyHexMeshDict +++ b/etc/templates/inflowOutflowRotating/system/snappyHexMeshDict @@ -28,8 +28,8 @@ geometry file "fixed.obj"; regions { - { name inlet; } - { name outlet; } + { name inlet; } + { name outlet; } } } rotating @@ -63,7 +63,7 @@ castellatedMeshControls regions { - + { level (2 2); patchInfo @@ -73,7 +73,7 @@ castellatedMeshControls } } - + { level (2 2); patchInfo @@ -117,8 +117,8 @@ castellatedMeshControls snapControls { - explicitFeatureSnap true; - implicitFeatureSnap false; +// explicitFeatureSnap on; +// implicitFeatureSnap off; } addLayersControls @@ -131,13 +131,13 @@ addLayersControls } } - relativeSizes true; // false, usually with firstLayerThickness + relativeSizes on; // off, usually with firstLayerThickness expansionRatio 1.2; finalLayerThickness 0.5; minThickness 1e-3; // firstLayerThickness 0.01; -// maxThicknessToMedialRatio 0.6; +// maxThicknessToMedialRatio 0.3; } writeFlags diff --git a/etc/templates/singleFluidCHT/system/snappyHexMeshDict b/etc/templates/singleFluidCHT/system/snappyHexMeshDict index 7d1a57d665..11f47a38c4 100644 --- a/etc/templates/singleFluidCHT/system/snappyHexMeshDict +++ b/etc/templates/singleFluidCHT/system/snappyHexMeshDict @@ -108,8 +108,8 @@ castellatedMeshControls snapControls { - explicitFeatureSnap true; - implicitFeatureSnap false; +// explicitFeatureSnap on; +// implicitFeatureSnap off; } addLayersControls @@ -122,13 +122,13 @@ addLayersControls } } - relativeSizes true; // false, usually with firstLayerThickness + relativeSizes on; // off, usually with firstLayerThickness expansionRatio 1.2; finalLayerThickness 0.5; minThickness 1e-3; // firstLayerThickness 0.01; -// maxThicknessToMedialRatio 0.6; +// maxThicknessToMedialRatio 0.3; } writeFlags