Files
CFDEMcoupling-PFM/tutorials/cfdemSolverIBContinuousForcing/redBloodCellShearFlow/prerun.sh
danielque 13e5989216 shorter simulation times on test harness for redBloodCell cases
with the original simulation time the case gets to long/large for
reasonable testing ...
2023-02-15 10:19:24 +01:00

17 lines
416 B
Bash
Executable File

#!/bin/bash
#- define variables
casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
# check if mesh was built
if [ -f "$casePath/CFD/constant/polyMesh/boundary" ]; then
echo "mesh was built before - using old mesh"
else
echo "mesh needs to be built"
cd $casePath/CFD
blockMesh
fi
# adapt settings for test harness run
cp $casePath/CFD/system/controlDict_test $casePath/CFD/system/controlDict