Files
CFDEMcoupling-PFM/tutorials/testTwoFluidRecurrenceTurbulence/testRecurrenceKEpsilon/init/createDataBase
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

39 lines
871 B
Bash
Executable File

#!/bin/bash
cd ${0%/*} || exit 1 # Run from this directory
echo ""
if [ -e ../dataBase ];
then
echo "dataBase exists"
else
echo "no local dataBase found"
echo " ... creating dataBase"
mkdir ../dataBase
# copy system directory to dataBase
cp -r system ../dataBase/
# copy mesh from init to dataBase
mkdir ../dataBase/constant
cp -r constant/polyMesh ../dataBase/constant/
# fill dataBase from init case
# adjust copy commands when changing init case endTime
cp -r [2-9][0-9]* ../dataBase/
# rename folders and delete 'uniform' directories
cd ../dataBase
rename 's/(\d+)/($1-28)/e' *
find . -type d -name uniform | xargs rm -rf
echo " ... dataBase created"
cd ../init
fi
echo ""
#------------------------------------------------------------------------------