mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
DOC: Curle: fix typo in header file (fixes #2498) TUT: airfoil2D: apply standard freestream conditions for nuTilda and nut
37 lines
947 B
Bash
Executable File
37 lines
947 B
Bash
Executable File
#!/bin/sh
|
|
cd "${0%/*}" || exit # Run from this directory
|
|
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
|
|
#------------------------------------------------------------------------------
|
|
|
|
restore0Dir
|
|
|
|
cp -Rf 0 1.36/
|
|
|
|
if [ ! -d constant/polyMesh ]
|
|
then
|
|
runApplication blockMesh
|
|
|
|
runApplication renumberMesh -overwrite -constant
|
|
|
|
runApplication checkMesh -allTopology -allGeometry -constant
|
|
fi
|
|
|
|
if [ ! -f "system/setAlphaFieldDict" ]
|
|
then
|
|
if [ -f "system/setAlphaFieldDict.liquid" ]
|
|
then
|
|
runApplication -s liquid \
|
|
setAlphaField -dict system/setAlphaFieldDict.liquid
|
|
fi
|
|
|
|
if [ -f "system/setAlphaFieldDict.gas" ]
|
|
then
|
|
runApplication -s gas \
|
|
setAlphaField -dict system/setAlphaFieldDict.gas
|
|
fi
|
|
else
|
|
runApplication setAlphaField
|
|
fi
|
|
|
|
#------------------------------------------------------------------------------
|