Plotting residuals in openFOAM

There are many resources that will show you how to plot residuals while solving, for example look here . The core of most (or all..) of them is to filter the numeric values into gnuplot using few unix utilities like so: set logscale y set title "Residuals" set ylabel "Residual" set xlabel "Iteration" plot "< cat log | grep 'Solving for Ux' | cut -d' ' -f9 | tr -d ','" title 'Ux' with lines,\ "< cat log | grep 'Solving for Uy' | cut -d' ' -f9 | tr -d ','" title 'Uy' with lines,\ "< cat log | grep 'Solving for Uz' | cut -d' ' -f9 | tr -d ','" title 'Uz' with lines,\ "< cat log | grep 'Solving for omega' | cut -d' ' -f9 | tr -d ','" title 'omega' with lines,\ "< cat log | grep 'Solving for k' | cut -d' ' -f9 | tr -d ','" titl...