#!/bin/sh
cd “${0%/*}” || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#——————————————————————————parent=”../steady”
latestTime=$(foamListTimes -case “$parent” -noZero -latestTime)if [ -z “$latestTime” ]
then
echo “FatalError: no latestTime found for $PWD/$parent”
exit 1
fi# Replace mesh unconditionally
rm -rf constant/polyMesh
cp -rf “$parent”/constant/polyMesh constantrestore0Dir
# Restart from steady
cp -f \r
“$parent/$latestTime”/U \r
“$parent/$latestTime”/p \r
0/runApplication $(getApplication)
#——————————————————————————
実行年月:02/01/2021