Files
CFDEMcoupling-PFM/tutorials/testTwoFluidRecurrenceTurbulence/testRecurrenceKEpsilon/recRun/checkOrCreateDataBase
Gerhard Holzinger 137a4e8670 Recurrence-based turbulence: test case
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.
2018-05-17 15:47:46 +02:00

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 ""
#------------------------------------------------------------------------------