|
[Sponsors] |
November 17, 2017, 14:56 |
Gnuplot to monitor the torque while running
|
#1 |
New Member
Join Date: Nov 2017
Location: Germany
Posts: 11
Rep Power: 9 |
Hello everyone,
I've been trying to monitor the torque of the rotating blades during the running of the solver via Gnuplot. All the residuals can be plotted with no problems. But when i introduce a line of code to monitor the torque (written every 5 iterations) gnuplot woudn't even start and gives no error out. In the foto log_file is the placement of the value of torque i would like to monitor and in the file gnuplot is my code for it. I don't know what i'm missing or what i'm am doing wrong. For the sake of comparison i included the line of code for mintoring the pressure residuals of the third loop by using the command " sed 'p;n;n' " which i tried to reuse to monitor the torque but doesn't seem to be the right choice. Your help is much appreciated |
|
November 21, 2017, 01:28 |
|
#2 |
Senior Member
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 25 |
Have you tried just using foamMonitor?
|
|
November 21, 2017, 11:55 |
|
#3 |
New Member
Join Date: Nov 2017
Location: Germany
Posts: 11
Rep Power: 9 |
No i didn't use FoamMonitor.
Should it be easier to follow the simulation using FoamMonitor ? |
|
January 27, 2018, 22:54 |
|
#4 |
Member
carno
Join Date: Mar 2009
Posts: 70
Rep Power: 17 |
I use following code to monitor Torque in gnuplot.
Code:
set key bottom right set xlabel "Iterations" set title "Plot of Torque & Flow Rate over Simulationtime" set grid ##### First plot: Torque Plot #set ytics set yr [-70:-40] set ylabel "Torque [Nm]" textcolor rgb "red" plot "< sed s/[\\(\\)]//g ./postProcessing/forces/0/forces.dat" using 1:11 with lines title "Torque",\ ##### Second plot: Flow Rate set y2tics set y2r [0.035:0.045] set y2label "Flow Rate [m3/s]" textcolor rgb "blue" plot "< sed s/[\\(\\)]//g ./postProcessing/patchMassFlows_massFlow/2/massFlow" using 1:2 with lines title "Flow Rate" linecolor 3 axes x1y2 set multiplot pause 1 reread |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Rotor Torque Prediction | jason | OpenFOAM Running, Solving & CFD | 7 | August 16, 2016 10:34 |
Torque and fan efficiency | joaopffg | FloEFD, FloWorks & FloTHERM | 11 | July 3, 2015 10:08 |
Fluent 14.0 file not running in parallel mode in cluster | tejakalva | FLUENT | 0 | February 4, 2015 08:02 |
Torque Converter Pump Torque = Engine Torque? | Torque_Converter | Main CFD Forum | 4 | November 12, 2012 07:44 |
FloWorks torque bug? | PJC | FloEFD, FloWorks & FloTHERM | 0 | November 8, 2009 19:41 |