2 2

Next: Model setting without an Up: Alternative formulation Previous: Alternative formulation   Contents   Index

Running Simulation - Convergence Monitoring - Efficiency

efficiency can be followed during the simulation. Efficiency is plot by efficiency function object (configured in system/efficiency.fun). Simple script efficiency.gp can plot the head during computation:

 

set grid
set xlabel "iterations"
set ylabel "Efficiency [ - ]"
set key box above
set yrange [0.8:1]
set xrange [1:2000]

plot "< cat ./log | grep 'efficiency: ' | awk '{print $2}' " with lines title "Efficiency [ - ]"
     
pause 10
reread

Run the script:

# gnuplot efficiency.gp

openfoam example efficiency water turbine

Figure: Water turbine CFD, efficiency monitoring plot example.