|
[Sponsors] |
June 23, 2019, 09:09 |
How to calculate wavenumber while using fft?
|
#1 |
Senior Member
Join Date: Jan 2018
Posts: 121
Rep Power: 8 |
I have 192 grids of two point correlation data of a 3.14(m) length domain.
I use the "fft" command in matlab to plot the energy spectrum. How can I calculate wavenumber(k) of each grid? Code:
R= load('2pcor.txt'); PHI = fft(R); % K=?? ; %loglog(K,abs(PHI)); |
|
June 23, 2019, 13:12 |
|
#2 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73 |
Quote:
On your grid of Nx=192 nodes you have 192/2=96 resolvable wavenumbers. Each wavelength is k=n*2*pi/L. Thus, if you L is exactly pi (in meters) you have k=2*n. The maximum in your range is the Nyquist frequency pi/h=pi/(L/Nx)=Nx Last edited by FMDenaro; June 23, 2019 at 17:16. |
||
Tags |
fft, matlab, turbulence |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to calculate centerbody thrust of an aerospike nozzle in Fluent | Roh | FLUENT | 5 | February 21, 2022 12:30 |
How to calculate Turbulent Intensity and Hydraulic Diameter for my problem? | Roh | FLUENT | 1 | June 17, 2018 04:12 |
calculate friction factor & nusselt number | soheil1991 | FLUENT | 3 | March 11, 2017 10:30 |
How to calculate Torque for francis turbine | manish | CFX | 4 | March 15, 2007 03:57 |
fft of unsteady solution | K S Chang | Main CFD Forum | 6 | January 15, 2004 07:42 |