mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
29 lines
730 B
Bash
Executable File
29 lines
730 B
Bash
Executable File
#!/bin/bash
|
|
|
|
#===================================================================#
|
|
# This tutorial runs a drainage simulation of a small-scale blast
|
|
# furnace hearth from an initial state generated from ../init
|
|
#===================================================================#
|
|
|
|
#- define variables
|
|
casePath="$(dirname "$(readlink -f ${BASH_SOURCE[0]})")"
|
|
nrProcs=4;
|
|
|
|
# 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
|
|
./mesh.sh
|
|
fi
|
|
|
|
#run the drainage simulation
|
|
cd $casePath
|
|
cp -r ./CFD/1.org ./CFD/1
|
|
./parCFDDEMrun.sh
|
|
|
|
# generate files for post processing
|
|
cd $casePath
|
|
./postrun.sh
|