#!/bin/sh
cd “${0%/*}” || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#——————————————————————————restore0Dir
# Convert mesh from resources directory
runApplication star4ToFoam -scale 1 \r
“$FOAM_TUTORIALS”/resources/geometry/nacaAirfoil/nacaAirfoil# Symmetry plane -> empty
sed -i -e ‘s/symmetry([)]*;)/empty1/’ constant/polyMesh/boundary# Don’t need these extra files (from star4ToFoam conversion)
rm -f \r
constant/cellTable \r
constant/polyMesh/cellTableId \r
constant/polyMesh/interfaces \r
constant/polyMesh/origCellId \r
;if isParallel “$@”
thenrunApplication decomposePar
runParallel $(getApplication)
else
runApplication $(getApplication)
fi
#——————————————————————————
実行年月:08/06/2023