|
[Sponsors] |
June 8, 2009, 23:20 |
How to plot variables over time
|
#1 |
Member
Sven Winkler
Join Date: May 2009
Posts: 70
Rep Power: 17 |
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! |
|
June 9, 2009, 04:15 |
|
#2 |
Member
Leonardo Giampani Morita
Join Date: Apr 2009
Location: Paris, France
Posts: 58
Rep Power: 17 |
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 |
|
June 9, 2009, 14:17 |
|
#3 |
Member
Sven Winkler
Join Date: May 2009
Posts: 70
Rep Power: 17 |
Hey Leonardo,
thanks for your reply. Where can I find the oodles/pitzDaily tutorial? Thank you! |
|
June 9, 2009, 14:39 |
I think he means here...
|
#4 |
New Member
Andrew Godfrey
Join Date: Mar 2009
Posts: 7
Rep Power: 17 |
~/OpenFOAM/OpenFOAM-1.5/tutorials/oodles/pitzDaily/system/controlDict
|
|
June 9, 2009, 15:53 |
|
#5 |
Member
Leonardo Giampani Morita
Join Date: Apr 2009
Location: Paris, France
Posts: 58
Rep Power: 17 |
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! |
|
June 20, 2009, 07:44 |
Plot over time with paraview
|
#6 |
New Member
vinu varghese
Join Date: Apr 2009
Posts: 9
Rep Power: 17 |
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. |
|
April 6, 2011, 18:58 |
velocity function
|
#7 |
New Member
Azadeh
Join Date: Mar 2011
Posts: 2
Rep Power: 0 |
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 |
|
July 11, 2011, 15:55 |
|
#8 |
New Member
Hamed Kh.
Join Date: Dec 2010
Location: Tehran , Iran
Posts: 18
Rep Power: 15 |
Hi Azadeh
if i understand your prolem, you should use groovyBC for your boundry condition. |
|
|
|
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 |