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

Post processing in ParaFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 31, 2012, 03:32
Default Post processing in ParaFoam
  #1
Member
 
Gitesh
Join Date: Jan 2010
Location: Finland
Posts: 73
Rep Power: 16
Gitesh P is on a distinguished road
Hello,

I have calculated case in OpenFOAM. I need some help regarding post processing in ParaFoam.

(i) If I want to plot certain data for e.g. velocity/temperature with different time step at certain location in the domain then how can I do that. I mean plot of T vs time(from 0 sec to 5 sec).

(ii) I want to plot same graph T vs time (from 0 sec to 5 sec) but this time I need one averaged value of T in the whole domain at particular time step.

Please help me !!!

With regards,
GP
Gitesh P is offline   Reply With Quote

Old   October 31, 2012, 10:32
Default
  #2
New Member
 
Join Date: Jan 2012
Posts: 8
Rep Power: 14
RomW is on a distinguished road
Hi Gitesh,


If I understood well your problem, I believe you should use the 'probes' function to monitor a given variable (T, U etc...) at a given point location within your computational domain at different time step.

To do so, you should add this piece of code in your system/controlDict file of your case.

Example:

functions
{
probes // to monitor
{
// Where to load it from
functionObjectLibs ("libsampling.so");
type probes;

// Name of the directory for probe data
//name probes;

// Write at same frequency as fields
outputControl timeStep;
outputInterval 1;
setFormat gnuplot; // you can set the format you want but if you are used to gnuplot, it is easy // to get the data out of that

// Fields to be probed
fields
(
T
);

probeLocations
(
(-0.2 0.055 0)
);
}
}

Your result file will appear in the 'probes folder', newly created, once your run the case and successfully ran the first timeStep,


Hope it helps,
Romain
RomW is offline   Reply With Quote

Old   November 2, 2012, 05:47
Default
  #3
Member
 
Gitesh
Join Date: Jan 2010
Location: Finland
Posts: 73
Rep Power: 16
Gitesh P is on a distinguished road
Thanks Romain,

It works nicely. Now I am able to get those data ate selected locations.

Can you how we can plot it by using gnuplot ?

With regards,
GP
Gitesh P is offline   Reply With Quote

Old   November 2, 2012, 06:30
Default
  #4
New Member
 
Join Date: Jan 2012
Posts: 8
Rep Power: 14
RomW is on a distinguished road
Assuming that you already installed gnuplot, open the 'xterm' terminal and once in the probes\0.446 directory (whatever time, but wherever the probe gnu file is located), run 'gnuplot' command and type:

Quote:
plot 'U' using 1:2 with line
replace U by whatever variable you probe (should also be the name of the gnuplot file) and 1:2 indicates the data column you need to use, so just replace those values by the one you want to use and 'with line' connects your data points.

you can also add title, axis title, legend and so on, just check out the gnuplot website.

I hope it helped again
Romain
RomW 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
[OpenFOAM] is parallel processing available in parafoam for post processing? sachinlb ParaView 1 August 14, 2012 09:52
Ansys Post processing ano999 ANSYS 1 May 27, 2011 16:24
NO model vs post processing in coal combustion,CFX sakalido CFX 1 April 15, 2011 14:07
post processing for KIVA dirga Main CFD Forum 5 April 23, 2009 10:58
Post Processing in FEM Abhijit Tilak Main CFD Forum 0 April 26, 2004 11:59


All times are GMT -4. The time now is 12:24.