Post processing in ParaFoam
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 !!!
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.
probes // to monitor
// Where to load it from
// Name of the directory for probe data
// Write at same frequency as fields
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
(-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,
It works nicely. Now I am able to get those data ate selected locations.
Can you how we can plot it by using gnuplot ?
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:
you can also add title, axis title, legend and so on, just check out the gnuplot website.
I hope it helped again
|All times are GMT -4. The time now is 09:53.|