diff --git a/tutorials/mesh/foamyHexMesh/flange/Allrun b/tutorials/mesh/foamyHexMesh/flange/Allrun index 6936782122..fe467dd3c6 100755 --- a/tutorials/mesh/foamyHexMesh/flange/Allrun +++ b/tutorials/mesh/foamyHexMesh/flange/Allrun @@ -4,6 +4,9 @@ cd ${0%/*} || exit 1 # run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions +# copy flange surface from resources folder +cp $FOAM_TUTORIALS/resources/geometry/flange.stl.gz constant/triSurface/ + runApplication foamyHexMesh runApplication collapseEdges -latestTime -collapseFaces runApplication checkMesh -latestTime -allGeometry -allTopology diff --git a/tutorials/mesh/foamyHexMesh/flange/Allrun-parallel b/tutorials/mesh/foamyHexMesh/flange/Allrun-parallel index 4b56361f2d..2542d324d9 100755 --- a/tutorials/mesh/foamyHexMesh/flange/Allrun-parallel +++ b/tutorials/mesh/foamyHexMesh/flange/Allrun-parallel @@ -7,6 +7,9 @@ cd ${0%/*} || exit 1 # run from this directory # Get the number of processors to run on from system/decomposeParDict nProc=$(getNumberOfProcessors) +# copy flange surface from resources folder +cp $FOAM_TUTORIALS/resources/geometry/flange.stl.gz constant/triSurface/ + # Create tight-fitting background mesh runApplication blockMesh runApplication topoSet -dict system/topoSetDict-background diff --git a/tutorials/mesh/foamyHexMesh/flange/Alltest b/tutorials/mesh/foamyHexMesh/flange/Alltest index 87587982d8..ee9a8862c7 100755 --- a/tutorials/mesh/foamyHexMesh/flange/Alltest +++ b/tutorials/mesh/foamyHexMesh/flange/Alltest @@ -4,6 +4,9 @@ cd ${0%/*} || exit 1 # run from this directory # Source tutorial run functions . $WM_PROJECT_DIR/bin/tools/RunFunctions +# copy flange surface from resources folder +cp $FOAM_TUTORIALS/resources/geometry/flange.stl.gz constant/triSurface/ + # Create tight-fitting background mesh runApplication blockMesh runApplication foamyHexMesh @@ -16,4 +19,5 @@ system/collapseDict.org > system/collapseDict runApplication collapseEdges -latestTime -collapseFaces + # ----------------------------------------------------------------- end-of-file diff --git a/tutorials/mesh/foamyHexMesh/flange/constant/triSurface/README b/tutorials/mesh/foamyHexMesh/flange/constant/triSurface/README new file mode 100644 index 0000000000..dbf3b73d5f --- /dev/null +++ b/tutorials/mesh/foamyHexMesh/flange/constant/triSurface/README @@ -0,0 +1,4 @@ +Folder to house tri-surfaces + +The Allrun script copies the surface from the $FOAM_TUTORIALS/resources/geometry +folder diff --git a/tutorials/mesh/foamyHexMesh/flange/system/foamyHexMeshDict b/tutorials/mesh/foamyHexMesh/flange/system/foamyHexMeshDict index 4ba0ceafe6..cf6a3cafdf 100644 --- a/tutorials/mesh/foamyHexMesh/flange/system/foamyHexMeshDict +++ b/tutorials/mesh/foamyHexMesh/flange/system/foamyHexMeshDict @@ -22,7 +22,7 @@ FoamFile geometry { - flange.obj + flange.stl { name flange; type triSurfaceMesh;