#!/bin/sh
cd "${0%/*}" || exit                                # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions        # Tutorial run functions
#------------------------------------------------------------------------------

./Allrun.pre

(cd sphereAndBackground && mpirun -np 4 --oversubscribe overSedDymFoam_rbgh -parallel > log.out&)
echo "The simulation is executed in background, with output to log.out"

#  Postprocessing
echo "-------------------------------------------------------------------"
echo "To generate the postprocessing files you need to execute ./makeFiles in the sphereAndBackground folder."
echo "Then go to ../Py and run the python3 script plot3DFallingSphere_suspension.py and/or plot3DFallingSphere_comparison.py"

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


