introvoyz042's picture
Migrated from GitHub
5a600cf verified
Raw History Blame Contribute Delete
1.03 kB
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run and clean functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
# Copy/merge the source case
isTest "$@" && path=.. || path=$FOAM_TUTORIALS/incompressibleFluid
cp -r $path/pitzDailySteady .
foamMergeCase $path/pitzDailySteady || exit
# Run the source case in parallel
(
cd pitzDailySteady
cp ../system/decomposeParDict system
runApplication blockMesh -dict $FOAM_TUTORIALS/resources/blockMesh/pitzDaily
runApplication decomposePar -latestTime
runParallel foamRun -noFunctionObjects
)
# Mesh
./Allmesh
runApplication decomposePar
# Map from the source case into this case and run
runParallel mapFieldsPar pitzDailySteady -consistent -sourceTime latestTime
runParallel foamRun -noFunctionObjects
# Reconstruct, including the values mapped to the zero directory
runApplication reconstructPar -withZero
#------------------------------------------------------------------------------