Files
CFDEMcoupling-PFM/tutorials/cfdemSolverMultiphase/small_scale_hearth_drainage/Allrun.sh
2018-10-15 10:02:06 +02:00

29 lines
730 B
Bash
Executable File

#!/bin/bash
#===================================================================#
# This tutorial runs a drainage simulation of a small-scale blast
# furnace hearth from an initial state generated from ../init
#===================================================================#
#- define variables
casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
nrProcs=4;
# check if mesh was built
if [ -f "$casePath/CFD/constant/polyMesh/points" ]; then
echo "mesh was built before - using old mesh"
else
echo "mesh needs to be built"
cd $casePath/CFD
./mesh.sh
fi
#run the drainage simulation
cd $casePath
cp -r ./CFD/1.org ./CFD/1
./parCFDDEMrun.sh
# generate files for post processing
cd $casePath
./postrun.sh