CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Post-Processing (http://www.cfd-online.com/Forums/openfoam-post-processing/)
-   -   Plot over Line (http://www.cfd-online.com/Forums/openfoam-post-processing/70158-plot-over-line.html)

vw.cfd November 16, 2009 09:23

Plot over Line
 
HI,

I have a very simple query regarding 'Plot over Line' option in ParaView. I have a transient simulation, i wish to compare the results by using the Plot over Line option for various time-steps. But, i want to plot it all in one chart(superpose on one plot). Is it possible to do this in paraview 3.4? if not can i extract the date to Tecplot format?

ThanX!!!
varun

florian_krause November 16, 2009 09:51

Hi Varun,

I had the same task to perform and I also could not find something like this in paraview....

As an alternative I used the sample utility ( which also gives you the freedom to sample either interpolated or midpoint data ) and then I made a small matlab script which loops over all ./sets/<time directory> to read the sampled data.

maybe this helps

Best,
Florian

vw.cfd November 16, 2009 10:02

Hi Florian,

ThanX for the idea, but could you please elaborate on how to use the sample utility. I have'nt performed anythin of such sort before.

Thnx again!

varun

florian_krause November 16, 2009 10:53

Hi Varun,

what about searching in the UserGuide or ask google for e.g. 'sample openfoam' I am pretty sure, that the first hit will answer your question.... ;)

Best,
Florian

zobekenobe December 5, 2009 16:25

using sample
 
basically thers a sampleDict file that you paste in /system directory and then after having run the case use the following command

sample -time x
where x is the time at which you want a sample of the data

a log file will be created that can then simply be transferred to somthing like excel etc.

by simply giving sample as a command the log file of all your time steps will created consuming alot of your space.

now basically in the sampleDict file modify the coordinates of the line over which you want the data ...if wrongly done then you have empty files of the variables created within the log directory


All times are GMT -4. The time now is 17:10.