Cygwin therefore OpenFOAM for Windows supports only files in Unix format (i.e. with \n for newlines as opposed to the DOS/Windows \r\n newline). If there is a problem with running script writeResiduals.sh add following line into your script just after the #! line
(set -o igncr) 2>/dev/null && set -o igncr; # this comment is required
Create file named volumePhaseFraction:
# Gnuplot script file for plotting data from file "log"
set title "Convergence process"
set xlabel "Iterations"
set ylabel "Liquid phase volume fraction"
set grid
plot 'writeVolumePhaseFraction.dat' with lines title 'Liquid phase volume fraction'
pause mouse
Run writeVolumePhaseFraction.sh, which creates data file # bash writeVolumePhaseFraction.sh
Run volumePhaseFraction.gp, by opening the script file in gnuplot program