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.
39 lines
871 B
Bash
Executable File
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 ""
|
|
|
|
#------------------------------------------------------------------------------
|