diff --git a/tutorials/heatTransfer/buoyantSimpleFoam/externalCoupledCavity/Allmesh b/tutorials/heatTransfer/buoyantSimpleFoam/externalCoupledCavity/Allmesh new file mode 100755 index 0000000000..c699eef1ae --- /dev/null +++ b/tutorials/heatTransfer/buoyantSimpleFoam/externalCoupledCavity/Allmesh @@ -0,0 +1,10 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory + +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +runApplication blockMesh +runApplication createExternalCoupledPatchGeometry T + +#------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/RAS/oscillatingInletACMI2D/Allmesh b/tutorials/incompressible/pimpleFoam/RAS/oscillatingInletACMI2D/Allmesh new file mode 100755 index 0000000000..22c5c016de --- /dev/null +++ b/tutorials/incompressible/pimpleFoam/RAS/oscillatingInletACMI2D/Allmesh @@ -0,0 +1,14 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory + +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +runApplication blockMesh + +runApplication topoSet -constant + +# Split the mesh to generate the ACMI coupled patches +runApplication createBaffles -overwrite + +#------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/pimpleFoam/RAS/propeller/Allmesh b/tutorials/incompressible/pimpleFoam/RAS/propeller/Allmesh new file mode 100755 index 0000000000..cd4ebcd8c7 --- /dev/null +++ b/tutorials/incompressible/pimpleFoam/RAS/propeller/Allmesh @@ -0,0 +1,26 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory + +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +# Copy propeller surface from resources directory +cp $FOAM_TUTORIALS/resources/geometry/propellerTip.obj.gz constant/triSurface/ + +# Meshing +runApplication blockMesh +runApplication surfaceFeatures +runApplication snappyHexMesh -overwrite + +# Generate face/cell sets and zones +runApplication topoSet -dict system/createInletOutletSets.topoSetDict + +# Create the inlet/outlet and AMI patches +runApplication createPatch -overwrite + +runApplication renumberMesh -noFields -overwrite + +# Test by running moveDynamicMes +#runApplication moveDynamicMesh -checkAMI + +#------------------------------------------------------------------------------ diff --git a/tutorials/incompressible/porousSimpleFoam/straightDuctImplicit/Allmesh b/tutorials/incompressible/porousSimpleFoam/straightDuctImplicit/Allmesh new file mode 100755 index 0000000000..9a95d04cbd --- /dev/null +++ b/tutorials/incompressible/porousSimpleFoam/straightDuctImplicit/Allmesh @@ -0,0 +1,30 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory + +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +runApplication surfaceFeatures + +runApplication foamyHexMesh + +# Collapse only patch faces from incomplete conformation +runApplication -s indirectPatchFaces \ + collapseEdges -collapseFaceSet indirectPatchFaces -latestTime -overwrite + +# Collapse small edges and sliver faces +runApplication -s collapseFaces \ + collapseEdges -collapseFaces -latestTime -overwrite + +runApplication checkMesh -allTopology -allGeometry -latestTime + +latestTime=`foamListTimes -latestTime` + +# Move the mesh into polyMesh +rm -rf constant/polyMesh +mv "${latestTime}"/polyMesh constant + +# Clean up intermediate meshes +rm -r [1-9]* + +#------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFoam/cylinder/Allmesh b/tutorials/lagrangian/reactingParcelFoam/cylinder/Allmesh new file mode 100755 index 0000000000..8df6b2cd61 --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/cylinder/Allmesh @@ -0,0 +1,14 @@ +#!/bin/sh +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +runApplication blockMesh + +#runApplication setSet -batch wallFilmRegion.setSet +runApplication topoSet + +runApplication extrudeToRegionMesh -overwrite + +paraFoam -touch +paraFoam -touch -region wallFilmRegion + +#------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFoam/hotBoxes/Allmesh b/tutorials/lagrangian/reactingParcelFoam/hotBoxes/Allmesh new file mode 100755 index 0000000000..c8d4217fcb --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/hotBoxes/Allmesh @@ -0,0 +1,34 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory + +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +rm -rf 0 + +# create the underlying block mesh +runApplication blockMesh + +# create the set for the obstacles +runApplication topoSet + +# create the obstacles - add obstacle patches to wallFilm patch +runApplication subsetMesh c0 -patch wallFilm -overwrite + +# split the obstacle patches into cube[1-6]_patch[1-6] +runApplication ./patchifyObstacles + +# Create the wall film region via extrusion +runApplication extrudeToRegionMesh -overwrite + +# Copy the system settings over to the wall film region +rm -rf system/wallFilmRegion +cp -r system/wallFilmRegion.orig system/wallFilmRegion + +find ./0 -maxdepth 1 -type f -exec \ + sed -i -e "s/wallFilm/\"(region0_to.*)\"/g" {} \; + +paraFoam -touch +paraFoam -touch -region wallFilmRegion + +#------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFoam/rivuletPanel/Allmesh b/tutorials/lagrangian/reactingParcelFoam/rivuletPanel/Allmesh new file mode 100755 index 0000000000..1b494b5aa3 --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/rivuletPanel/Allmesh @@ -0,0 +1,14 @@ +#!/bin/sh +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +runApplication blockMesh + +#runApplication setSet -batch wallFilmRegion.setSet +runApplication topoSet -dict system/wallFilmRegion.topoSet + +runApplication extrudeToRegionMesh -overwrite + +paraFoam -touch +paraFoam -touch -region wallFilmRegion + +#------------------------------------------------------------------------------ diff --git a/tutorials/lagrangian/reactingParcelFoam/splashPanel/Allmesh b/tutorials/lagrangian/reactingParcelFoam/splashPanel/Allmesh new file mode 100755 index 0000000000..81aad711d5 --- /dev/null +++ b/tutorials/lagrangian/reactingParcelFoam/splashPanel/Allmesh @@ -0,0 +1,31 @@ +#!/bin/sh +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +runApplication blockMesh + +#If using batch mode +#runApplication -s wallFilmRegion \ +# setSet -batch wallFilmRegion.setSet + +#If using dictionary mode +runApplication -s wallFilmRegion \ + topoSet -dict system/wallFilmRegion.topoSet + +runApplication extrudeToRegionMesh -overwrite + +#If using batch mode +#runApplication -s createWallFilmRegionPatches \ +# setSet -region wallFilmRegion \ +# -batch createWallFilmRegionPatches.setSet + +#If using dictionary mode +runApplication -s createWallFilmRegionPatches \ + topoSet -region wallFilmRegion \ + -dict system/createWallFilmRegionPatches.topoSet + +runApplication createPatch -region wallFilmRegion -overwrite + +paraFoam -touch +paraFoam -touch -region wallFilmRegion + +#------------------------------------------------------------------------------ diff --git a/tutorials/mesh/foamyHexMesh/mixerVessel/Allmesh b/tutorials/mesh/foamyHexMesh/mixerVessel/Allmesh new file mode 100755 index 0000000000..d22a716634 --- /dev/null +++ b/tutorials/mesh/foamyHexMesh/mixerVessel/Allmesh @@ -0,0 +1,99 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory + +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +intersectSurfaces() +{ + outputName1=$(basename $1) + outputName1=${outputName1%.*} + + outputName2=$(basename $2) + outputName2=${outputName2%.*} + + runApplication -s $outputName1:$outputName2 \ + surfaceBooleanFeatures "$@" intersection +} + +# Set application name +application=$(getApplication) + +# Run the surface preparation script +./constant/triSurface/surfaceProcess.sh > log.surfaceProcess 2>&1 + +# Surface intersections +intersectSurfaces \ + constant/triSurface/vessel.stl \ + constant/triSurface/spargerShaft.stl \ + -perturb + +intersectSurfaces \ + constant/triSurface/vessel.stl \ + constant/triSurface/shaft.stl \ + -perturb + +intersectSurfaces \ + constant/triSurface/spargerShaft.stl \ + constant/triSurface/spargerInlet.stl \ + -perturb + +intersectSurfaces \ + constant/triSurface/stirrer.stl \ + constant/triSurface/shaftRotating.stl \ + -perturb + +intersectSurfaces \ + constant/triSurface/stirrer_baffles.stl \ + constant/triSurface/stirrer.stl \ + -surf1Baffle \ + -perturb + +intersectSurfaces \ + constant/triSurface/rotating.stl \ + constant/triSurface/shaft.stl \ + -surf1Baffle \ + -perturb + +# Intersect blades with the plate +for bladeI in $(seq 1 6); +do + intersectSurfaces \ + constant/triSurface/stirrer_baffles_$bladeI.obj \ + constant/triSurface/stirrer_baffles_plate.obj \ + -surf1Baffle \ + -surf2Baffle +done + +# Meshing +cp system/controlDict.mesh system/controlDict + +runApplication blockMesh -region backgroundMeshDecomposition + +runApplication -s backgroundMeshDecomposition \ + decomposePar -region backgroundMeshDecomposition + +runApplication surfaceFeatures + +runParallel foamyHexMesh + +runParallel -s faces \ + collapseEdges -collapseFaces -latestTime \ + -dict system/collapseDict.collapseFaces + +#runParallel -s faceSet \ +# collapseEdges -collapseFaceSet indirectPatchFaces -latestTime \ +# -dict system/collapseDict.indirectPatchFaces + +runParallel checkMesh -allTopology -allGeometry -latestTime + +runApplication reconstructParMesh -latestTime + +# Copy the mesh from the latest time folder into polyMesh and delete that +# latest time folder +latestTime=$(foamListTimes -latestTime) +cp -r $latestTime/polyMesh constant +rm -rf $latestTime + + +#------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interFoam/RAS/mixerVesselAMI/Allmesh b/tutorials/multiphase/interFoam/RAS/mixerVesselAMI/Allmesh new file mode 100755 index 0000000000..73bdcda6c5 --- /dev/null +++ b/tutorials/multiphase/interFoam/RAS/mixerVesselAMI/Allmesh @@ -0,0 +1,17 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory + +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +# Set application name +application=$(getApplication) + +# Meshing +runApplication blockMesh +runApplication surfaceFeatures +runApplication snappyHexMesh -overwrite +runApplication createBaffles -overwrite +runApplication mergeOrSplitBaffles -split -overwrite + +#------------------------------------------------------------------------------ diff --git a/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/Allmesh b/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/Allmesh new file mode 100755 index 0000000000..493f2ce5b5 --- /dev/null +++ b/tutorials/multiphase/interPhaseChangeDyMFoam/propeller/Allmesh @@ -0,0 +1,25 @@ +#!/bin/sh +cd ${0%/*} || exit 1 # Run from this directory + +# Source tutorial run functions +. $WM_PROJECT_DIR/bin/tools/RunFunctions + +# Copy propeller surface from resources directory +cp $FOAM_TUTORIALS/resources/geometry/propellerTip.obj.gz constant/triSurface/ + +runApplication blockMesh +runApplication surfaceFeatures +runApplication snappyHexMesh -overwrite + +# Generate face/cell sets and zones +runApplication topoSet -dict system/createInletOutletSets.topoSetDict + +# Create the inlet/outlet and AMI patches +runApplication createPatch -overwrite + +runApplication renumberMesh -noFields -overwrite + +# Test by running moveDynamicMesh +#runApplication moveDynamicMesh -checkAMI + +#------------------------------------------------------------------------------