Running Simulation - Convergence Monitoring - Mass Flow
Mass flow rates are located in directories according to patchMassFlow function object setup in system/flux.fun. Simple script plotFlowRate.gp can plot the mass flow rates during the computation:
set grid
set xlabel "iterations"
set ylabel "mass flow"
set key box above
#set yrange [20:100]
plot "./patchMassFlows_massFlowInlet/0/massFlow" \
using 1:(-$2) with lines title "spiral inlet", \
"./patchMassFlows_massFlowOutlet/0/massFlow" \
with lines title "drafttube outlet", \
"./patchMassFlows_massFlowMXP1_spiral/0/massFlow" \
using 1:($2+$3+$4+$5+$6+$7+$8+$9) with lines title "spiral outlet", \
"./patchMassFlows_massFlowMXP1_rotor/0/massFlow" \
using 1:(-($2+$3+$4+$5+$6+$7+$8+$9)) with lines title "rotor inlet", \
"./patchMassFlows_massFlowMXP2_rotor/0/massFlow" \
using 1:($2+$3+$4+$5+$6+$7+$8+$9) with lines title "rotor outlet", \
"./patchMassFlows_massFlowMXP2_drafttube/0/massFlow" \
using 1:(-($2+$3+$4+$5+$6+$7+$8+$9)) with lines title "drafttube"
reread
pause mouse
Run the script:
# gnuplot plotFlowRate.gp
Figure: Water turbine CFD, mass flow monitoring plot example.