Files
openfoam/tutorials/verificationAndValidation/turbulentInflow/Allrun-parallel
2019-06-24 12:29:19 +02:00

35 lines
1.0 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 (parallel) and collect data
for modelType in $modelTypes
do
echo
echo "Running with model: $modelType"
(cd 0 && ln -sf "inlet.$modelType" inlet)
(cd constant/boundaryData && ln -sf "inlet.$modelType" inlet)
runApplication -s "$modelType" decomposePar
runParallel -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* >/dev/null 2>&1
done
#------------------------------------------------------------------------------