Files
CFDEMcoupling-PFM/tutorials/cfdemSolverIBContinuousForcing/redBloodCellShearFlow/Allrun.sh
danielque 1f5c8f6492 add a tutorial for cfdemSolverIBContinuousForcing
simulating the deformation of a red blood cell (bonded particles) in
shear flow
2022-03-24 15:39:10 +01:00

31 lines
874 B
Bash
Executable File

#!/bin/bash
#------------------------------------------------------------------------------
# Allrun script for redBloodCellShearFlow test case
# run redBloodCellShearFlow
# Achuth N. Balachandran Nair - October 2018
#------------------------------------------------------------------------------
source $CFDEM_PROJECT_DIR/etc/functions.sh
#- define variables
casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
# 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
blockMesh
fi
if [ -f "$casePath/DEM/post/restart/liggghts.restart" ]; then
echo "LIGGGHTS init was run before - using existing restart file"
else
#- run serial DEM
$casePath/DEMrun.sh
fi
#- run parallel CFD-DEM
bash $casePath/parCFDDEMrun.sh