This lets calling code determine the difference between a polyMesh topology change and a re-stitch. This prevents unnecessary post-processing output in a few cases when using NCC; most notably the generation of cellProc fields by reconstructPar.
30 lines
777 B
Bash
Executable File
30 lines
777 B
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # Run from this directory
|
|
|
|
# Source tutorial run functions
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
|
|
|
runApplication blockMesh
|
|
runApplication createNonConformalCouples -overwrite nonCoupleStationary nonCoupleRotating
|
|
|
|
runApplication setFields
|
|
|
|
runApplication decomposePar -cellProc
|
|
runParallel $(getApplication)
|
|
runApplication reconstructPar -cellProc
|
|
|
|
# Link cellProc files at unchanged times back to cellProc files at previous
|
|
# changed times. This allows them to be visualised continuously.
|
|
tPrev=0
|
|
foamListTimes | while read -r t
|
|
do
|
|
if [ -f "$t"/cellProc ]
|
|
then
|
|
tPrev="$t"
|
|
else
|
|
ln -s ../"$tPrev"/cellProc "$t"/cellProc
|
|
fi
|
|
done
|
|
|
|
#------------------------------------------------------------------------------
|