integral length scale and crosscorrelation (with openfoam data, LES pipe flow)
Hi,
i want to calculate the integral length scale of a pipe flow in matlab. the pipe flow (LES) is calculated with openfoam1.6 . I have read out the velocity components (cell center) of 1000 cells in a previewfolder at a one definite timestep. Now I have to calculate the crosscorrelation function (in xdirection): 1. step: i subtract the mean velocity from the axialvelocitycomponent in order to obtain the fluctuating velocity u' 2. step: i calculate the crosscorrelation as: for i=1:1:1000; ufluct(i)=uflukt(1)*uflukt(i) end ucross=ufluct./ufluct(1); ufluct is the same as u' and ucross should be my crosscorrelation coefficient?! but my problem is, my code does not calculate the timeaveraged crosscorrelationcoefficient because i don't know wich kind of data i have to timeaveraged.:confused: i have read some books about it (Pope, Wilcox, Hinze and Lumley ...) but i can't implement their ideas in matlab.:mad: it would be great if somebody has an idea or could explain me how to calculate the integral length scale correctly! best regards, jet 
Hi, can you tell me how to calculate intergral scale, based on Openfoam data? Thank you very much.

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