#!/bin/sh
cd ${0%/*} || exit 1    # run from this directory

#awk '/^Time/{printf $3 " "};/^d32/{print $3}' logEQMOM > d32EQMOM
#awk '{a[NR]=$0;if(/Execution/)print a[NR-1]}' logQMOM > d32QMOM

graphName="Nux.eps"

gnuplot<<EOF

set terminal postscript eps color enhanced font "Arial, 20" 
set output "$graphName"
set grid
set border linewidth 2

set xlabel "x/W" 
set ylabel "Nux" 

set key top right font "Arial, 15" 

set size 0.7, 0.6
set xrange [0:25]
set yrange [0:80]

plot "exp" using 1:2 title "Exp. lit." with points pt 6 ps 2.5 lc rgb "black",\
     "fluent" using 1:2 title "Sim. lit." with lines lw 4 lc rgb "black" dashtype 2,\
     "sim" using 1:2 title "OpenFOAM" with lines lw 4 lc rgb "black"
         
EOF

# ----------------------------------------------------------------- end-of-file
