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

time=500

graphName="U.eps"
gnuplot<<EOF
    set terminal postscript eps color enhanced
    set output "$graphName"
    set grid
    set xlabel "U (m/s)"  font 'Times,21,Bold'
    set ylabel "z (m)"  font 'Times,21,Bold'
    set key top left
    set size 0.75, 0.75
    set xtics font 'Times,17,Bold'
    set ytics font 'Times,17,Bold'
    set xrange [0:12]
    plot "postProcessing/sample/$time/inlet_U.xy" using 2:1 title "inlet" with linespoints lt -1 lw 5 pt 7 ps 1 ,\
    	 "postProcessing/sample/$time/middle_U.xy" using 2:1 title "middle" with linespoints lt -1 lw 5 pt 7 ps 1 lc rgb "blue",\
         "postProcessing/sample/$time/outlet_U.xy" using 2:1 title "outlet" with linespoints lt -1 lw 5 pt 7 ps 1 lc rgb "red"
EOF


graphName="k.eps"
gnuplot<<EOF
    set terminal postscript eps color enhanced
    set output "$graphName"
    set grid
    set xlabel "k (m2/s2)"  font 'Times,21,Bold'
    set ylabel "z (m)"  font 'Times,21,Bold'
    set key top right
    set size 0.75, 0.75
    set xtics font 'Times,17,Bold'
    set ytics font 'Times,17,Bold'
    set xrange [0:2]
    plot "postProcessing/sample/$time/inlet_k_epsilon.xy" using 2:1 title "inlet" with linespoints lt -1 lw 5 pt 7 ps 1 ,\
         "postProcessing/sample/$time/middle_k_epsilon.xy" using 2:1 title "middle" with linespoints lt -1 lw 5 pt 7 ps 1 lc rgb "blue",\
         "postProcessing/sample/$time/outlet_k_epsilon.xy" using 2:1 title "outlet" with linespoints lt -1 lw 5 pt 7 ps 1 lc rgb "red"
EOF




