openfoam/tutorials/incompressible/lumpedPointMotion/bridge/Allrun.move
Mark Olesen 7db868b509 TUT: bridge using external lumped point motion (#1341)
- see its accompanying README for additional setup instructions
2020-06-17 15:16:27 +02:00

36 lines
773 B
Plaintext
Executable File

#!/bin/sh
cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
# 1) Run meshing
# 2) Test input zones and movement
# Meshing
steady/Allrun.pre $*
if notTest "$@"
then
if canCompile
then
(cd code && wmake)
else
exit 0
fi
. files/RunFunctions
caseName="movement"
# Copy/link the steady-state case to movement
linkParallelCase steady "$caseName"
# Copy/link support files
linkFiles files "$caseName"
# Run
"$caseName/Allrun.$caseName" $*
fi
#------------------------------------------------------------------------------