CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] Plot variables versus time

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 21, 2008, 03:19
Default Plot variables versus time
  #1
jml
New Member
 
Jml
Join Date: Mar 2009
Posts: 23
Rep Power: 17
jml is on a distinguished road
I want to plot a given variable like pressure or velocity over time (in all time steps calculated)using openfoam 1.5.
Anyone know how can i do it?
Thanks.
jml is offline   Reply With Quote

Old   November 21, 2008, 03:35
Default hi Jorge, You can use "foam
  #2
Member
 
Mahendra
Join Date: Mar 2009
Location: Pune, Maharashtra, India
Posts: 65
Rep Power: 17
mahendra is on a distinguished road
hi Jorge,

You can use "foamJob" command and it writes a "log" file. After that you can use "foamLog" command in which the residuals of all variables are stored at every interations.

Using third party software you can read the particular variable file to generate the plot.

example:

1. command: "foamJob MRFSimpleFoam" // This will fire the MRFSimpleFoam application and it will simultaneously start writing a "log" file in which information at all iterations is stored.

2. command after the simulation is finished: "foamLog log" // This will create the "logs" directory in which all the residual history is stored.

Hope I answered your question.

Regards,
Mahendra
mahendra is offline   Reply With Quote

Old   November 21, 2008, 04:09
Default Hi Jorge, An other solution
  #3
Senior Member
 
Cedric DUPRAT
Join Date: Mar 2009
Location: Nantes, France
Posts: 195
Rep Power: 17
cedric_duprat is on a distinguished road
Hi Jorge,

An other solution, maybe simpler than Mahendra's one is to use the probes utility.
check "probe" on the forum search or the user guide near the end.

you define coordinate inside your geometry, and parameter you want to plot (in system/controlDict). At each time step, Foam saves the parameter(s) at the coordinate(s).
Then, you got a colum by time file which can be ploted.

Clear ?

Cedric
cedric_duprat is offline   Reply With Quote

Old   December 1, 2008, 12:16
Default Dear All, Gamma data over tim
  #4
New Member
 
Martin Romagnoli
Join Date: Mar 2009
Location: Rosario, Santa Fe, Argentina
Posts: 22
Rep Power: 17
martinr is on a distinguished road
Dear All,
Gamma data over time was plotted using paraview 2.4.4 and then it was compared with the same graph manually done. Unfortunately, they are different and I think that paraview is giving me bad results.
Any clue?

Thanks you in advance
Martín.

PS: I dont know how can I insert the plot here for you visualize it.
martinr is offline   Reply With Quote

Old   December 3, 2008, 08:44
Default http://www.cfd-online.com/Open
  #5
New Member
 
Martin Romagnoli
Join Date: Mar 2009
Location: Rosario, Santa Fe, Argentina
Posts: 22
Rep Power: 17
martinr is on a distinguished road

martinr 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
bash script for pseudo-parallel usage of reconstructPar kwardle OpenFOAM Post-Processing 41 August 23, 2023 02:48
Floating point exception error lpz_michele OpenFOAM Running, Solving & CFD 53 October 19, 2015 02:50
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 13:58
plot over time fferroni OpenFOAM Post-Processing 7 June 8, 2012 07:56
How can i plot variables over time? maysmech OpenFOAM 8 September 22, 2010 22:20


All times are GMT -4. The time now is 19:39.