CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > General Forums > Main CFD Forum

Turbulent Channel 1D Energy Spectra Calculation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 23, 2015, 18:13
Default Turbulent Channel 1D Energy Spectra Calculation
  #1
New Member
 
stran1028
Join Date: Oct 2015
Posts: 1
Rep Power: 0
stran1028 is on a distinguished road
Hello,

I have 2 point correlation data for a turbulent channel case and I'm trying to put together a script to compute the 1D energy spectra from this. To verify my script, I'm using both 2 point correlations from DNS runs done by Moser et al (http://turbulence.ices.utexas.edu/data/MKM/chan395/) and trying to recreate their 1D energy spectra.

Based on what I've seen in literature, the 1D energy spectra should just be the FFT of the 2 point correlation function. However when I try to do this in matlab using the fft function, I'm not able to match Moser's spectra.

A snippet of my matlab code which calculates this is shown below. This was based on the examples shown for the fft function on the matlab website.

yhat=fft(Ruu);
tmpEuu= abs(yhat/L);
Euu = tmpEuu(1:L/2 + 1);
Euu(2:end-1) = Euu(2:end-1);

Any help would be greatly appreciated! Thank you!
stran1028 is offline   Reply With Quote

Old   October 24, 2015, 04:38
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,882
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by stran1028 View Post
Hello,

I have 2 point correlation data for a turbulent channel case and I'm trying to put together a script to compute the 1D energy spectra from this. To verify my script, I'm using both 2 point correlations from DNS runs done by Moser et al (http://turbulence.ices.utexas.edu/data/MKM/chan395/) and trying to recreate their 1D energy spectra.

Based on what I've seen in literature, the 1D energy spectra should just be the FFT of the 2 point correlation function. However when I try to do this in matlab using the fft function, I'm not able to match Moser's spectra.

A snippet of my matlab code which calculates this is shown below. This was based on the examples shown for the fft function on the matlab website.

yhat=fft(Ruu);
tmpEuu= abs(yhat/L);
Euu = tmpEuu(1:L/2 + 1);
Euu(2:end-1) = Euu(2:end-1);

Any help would be greatly appreciated! Thank you!

you should search for similar post wherein this issue was already discussed
FMDenaro is online now   Reply With Quote

Reply

Tags
correlations, energy spectrum, fft, matlab, turbulent channel flow


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
energy spectra from LES simulations kumar OpenFOAM Post-Processing 2 February 23, 2016 13:25
turbulent kinetic energy and turbulent dissipation rate D_L Main CFD Forum 5 July 17, 2010 03:35
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 16:45
turbulent energy spectra ulrich bieder Main CFD Forum 8 June 25, 1999 11:27
Why FVM for high-Re flows? Zhong Lei Main CFD Forum 23 May 14, 1999 14:22


All times are GMT -4. The time now is 14:15.