28 lines
848 B
Bash
Executable File
28 lines
848 B
Bash
Executable File
#!/bin/sh
|
|
cd "${0%/*}" || exit # Run from this directory
|
|
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
|
|
#------------------------------------------------------------------------------
|
|
|
|
# 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
|
|
|
|
# create register face and cell zones
|
|
runApplication -s register \
|
|
topoSet -region cabin -dict system/topoSetDictRegister
|
|
|
|
# set the initial fields
|
|
restore0Dir
|
|
|
|
runApplication $(getApplication)
|
|
|
|
#------------------------------------------------------------------------------
|