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

Write PDF from probes sampling and runtime plotting

Register Blogs Members List Search Today's Posts Mark Forums Read

Like Tree1Likes
  • 1 Post By jose_rodrig

Reply
 
LinkBack Thread Tools Display Modes
Old   June 4, 2011, 13: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: 7
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, 13:49
Default
  #2
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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, 04:53
Default
  #3
Member
 
Josť Rodrigues
Join Date: Jun 2010
Location: IN+/IST Lisbon
Posts: 53
Rep Power: 7
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, 06:03
Default
  #4
Member
 
Josť Rodrigues
Join Date: Jun 2010
Location: IN+/IST Lisbon
Posts: 53
Rep Power: 7
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
mm.abdollahzadeh likes this.
jose_rodrig is offline   Reply With Quote

Old   June 5, 2011, 06:30
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
surface sampling during runtime fisch OpenFOAM Post-Processing 10 February 12, 2015 13:31


All times are GMT -4. The time now is 10:18.