mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
45 lines
1.4 KiB
Bash
Executable File
45 lines
1.4 KiB
Bash
Executable File
#!/bin/bash
|
|
#------------------------------------------------------------------------------
|
|
# parCFDDEMrun script for periodic box test case
|
|
# run periodic box CFD-DEM
|
|
# Behrad Esgandari - August 2023
|
|
#------------------------------------------------------------------------------
|
|
|
|
#- source CFDEM env vars
|
|
. ~/.bashrc
|
|
|
|
#- include functions
|
|
source $CFDEM_PROJECT_DIR/etc/functions.sh
|
|
|
|
#------------------------------------------------------------------------------
|
|
#- define variables
|
|
casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
|
|
logpath=$casePath
|
|
headerText="run_periodic_box"
|
|
logfileName="log_$headerText"
|
|
solverName="cfdemSolverPimple"
|
|
nrProcs="32"
|
|
machineFileName="none" # yourMachinefileName | none
|
|
debugMode="off" # on | off| strict
|
|
runCleanUp="false"
|
|
#------------------------------------------------------------------------------
|
|
|
|
#- call function to run a parallel CFD-DEM case
|
|
parCFDDEMrun $logpath $logfileName $casePath $headerText $solverName $nrProcs $machineFileName $debugMode
|
|
|
|
if [ $runCleanUp == "true" ]
|
|
then
|
|
#- clean up case
|
|
echo "deleting data at: $casePath :\n"
|
|
source $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
|
cd $casePath/CFD
|
|
cleanCase
|
|
rm $casePath/DEM/post/*.*
|
|
touch $casePath/DEM/post/.gitignore
|
|
rm $casePath/DEM/post/restart/*.*
|
|
touch $casePath/DEM/post/restart/.gitignore
|
|
fi
|
|
|
|
echo "done"
|
|
|