Previous: Convergence monitoring using foamLog Up: Gnuplot – convergence monitoring Next: Instant convergence monitoring during

This is an automatically generated documentation by LaTeX2HTML utility. In case of any issue, please, contact us at info@cfdsupport.com.

43 Instant convergence monitoring during computation

  • 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
openfoam tutorial motor bike residuals

Figure: OpenFOAM tutorial motor bike. Velocity residuals during computation.