diff --git a/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/Allrun b/tutorials/heatTransfer/chtMultiRegionFoam/snappyMultiRegionHeater/Allrun index e6b1c579ee9927e64f22c5d3c33d66997b84fb4b..7fa0f0dc7802710477c3f11c28bb974503cd17f4 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 0000000000000000000000000000000000000000..58e3443201aacc07737b0b0b7085db45d7d68d28 --- /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; +} + + +// ************************************************************************* //