- A few without a 'cd' at the start. Use $(getApplication) directly in more places (for clarity).
23 lines
576 B
Bash
Executable File
23 lines
576 B
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # Run from this directory
|
|
|
|
# Source tutorial run functions
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
|
|
|
# create the underlying block mesh
|
|
runApplication blockMesh
|
|
|
|
# create the set for the obstacles
|
|
runApplication topoSet
|
|
|
|
# mesh processing to generate the inlet duct
|
|
runApplication subsetMesh c0 -patch walls -overwrite
|
|
|
|
# split into the cabin, ice and exterior regions
|
|
runApplication splitMeshRegions -cellZones -overwrite
|
|
|
|
# set the initial fields
|
|
restore0Dir
|
|
|
|
# -----------------------------------------------------------------------------
|