CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   How can i plot variables over time? (http://www.cfd-online.com/Forums/openfoam/79640-how-can-i-plot-variables-over-time.html)

maysmech August 30, 2010 04:30

How can i plot variables over time?
 
Dear Foamers,

I want plot velocity (U mean, fluctuation and U) over time in the case which is solved with pisoFoam.

How can i do this in paraView? when i choose plot global variable over time none of variables are available to select for y direction.

camille.yvin August 30, 2010 06:31

I think the best is to use the sampleDict to extract data over times and write a script to bring all the informations in one file. After that, plotting is easy with gnuplot.

maysmech August 30, 2010 09:34

Quote:

Originally Posted by camille.yvin (Post 273328)
I think the best is to use the sampleDict to extract data over times and write a script to bring all the informations in one file. After that, plotting is easy with gnuplot.

Thanks for your reply,
if i understand your meaning, i should make a sampleDict file in system folder.
but i have run my case now and i want using paraView software. your suggestion seems good but need to run the case again.
is there another way to plot a variable of one point versus time?

cnsidero August 30, 2010 09:35

You might want to check out pyFoam: http://openfoamwiki.net/index.php/Contrib_PyFoam .

There's one specifically for what you're asking for: http://openfoamwiki.net/index.php/Co...mSamplePlot.py

camille.yvin September 1, 2010 11:19

Quote:

Originally Posted by maysmech (Post 273357)
Thanks for your reply,
if i understand your meaning, i should make a sampleDict file in system folder.
but i have run my case now and i want using paraView software. your suggestion seems good but need to run the case again.
is there another way to plot a variable of one point versus time?

You can use a sample Dict after a simulation. Juste use "sample" instead of "pisoFoam"

alberto September 17, 2010 01:01

Also, paraview can do that.

maysmech September 17, 2010 06:08

Quote:

Originally Posted by alberto (Post 275529)
Also, paraview can do that.

how can paraview do it?

alberto September 17, 2010 10:33

There is a filter called "Plot selection over time"

paka September 22, 2010 22:20

Quote:

Originally Posted by maysmech (Post 273357)
Thanks for your reply,
if i understand your meaning, i should make a sampleDict file in system folder.
[...]

http://www.openfoam.com/docs/user/sample.php


All times are GMT -4. The time now is 04:01.