Files
CFDEMcoupling-PFM/tutorials/cfdemSolverRhoPimple/VortexShedding/Allrun.sh
danielque 6147878a1b add vortex shedding test case [ci skip]
add test case based on OpenFOAM tutorial by J. Guerrero to compare p, U,
T, rho from compressible rhoPimpleFoam solver to cfdemSolverRhoPimple
2021-12-23 16:54:55 +01:00

28 lines
865 B
Bash
Executable File

#!/bin/bash
#------------------------------------------------------------------------------
# Allrun script for VortexShedding test case
# run VortexShedding
# Daniel Queteschiner - November 2021
#------------------------------------------------------------------------------
#- define variables
casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
#- check if mesh was built
if [ -f "$casePath/CFD/constant/polyMesh/points" ]; then
echo "mesh was built before - using old mesh"
else
echo "mesh needs to be built"
cd $casePath/CFD
blockMesh
transformPoints -scale "(0.001 0.001 0.001)"
checkMesh
#- make the linear system more diagonal dominant to speed-up the linear solvers
renumberMesh -overwrite -noFunctionObjects
fi
#- run parallel CFD
#bash $casePath/parCFDrun.sh
#- run parallel CFD-DEM
bash $casePath/parCFDDEMrun.sh