Files
openfoam/tutorials/verificationAndValidation/turbulentInflow/Allrun
Mark Olesen e6dfb39c66 STYLE: remove unnecessary stdout, stderr /dev/null redirects
- no stderr redirect needed:
    * 'command -v'

- no stdout/stderr redirect needed:
    * 'rm -f'

STYLE: consistent spacing after redirects
2019-11-06 10:44:36 +01:00

35 lines
1.1 KiB
Bash
Executable File

#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions
#------------------------------------------------------------------------------
# Test with different synthetic inflow models
modelTypes="reducedDigitalFilter digitalFilter DFSEM"
runApplication blockMesh
restore0Dir
# Compute (serial) and collect data
for modelType in $modelTypes
do
echo
echo "Running with model: $modelType"
(cd 0 && ln -snf "inlet.$modelType" inlet)
(cd constant/boundaryData && ln -snf "inlet.$modelType" inlet)
runApplication -s "$modelType" pimpleFoam
./createGraphs
# Collect data in 'results' directory
results="results/$modelType"
echo "Placing summary in $results"
mkdir -p "$results"
mv -f log.* *.png postProcessing "$results" 2>/dev/null
cleanTimeDirectories
rm -rf processor*
done
#------------------------------------------------------------------------------