CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   Main CFD Forum (http://www.cfd-online.com/Forums/main/)
-   -   Plotting turbulent energy spectra in Matlab (http://www.cfd-online.com/Forums/main/63939-plotting-turbulent-energy-spectra-matlab.html)

nathanpetrelli April 23, 2009 19:18

Plotting turbulent energy spectra in Matlab
 
Hi guys,
I have one dimensional velocity component stored in a matrix over time. (The different rows represent velocity over different time.)

If I want to plot the turbulent energy spectra from here in Matlab, how do I go about it?

vishyaroon April 24, 2009 08:45

Have you tried the psd functions in MATLAB. I guess there is also a p.welsh command that you can use.

nathanpetrelli April 24, 2009 22:57

Aroon,

Thanks for your reply..

I have been trying to first use fft to change the velocity into wavenumber space. Once I have done this, am trying to apply the pwelch function, but I seem to be getting a garbage plot.Nothing that looks like -5/3, but more like random noise.


All times are GMT -4. The time now is 08:21.