27 lines
622 B
Bash
Executable file
27 lines
622 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# Source tutorial run functions
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
|
|
|
# Set application name
|
|
application="interDyMFoam"
|
|
|
|
makeMeshByCellSet()
|
|
{
|
|
while [ $# -ge 1 ]
|
|
do
|
|
echo "Running cellSet operation $1"
|
|
cp system/cellSetDict.$1 system/cellSetDict
|
|
cellSet > log.cellSet.$1 2>&1
|
|
shift
|
|
done
|
|
}
|
|
|
|
runApplication blockMesh
|
|
makeMeshByCellSet 1 2
|
|
runApplication subsetMesh -overwrite c0 -patch floatingObject
|
|
cp -r 0.org 0 > /dev/null 2>&1
|
|
runApplication setFields
|
|
runApplication $application
|
|
|
|
# -----------------------------------------------------------------------------
|