Files
openfoam/tutorials/basic/overPotentialFoam/cylinder/cylinderAndBackground/Allrun.pre

23 lines
556 B
Bash
Executable File

#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Create background mesh
runApplication blockMesh
# Add the cylinder mesh
runApplication mergeMeshes . ../cylinderMesh -overwrite
## Make it a bit smaller to keep it laminar
#runApplication transformPoints -scale '(0.001 0.001 0.001)'
# Select cellSets for the different zones
runApplication topoSet
restore0Dir
# Use cellSets to write zoneID
runApplication setFields
#------------------------------------------------------------------------------