Fourier transform of dynamic mode coefficients for impinging jet along a line from nozzle exit to plate at a distance 0.6 times jet diameter
1 vue (au cours des 30 derniers jours)
Hi everyone. I want to calculate the Fourier transform of dynamic mode coefficients for impinging jet along a line from nozzle exit to plate at a distance 0.6d. Then I want to plot the normalized wavenumber(K) spectra (Amplitude vs Kd). I have shared the code here.
% Compute the corresponding frequencies
Ln = length(Px);
fre = linspace(-Ln/2, Ln/2, Ln);
kkn=kk*0.01; %nondimensionalizing wrt jet dia
I am not getting proper results. Is there any mistake I am doing in the plot? Please check my code.
Paul le 5 Août 2023
It will be easier for people to help if yor provide all of the information needed to run your code. You should save the variable Phi in a .mat file and then add it to your question using the paperclip icon.
Also, it would be helpful if you show, or at least explain, why the result is not what you expect and what the expected result is.
Also, just from looking at the code, the calculation for fre is incorrect. It should be
fre = linspace(-Ln/2, Ln/2-1, Ln); % if Ln is even
fre = linspace(-(Ln-1)/2,(Ln-1)/2,Ln) % if Ln is odd
But the next line is:
which kind of suggests that fre is supposed to be in units of Hz, either cycles/sample or cycles/sec. But fre is just a vector of integers, and probably needs to be scaled by 1/Ln or some other factor to get the correct units.