CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Time history of a variable at a point for calculating correlations? (https://www.cfd-online.com/Forums/openfoam/67746-time-history-variable-point-calculating-correlations.html)

eoin August 25, 2009 14:08

Time history of a variable at a point for calculating correlations?
 
Hi everyone, Is there any utility available to convert openfoam output data into files corresponding to each individual grid point which contain the time history of a flow variable at that point? What i want to do is calculate two point correlation functions between various grid points. Alternatively, is there maybe an easy way of doing this? Thanks,

gschaider August 25, 2009 16:07

Quote:

Originally Posted by eoin (Post 227460)
Hi everyone, Is there any utility available to convert openfoam output data into files corresponding to each individual grid point which contain the time history of a flow variable at that point? What i want to do is calculate two point correlation functions between various grid points. Alternatively, is there maybe an easy way of doing this?

Well the value of the cell N is always the (N+1)th value in the internalField. So you could always write a program/script that gets the Nth value from all the data files of that field.

If you're more a point-and-click person, have a look at the Temporal filters in paraview. If you view data in the spreadsheetview and export you get CSV-files which can be read by any spreadsheet-program. Of course you don't want to do that for all the cells of the mesh
(But I don't know how well this works for time-series, you'll have to try for yourself)

Bernhard


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