Files
OpenFOAM-12/tutorials/multiphase/reactingTwoPhaseEulerFoam/RAS/bubblePipe/validation/createGraphs
Will Bainbridge 2be90fd7b2 tutorials/multiphase/reactingTwoPhaseEulerFoam: Added bubblePipe tutorial
Patch contributed by Juho Peltola, VTT.
2019-08-29 12:21:58 +01:00

28 lines
715 B
Bash
Executable File

#!/bin/sh
if ! which gnuplot > /dev/null 2>&1
then
echo 'gnuplot not found - skipping graph creation' >&2
exit 1
fi
gnuplot<<EOF
set terminal postscript eps color enhanced font "Helvetica,20"
set output '../void_fraction.eps'
set xlabel 'Radial coordinate r/R (-)'
set ylabel 'Void fraction (-)'
set key at graph 0.65,0.95
set xrange [0:1]
set yrange [0:0.15]
file = system("ls ../postProcessing/singleGraph/$(foamListTimes -case .. | tail -1)/*.xy")
plot file u (\$1/0.01905):2 w lp lt 1 t 'Simulation', \
'./exptData/alpha.gas' u 1:2 w p lt rgb "black" pt 4 t 'Experiment'
EOF
#------------------------------------------------------------------------------