#!/bin/sh
cd "${0%/*}" || exit                                # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions        # Tutorial run functions
#------------------------------------------------------------------------------
python3 ${MULTIPHASE_TEMPLATE}/upstreamTemplate.py --units ${MULTIPHASE_TEMPLATE}/units.json --solver ${MULTIPHASE_TEMPLATE}/input_upstream.json --intf intf_json.json --mesh blockMesh.json

cp 0.orig 0 -R

runApplication blockMesh
runApplication setPermeability
runApplication decomposePar
runParallel $(getApplication)
runApplication reconstructPar
runApplication postProcess -func sampleDict
rm -r processor*


#------------------------------------------------------------------------------
