CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Gnuplot to monitor the torque while running

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 17, 2017, 13:56
Default Gnuplot to monitor the torque while running
  #1
New Member
 
Join Date: Nov 2017
Location: Germany
Posts: 11
Rep Power: 8
elomri is on a distinguished road
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
Attached Images
File Type: jpg log_file.jpg (110.9 KB, 25 views)
File Type: jpg gnuplot_file.jpg (51.8 KB, 22 views)
elomri is offline   Reply With Quote

Old   November 21, 2017, 00:28
Default
  #2
Senior Member
 
Join Date: Nov 2010
Location: USA
Posts: 1,232
Rep Power: 24
me3840 is on a distinguished road
Have you tried just using foamMonitor?
me3840 is offline   Reply With Quote

Old   November 21, 2017, 10:55
Default
  #3
New Member
 
Join Date: Nov 2017
Location: Germany
Posts: 11
Rep Power: 8
elomri is on a distinguished road
No i didn't use FoamMonitor.
Should it be easier to follow the simulation using FoamMonitor ?
elomri is offline   Reply With Quote

Old   January 27, 2018, 21:54
Default
  #4
Member
 
carno
Join Date: Mar 2009
Posts: 70
Rep Power: 17
Carno is on a distinguished road
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
Carno is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Rotor Torque Prediction jason OpenFOAM Running, Solving & CFD 7 August 16, 2016 09:34
Torque and fan efficiency joaopffg FloEFD, FloWorks & FloTHERM 11 July 3, 2015 09:08
Fluent 14.0 file not running in parallel mode in cluster tejakalva FLUENT 0 February 4, 2015 07:02
Torque Converter Pump Torque = Engine Torque? Torque_Converter Main CFD Forum 4 November 12, 2012 06:44
FloWorks torque bug? PJC FloEFD, FloWorks & FloTHERM 0 November 8, 2009 18:41


All times are GMT -4. The time now is 16:36.