mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
69 lines
1.7 KiB
Bash
69 lines
1.7 KiB
Bash
#!/bin/bash
|
|
|
|
#===================================================================#
|
|
# allrun script for testcase as part of test routine
|
|
# run settlingTest CFD part
|
|
# Christoph Goniva - Feb. 2011
|
|
#===================================================================#
|
|
|
|
#- source CFDEM env vars
|
|
. ~/.bashrc
|
|
|
|
#- include functions
|
|
source $CFDEM_SRC_DIR/etc/functions.sh
|
|
|
|
#--------------------------------------------------------------------------------#
|
|
#- define variables
|
|
casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
|
|
logpath=$casePath
|
|
headerText="run_parallel_cfdemSolverPisoMS_ErgunTestMPI_CFDDEM"
|
|
logfileName="log_$headerText"
|
|
solverName="cfdemSolverPisoMS"
|
|
nrProcs="2"
|
|
machineFileName="none" # yourMachinefileName | none
|
|
debugMode="off" # on | off
|
|
testHarnessPath="$CFDEM_TEST_HARNESS_PATH"
|
|
|
|
cleanUp="true"
|
|
#--------------------------------------------------------------------------------#
|
|
|
|
#- call function to run a parallel CFD-DEM case
|
|
parCFDDEMrun $logpath $logfileName $casePath $headerText $solverName $nrProcs $machineFileName $debugMode
|
|
|
|
#------------------------------#
|
|
# octave
|
|
|
|
#- change path
|
|
cd octave
|
|
|
|
#- rmove old graph
|
|
rm cfdemSolverPisoMS_ErgunTestMPI.eps
|
|
|
|
#- run octave
|
|
octave totalPressureDrop.m
|
|
|
|
#- show plot
|
|
evince cfdemSolverPisoMS_ErgunTestMPI.eps
|
|
#------------------------------#
|
|
|
|
#- copy log file to test harness
|
|
cp ../../$logfileName $testHarnessPath
|
|
cp cfdemSolverPisoMS_ErgunTestMPI.eps $testHarnessPath
|
|
|
|
if [ $cleanUp == "true" ]
|
|
then
|
|
#- clean up case
|
|
cd ..
|
|
rm -rf 0.*
|
|
rm -rf processor*
|
|
rm -rf particles
|
|
rm -rf patchAverage_pressureDrop
|
|
rm -rf probes
|
|
rm log.liggghts
|
|
rm ../DEM/post/dump.*
|
|
fi
|
|
|
|
|
|
#- preserve post directory
|
|
echo "dummyfile" >> $casePath/DEM/post/dummy
|