From facb1457f2e7d1482b227a6f2209d46ddcc21057 Mon Sep 17 00:00:00 2001 From: mattijs Date: Wed, 22 Jun 2016 10:04:48 +0100 Subject: [PATCH] ENH: snappyHexMesh: move locationInMesh away from rotor. snappyHexMesh filters out zero-sized patches so no more createPatches. Fixes part of #152 --- .../incompressible/simpleFoam/rotorDisk/Allrun | 1 - .../simpleFoam/rotorDisk/system/snappyHexMeshDict | 14 +++----------- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/tutorials/incompressible/simpleFoam/rotorDisk/Allrun b/tutorials/incompressible/simpleFoam/rotorDisk/Allrun index 14d69c2a9a..f6f1258231 100755 --- a/tutorials/incompressible/simpleFoam/rotorDisk/Allrun +++ b/tutorials/incompressible/simpleFoam/rotorDisk/Allrun @@ -8,7 +8,6 @@ cd ${0%/*} || exit 1 # Run from this directory runApplication blockMesh runApplication surfaceFeatureExtract runApplication snappyHexMesh -overwrite -runApplication createPatch -overwrite runApplication $(getApplication) diff --git a/tutorials/incompressible/simpleFoam/rotorDisk/system/snappyHexMeshDict b/tutorials/incompressible/simpleFoam/rotorDisk/system/snappyHexMeshDict index 81afb27c64..35b0bb756f 100644 --- a/tutorials/incompressible/simpleFoam/rotorDisk/system/snappyHexMeshDict +++ b/tutorials/incompressible/simpleFoam/rotorDisk/system/snappyHexMeshDict @@ -101,8 +101,9 @@ castellatedMeshControls } } - locationInMesh (1e-5 1e-5 1e-5); // Offset from (0 0 0) to avoid - // coinciding with face or edge + locationInMesh (1e-5 -1e-2 1e-5);// Offset from (0 0 0) to avoid + // coinciding with face or edge and keep + // away from disk itself } snapControls @@ -120,9 +121,6 @@ addLayersControls expansionRatio 1.2; finalLayerThickness 0.5; minThickness 1e-3; -// firstLayerThickness 0.01; - -// maxThicknessToMedialRatio 0.6; } meshQualityControls @@ -130,12 +128,6 @@ meshQualityControls // minTetQuality -1e+30; } -writeFlags -( - scalarLevels - layerSets - layerFields -); mergeTolerance 1e-6;