set logscale y
set title "Residuals"
set ylabel 'Residual'
set xlabel 'Iteration'
plot\
"< cat log.kelecyPletcherFoam | grep 'Residuals:' | cut -d' ' -f4 | tr -d ','" title 'rho' with lines,\
"< cat log.kelecyPletcherFoam | grep 'Residuals:' | cut -d' ' -f7 | tr -d ','" title 'rhoU' with lines,\
"< cat log.kelecyPletcherFoam | grep 'Residuals:' | cut -d' ' -f10 | tr -d ','" title 'p' with lines
pause 1
reread
