Files
openfoam/tutorials/mesh/foamyQuadMesh/OpenCFD/Allrun-rhoCentralFoam
2014-12-14 21:50:14 +00:00

19 lines
484 B
Bash
Executable File

#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
# Get the number of processors to run on from system/decomposeParDict
nProcs=$(getNumberOfProcessors)
cp system/controlDict.rhoCentralFoam system/controlDict
cp -r 0.org 0
runApplication decomposePar
runParallel rhoCentralFoam $nProcs
runApplication reconstructPar
# ----------------------------------------------------------------- end-of-file