mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
also runAllPar.sh needs to copy initial restart file to work with same liggghts run script
31 lines
1.0 KiB
Bash
Executable File
31 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
#===================================================================#
|
|
# allrun script
|
|
# Tim MJ Nijssen - September 2021
|
|
# based on: Christoph Goniva - August 2011
|
|
#===================================================================#
|
|
|
|
#--------------------------------------------------------------------------------#
|
|
#- run settings file
|
|
scriptPath="$( cd "$( dirname "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
|
|
. $scriptPath/scriptSettings.sh $1
|
|
#--------------------------------------------------------------------------------#
|
|
|
|
#- do all tasks before actual run
|
|
echo "runAllPar: calling preRunAllPar"
|
|
. $scriptPath/preRunAllPar.sh $casePath
|
|
|
|
# duplicate restart file to restartSequence
|
|
echo "runAllPar: duplicating LIGGGHTS restart file"
|
|
cp $casePath/DEM/post/restart/liggghts.restart $casePath/DEM/post/restart/liggghts.restartSequence
|
|
|
|
#- run parallel CFD-DEM
|
|
echo "runAllPar: Running CFD-DEM"
|
|
. $scriptPath/runCFDDEMPar.sh $casePath
|
|
|
|
#- do all tasks after actual run
|
|
echo "runAllPar: calling postRunAllPar"
|
|
. $scriptPath/postRunAllPar.sh $casePath
|
|
|