mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
The test case consists of an initialisation part to build a small dataBase and a recurrence run. In the init case the kEpsilon turbulence model is used for the liquid phase. In the recurrence run the corresponding recurrence-based kEpsilon model "recurrenceKEpsilon" is used.
52 lines
1.0 KiB
Bash
Executable File
52 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
cd ${0%/*} || exit 1 # Run from this directory
|
|
|
|
|
|
echo ""
|
|
|
|
if [[ -L dataBase ]] && [[ ! -a dataBase ]];
|
|
then
|
|
echo "./dataBase is a broken symlink"
|
|
echo " ... clearing ./dataBase"
|
|
|
|
rm dataBase
|
|
fi
|
|
|
|
if [ -e dataBase ];
|
|
then
|
|
echo "dataBase exists"
|
|
else
|
|
echo "no local dataBase found"
|
|
echo " ... looking for parent dataBase"
|
|
|
|
if [ -e ../dataBase ];
|
|
then
|
|
echo "parent dataBase exists"
|
|
else
|
|
echo "parent dataBase not found"
|
|
echo " ... looking for source data"
|
|
|
|
if [ -e ../init ];
|
|
then
|
|
echo "init case exists"
|
|
echo " ... creating dataBase"
|
|
|
|
cd ../init
|
|
./createDataBase
|
|
cd ../recRunA
|
|
|
|
else
|
|
echo "no init case found"
|
|
|
|
exit 666
|
|
fi
|
|
fi
|
|
|
|
echo " ... linking to dataBase"
|
|
ln -s ../dataBase dataBase
|
|
fi
|
|
|
|
echo ""
|
|
|
|
#------------------------------------------------------------------------------
|