- Convergence can be watched instantly using small script for Gnuplot
- Suitable for immediate convergence watching
- Create new file e.g. residuals:
# Gnuplot script file for plotting data from file "log" set title "Convergence process" set xlabel "Iterations" set ylabel "Reziduals" set logscale y plot "< cat log.simpleFoam | grep Ux | cut -d' ' -f9 | tr -d ','" title 'u', \ "< cat log.simpleFoam | grep Uy | cut -d' ' -f9 | tr -d ','" title 'v', \ "< cat log.simpleFoam | grep Uz | cut -d' ' -f9 | tr -d ','" title 'w' pause 10 # pause mouse
- Anytime during computation it can be run by typing command:
# gnuplot residuals
Figure: OpenFOAM tutorial motor bike. Velocity residuals during computation.