clean up tutorial run/clean scripts

This commit is contained in:
danielque
2022-03-24 15:43:56 +01:00
parent 1f5c8f6492
commit e1245147fe
3 changed files with 15 additions and 21 deletions

View File

@ -1,21 +1,18 @@
#!/bin/bash
#===================================================================#
# allclean script for testcase
#------------------------------------------------------------------------------
# Allclean script for falling sphere test case
# clean CFD and DEM part
# Achuth N. Balachandran Nair - Oct. 2018
#===================================================================#
# Achuth N. Balachandran Nair - October 2018
#------------------------------------------------------------------------------
#- source CFDEM env vars
#- source environment variables
. ~/.bashrc
#- include functions
#- source CFDEM functions
source $CFDEM_PROJECT_DIR/etc/functions.sh
#--------------------------------------------------------------------------------#
#- define variables
casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
#--------------------------------------------------------------------------------#
#- clean up case
echo "deleting data at: $casePath"

View File

@ -1,10 +1,9 @@
#!/bin/bash
#===================================================================#
# allrun script for testcase
#------------------------------------------------------------------------------
# allrun script for falling sphere testcase
# run falling_sphere_two_way_coupling
# Achuth N. Balachandran Nair - Oct. 2018
#===================================================================#
#------------------------------------------------------------------------------
source $CFDEM_PROJECT_DIR/etc/functions.sh
@ -22,6 +21,5 @@ else
blockMesh
fi
#gnome-terminal --title='cfdemSolverIB twoSpheresGlowinskiMPI CFD' -e "bash $casePath/parCFDDEMrun.sh"
#- run parallel CFD-DEM
bash $casePath/parCFDDEMrun.sh

View File

@ -1,10 +1,9 @@
#!/bin/bash
#===================================================================#
# CFDDEMrun script for testcase
#------------------------------------------------------------------------------
# parCFDDEMrun script for falling sphere testcase
# run falling_sphere_two_way_coupling
# Achuth N. Balachandran Nair - Oct. 2018
#===================================================================#
#------------------------------------------------------------------------------
#- source CFDEM env vars
. ~/.bashrc
@ -12,7 +11,7 @@
#- include functions
source $CFDEM_PROJECT_DIR/etc/functions.sh
#--------------------------------------------------------------------------------#
#------------------------------------------------------------------------------
#- define variables
casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
logpath=$casePath
@ -25,7 +24,7 @@ debugMode="off" # on | off| strict
testHarnessPath="$CFDEM_TEST_HARNESS_PATH"
runOctave="false"
postproc="false"
#--------------------------------------------------------------------------------#
#------------------------------------------------------------------------------
#- call function to run a parallel CFD-DEM case
parCFDDEMrun $logpath $logfileName $casePath $headerText $solverName $nrProcs $machineFileName $debugMode