set title "Centre of Mass"
set ylabel 'Centre of Mass (z)'
set xlabel 'time to end of sim'
set xr [-0.5:0]

set term 'png'
set output 'zPosition.png'

plot "morphing/U*5.5/plotfile" u ($1-7):($4/0.0016)   title 'morphing fine' w l, "morphing/U*5.5Half/plotfile" u ($1-7):($4/0.0016)   title 'morphing coarse' w l, "overset/U*5.5innerBlockMeshRefine/plotfile" u ($1+3-7):($4/0.0016)   title 'overset fine' w l, "overset/U*5.5innerBlockMeshRefineHalf/plotfile" u ($1+2-7):($4/0.0016)   title 'overset coarse' w l

set output 'xPosition.png'

plot "morphing/U*5.5/plotfile" u ($1+3-7):($2/0.0016)   title 'morphing fine' w l, "morphing/U*5.5Half/plotfile" u ($1+3-7):($2/0.0016)   title 'morphing coarse' w l, "overset/U*5.5innerBlockMeshRefine/plotfile" u ($1+3-7):($2/0.0016)   title 'overset fine' w l, "overset/U*5.5innerBlockMeshRefineHalf/plotfile" u ($1+2-7):($2/0.0016)   title 'overset coarse' w l

