diff --git a/etc/caseDicts/general/workflow/Allclean b/etc/caseDicts/general/workflow/Allclean new file mode 100755 index 000000000..0d5169401 --- /dev/null +++ b/etc/caseDicts/general/workflow/Allclean @@ -0,0 +1,17 @@ +#!/bin/sh + +# Run from this directory +cd "${0%/*}" || exit 1 + +# Source tutorial clean functions +. "$WM_PROJECT_DIR/bin/tools/CleanFunctions" + +# Delete the following: +# - time directories +# - constant/polyMesh directory +# - postProcessing and VTK directories +# - log files +# - field files with a ".orig" backup +cleanCase + +#------------------------------------------------------------------------------ diff --git a/etc/caseDicts/general/workflow/Allmesh b/etc/caseDicts/general/workflow/Allmesh new file mode 100755 index 000000000..3e2f2a258 --- /dev/null +++ b/etc/caseDicts/general/workflow/Allmesh @@ -0,0 +1,15 @@ +#!/bin/sh + +# Run from this directory +cd "${0%/*}" || exit 1 + +# Source tutorial run functions +. "$WM_PROJECT_DIR/bin/tools/RunFunctions" + +# Example workflow with meshing applications +runApplication blockMesh +runApplication topoSet +runApplication refineMesh -overwrite +runApplication transformPoints -scale "(0.01 0.01 0.01)" + +#------------------------------------------------------------------------------ diff --git a/etc/caseDicts/general/workflow/Allrun b/etc/caseDicts/general/workflow/Allrun new file mode 100755 index 000000000..40a5b3d7c --- /dev/null +++ b/etc/caseDicts/general/workflow/Allrun @@ -0,0 +1,33 @@ +#!/bin/sh + +# Run from this directory +cd "${0%/*}" || exit 1 + +# Source tutorial run functions +. "$WM_PROJECT_DIR/bin/tools/RunFunctions" + +# Example with runApplication: +# - runs blockMesh in background +# - redirecting standard output to log.blockMesh +# - does *not* run in log file already exists +runApplication blockMesh + +# Example running topoSet and refineMesh 3 times with multiple dictionaries +# -a|-append option appends to log file +i=0 +while [ "$i" -lt 3 ] +do + runApplication -a topoSet -dict "topoSetDict.${i}" + runApplication -a refineMesh -dict "refineMeshDict.${i}" + i=$(( i + 1)) +done + +runApplication decomposePar + +# Example with runParallel to run in parallel +# getApplication finds solver name from "application" entry in controlDict +runParallel "$(getApplication)" + +runApplication reconstructPar + +#------------------------------------------------------------------------------