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

How can i plot variables over time?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   August 30, 2010, 04:30
Lightbulb How can i plot variables over time?
  #1
Senior Member
 
maysmech's Avatar
 
Join Date: Jan 2010
Posts: 347
Blog Entries: 2
Rep Power: 8
maysmech is on a distinguished road
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.
maysmech is offline   Reply With Quote

Old   August 30, 2010, 06:31
Default
  #2
New Member
 
yvin
Join Date: Dec 2009
Posts: 7
Rep Power: 7
camille.yvin is on a distinguished road
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.
camille.yvin is offline   Reply With Quote

Old   August 30, 2010, 09:34
Default
  #3
Senior Member
 
maysmech's Avatar
 
Join Date: Jan 2010
Posts: 347
Blog Entries: 2
Rep Power: 8
maysmech is on a distinguished road
Quote:
Originally Posted by camille.yvin View Post
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?
maysmech is offline   Reply With Quote

Old   August 30, 2010, 09:35
Default
  #4
Senior Member
 
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 368
Rep Power: 12
cnsidero is on a distinguished road
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
cnsidero is offline   Reply With Quote

Old   September 1, 2010, 11:19
Default
  #5
New Member
 
yvin
Join Date: Dec 2009
Posts: 7
Rep Power: 7
camille.yvin is on a distinguished road
Quote:
Originally Posted by maysmech View Post
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"
camille.yvin is offline   Reply With Quote

Old   September 17, 2010, 01:01
Default
  #6
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
Also, paraview can do that.
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   September 17, 2010, 06:08
Default
  #7
Senior Member
 
maysmech's Avatar
 
Join Date: Jan 2010
Posts: 347
Blog Entries: 2
Rep Power: 8
maysmech is on a distinguished road
Quote:
Originally Posted by alberto View Post
Also, paraview can do that.
how can paraview do it?
maysmech is offline   Reply With Quote

Old   September 17, 2010, 10:33
Default
  #8
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,894
Rep Power: 26
alberto will become famous soon enoughalberto will become famous soon enough
There is a filter called "Plot selection over time"
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as live DVD/USB, hard drive image and virtual image.
OpenQBMM - An open-source implementation of quadrature-based moment methods
alberto is offline   Reply With Quote

Old   September 22, 2010, 22:20
Default
  #9
Senior Member
 
Join Date: Mar 2009
Posts: 225
Rep Power: 9
paka is on a distinguished road
Quote:
Originally Posted by maysmech View Post
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
paka 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
How to plot flow rate over time with Paraview sekunda OpenFOAM Paraview & paraFoam 12 July 20, 2014 15:24
PostChannel maka OpenFOAM Post-Processing 5 July 22, 2009 09:15
how to plot a variable with respect to time nandiganavishal OpenFOAM Running, Solving & CFD 0 March 15, 2009 21:02
choosing a time frame to present a plot AAA FLUENT 1 July 29, 2007 18:41
flow time plot units alex FLUENT 0 July 2, 2007 13:38


All times are GMT -4. The time now is 08:30.