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

Write PDF from probes sampling and runtime plotting

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 2 Post By jose_rodrig

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 4, 2011, 14:36
Default Write PDF from probes sampling and runtime plotting
  #1
Member
 
José Rodrigues
Join Date: Jun 2010
Location: IN+/IST Lisbon
Posts: 53
Rep Power: 16
jose_rodrig is on a distinguished road
Hi

Is there any script on openFoam allowing one to write automatically the pdf (probability density function) from the probes output obtained in run time by the functionObjects?

Also, is there a way to display at run-time (with gnuplot, p.e.) a plot of the velocity or any other field?

Thx
Jose
jose_rodrig is offline   Reply With Quote

Old   June 4, 2011, 14:49
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi José,

In case no one answers you in the mean time, and since I don't know about any function object that does that out-of -the-box, you can try a combo of:
Or simply try swak4foam and/or simpleFunctionObjects.

Best regards,
Bruno
__________________
wyldckat is offline   Reply With Quote

Old   June 5, 2011, 05:53
Default
  #3
Member
 
José Rodrigues
Join Date: Jun 2010
Location: IN+/IST Lisbon
Posts: 53
Rep Power: 16
jose_rodrig is on a distinguished road
Thanks Bruno, It is an alternative

Anyway, when using the sampling functionObject to plot the velocity, it outputs the U vector in the format

# Time
0.00224007 (0.740058 -0.0983759 -0.000459691)
0.00224274 (0.740748 -0.0962097 -0.000449821)
...

How can I plot the Ux component alone using gnuplot?
jose_rodrig is offline   Reply With Quote

Old   June 5, 2011, 07:03
Default
  #4
Member
 
José Rodrigues
Join Date: Jun 2010
Location: IN+/IST Lisbon
Posts: 53
Rep Power: 16
jose_rodrig is on a distinguished road
Quote:
Originally Posted by jose_rodrig View Post
Anyway, when using the sampling functionObject to plot the velocity, it outputs the U vector in the format

# Time
0.00224007 (0.740058 -0.0983759 -0.000459691)
0.00224274 (0.740748 -0.0962097 -0.000449821)
...

How can I plot the Ux component alone using gnuplot?
Ok, I found the answer. For those interested, in the plot command you need to had the format of the file using the "using" option as

gnuplot> plot "file" plot using 1:2 '%lf (%lf'

where 1 is the colum "Time" , 2 is the 1st component of U and %lf is a double.

Jose
jose_rodrig is offline   Reply With Quote

Old   June 5, 2011, 07:30
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,982
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Hi José,

I'm glad you've managed to find the solution with gnuplot!

By the way, if and when you start to use R, it also provides very powerful plotting utilities!

Since I don't know which Linux box you are using, R is named as:
Best regards,
Bruno
__________________
wyldckat 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
surface sampling during runtime fisch OpenFOAM Post-Processing 12 February 7, 2022 08:49


All times are GMT -4. The time now is 06:58.