From 9821123c86f17d3c4c0dbb5d86a1345214fc7886 Mon Sep 17 00:00:00 2001 From: mattijs <mattijs> Date: Mon, 2 Apr 2012 17:58:45 +0100 Subject: [PATCH] ENH: snappyMultiRegionHeater: adapt for surfaceFeatureExtractDict --- .../snappyMultiRegionHeater/Allrun | 11 +-- .../system/surfaceFeatureExtractDict | 99 +++++++++++++++++++ 2 files changed, 100 insertions(+), 10 deletions(-) create mode 100644 tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/system/surfaceFeatureExtractDict diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/Allrun b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/Allrun index e6b1c579ee9..7fa0f0dc780 100755 --- a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/Allrun +++ b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/Allrun @@ -8,16 +8,7 @@ cd ${0%/*} || exit 1 # run from this directory rm -rf constant/polyMesh/sets runApplication blockMesh -runApplication surfaceFeatureExtract -includedAngle 150 constant/triSurface/bottomAir.stl bottomAir -mv log.surfaceFeatureExtract log.surfaceFeatureExtract.bottom -runApplication surfaceFeatureExtract -includedAngle 150 constant/triSurface/heater.stl heater -mv log.surfaceFeatureExtract log.surfaceFeatureExtract.heater -runApplication surfaceFeatureExtract -includedAngle 150 constant/triSurface/leftSolid.stl leftSolid -mv log.surfaceFeatureExtract log.surfaceFeatureExtract.leftSolid -runApplication surfaceFeatureExtract -includedAngle 150 constant/triSurface/rightSolid.stl rightSolid -mv log.surfaceFeatureExtract log.surfaceFeatureExtract.rightSolid -runApplication surfaceFeatureExtract -includedAngle 150 constant/triSurface/topAir.stl topAir -mv log.surfaceFeatureExtract log.surfaceFeatureExtract.topAir +runApplication surfaceFeatureExtract runApplication snappyHexMesh -overwrite runApplication splitMeshRegions -cellZones -overwrite diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/system/surfaceFeatureExtractDict b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/system/surfaceFeatureExtractDict new file mode 100644 index 00000000000..58e3443201a --- /dev/null +++ b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/system/surfaceFeatureExtractDict @@ -0,0 +1,99 @@ +/*--------------------------------*- C++ -*----------------------------------*\ +| ========= | | +| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | +| \\ / O peration | Version: dev | +| \\ / A nd | Web: www.OpenFOAM.org | +| \\/ M anipulation | | +\*---------------------------------------------------------------------------*/ +FoamFile +{ + version 2.0; + format ascii; + class dictionary; + object surfaceFeatureExtractDict; +} +// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // + +bottomAir.stl +{ + extractionMethod extractFromSurface; + + extractFromSurface + { + // Mark edges whose adjacent surface normals are at an angle less + // than includedAngle as features + // - 0 : selects no edges + // - 180: selects all edges + includedAngle 150; + } + + // Write options + writeFeatureEdgeMesh yes; +} +heater.stl +{ + extractionMethod extractFromSurface; + + extractFromSurface + { + // Mark edges whose adjacent surface normals are at an angle less + // than includedAngle as features + // - 0 : selects no edges + // - 180: selects all edges + includedAngle 150; + } + + // Write options + writeFeatureEdgeMesh yes; +} +leftSolid.stl +{ + extractionMethod extractFromSurface; + + extractFromSurface + { + // Mark edges whose adjacent surface normals are at an angle less + // than includedAngle as features + // - 0 : selects no edges + // - 180: selects all edges + includedAngle 150; + } + + // Write options + writeFeatureEdgeMesh yes; +} +rightSolid.stl +{ + extractionMethod extractFromSurface; + + extractFromSurface + { + // Mark edges whose adjacent surface normals are at an angle less + // than includedAngle as features + // - 0 : selects no edges + // - 180: selects all edges + includedAngle 150; + } + + // Write options + writeFeatureEdgeMesh yes; +} +topAir.stl +{ + extractionMethod extractFromSurface; + + extractFromSurface + { + // Mark edges whose adjacent surface normals are at an angle less + // than includedAngle as features + // - 0 : selects no edges + // - 180: selects all edges + includedAngle 150; + } + + // Write options + writeFeatureEdgeMesh yes; +} + + +// ************************************************************************* // -- GitLab