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

How to plot variables over time

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 8, 2009, 23:20
Default How to plot variables over time
  #1
Member
 
Sven Winkler
Join Date: May 2009
Posts: 70
Rep Power: 17
sven is on a distinguished road
Hey,

I want to plot some variables (velocity, pressure) over time. Unfortunately OpenFOAM writes the values for each timestep in a own folder. Is there a possibility to get just one file in which the values of a certain variable are listed for every time step! best would be to have a file with two columns, the first indicating the time step, the second indicating the value of a variable at that time step.Thanks for your help!
sven is offline   Reply With Quote

Old   June 9, 2009, 04:15
Default
  #2
Member
 
Leonardo Giampani Morita
Join Date: Apr 2009
Location: Paris, France
Posts: 58
Rep Power: 17
leonardo.morita is on a distinguished road
Hello,

Search for "probe" here in the forum. It's a function you can call in the controlDict that does exactly what you need. See the oodles/pitzDaily tutorial for syntax.

Regards,

Leonardo
leonardo.morita is offline   Reply With Quote

Old   June 9, 2009, 14:17
Default
  #3
Member
 
Sven Winkler
Join Date: May 2009
Posts: 70
Rep Power: 17
sven is on a distinguished road
Hey Leonardo,

thanks for your reply. Where can I find the oodles/pitzDaily tutorial? Thank you!
sven is offline   Reply With Quote

Old   June 9, 2009, 14:39
Default I think he means here...
  #4
New Member
 
Andrew Godfrey
Join Date: Mar 2009
Posts: 7
Rep Power: 17
agodfrey is on a distinguished road
~/OpenFOAM/OpenFOAM-1.5/tutorials/oodles/pitzDaily/system/controlDict
agodfrey is offline   Reply With Quote

Old   June 9, 2009, 15:53
Default
  #5
Member
 
Leonardo Giampani Morita
Join Date: Apr 2009
Location: Paris, France
Posts: 58
Rep Power: 17
leonardo.morita is on a distinguished road
Actually, most of OpenFOAM tutorials aren't like other software's. Only three are documented with detailled instructions (step by step). However in each solver folder (~/OpenFOAM/<user>-<version>/run/<solver>) you can find one or more examples of cases, usually ready to run. These cases are very useful for you to see how to write input files with boundary and initial conditions, solver and model parameters, numerical schemes etc.
Take a good look into the UserGuide and search for tips here in the Forum!
Good luck!
leonardo.morita is offline   Reply With Quote

Old   June 20, 2009, 07:44
Default Plot over time with paraview
  #6
New Member
 
vinu varghese
Join Date: Apr 2009
Posts: 9
Rep Power: 17
vinu is on a distinguished road
You can also plot using Paraview. invoke paraview

For OpenFOAM 1.4.1

command is

paraFoam casedirectoryname


For OpenFOAM 1.5

Go inside the case directory and do the command

paraFoam


After paraview is up. click the accept button. The go to Filters menu. then choose Extract parts. Then choose internal mesh from the left pane below where you saw the accept button. Again click accept. The choose probe from filters menu. Give the probe location in the left pane. Remember not to select any time values during this. Also turn on the enable x-y plot and temporal plot if u want to see the plot. After plot is over click save as button. This will give u the values in .csv format.


Please correct if have written anything wrong.
vinu is offline   Reply With Quote

Old   April 6, 2011, 18:58
Default velocity function
  #7
New Member
 
Azadeh
Join Date: Mar 2011
Posts: 2
Rep Power: 0
Azadeh90 is on a distinguished road
Hi everyone
I have a velocity for my moving wall that is a function of time, I have the function but I don't know where I can write it. I mean U is not a fix value.
It would be very kine of u if anyone could help and explain it in detail since I'm very knew to openfoam
Thanks a lot
Azadeh
Azadeh90 is offline   Reply With Quote

Old   July 11, 2011, 15:55
Default
  #8
New Member
 
Hamed Kh.
Join Date: Dec 2010
Location: Tehran , Iran
Posts: 18
Rep Power: 16
hkhosravi is on a distinguished road
Hi Azadeh
if i understand your prolem, you should use groovyBC for your boundry condition.
hkhosravi 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
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 19:41
flow time plot units alex FLUENT 0 July 2, 2007 14:38
Pressure vs Time Plot VERY URGENT!!!! Matthias CFX 1 March 30, 2006 18:38
udf with spacial and time variables hongxiao FLUENT 6 March 17, 2005 23:46


All times are GMT -4. The time now is 16:22.