|
[Sponsors] |
Write PDF from probes sampling and runtime plotting |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 4, 2011, 14:36 |
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 |
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 |
|
June 4, 2011, 14:49 |
|
#2 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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
__________________
|
|
June 5, 2011, 05:53 |
|
#3 |
Member
José Rodrigues
Join Date: Jun 2010
Location: IN+/IST Lisbon
Posts: 53
Rep Power: 16 |
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? |
|
June 5, 2011, 07:03 |
|
#4 | |
Member
José Rodrigues
Join Date: Jun 2010
Location: IN+/IST Lisbon
Posts: 53
Rep Power: 16 |
Quote:
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 |
||
June 5, 2011, 07:30 |
|
#5 |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
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:
Bruno
__________________
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
surface sampling during runtime | fisch | OpenFOAM Post-Processing | 12 | February 7, 2022 08:49 |