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

Anomaly in energy spectrum

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By FMDenaro

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 30, 2017, 00:59
Default Anomaly in energy spectrum
  #1
Member
 
Aru
Join Date: Feb 2012
Location: Chennai, India
Posts: 40
Rep Power: 14
arunsmec is on a distinguished road
I am computing energy spectrum for computationally obtained turbulence data, which is statistically homogeneous in 2 directions (X & Z). The energy spectrum is calculated for a homogeneous plane, using Fourier transforms of the spatial data. \vec{V}(x,z)\rightarrow\hat{V}(k_x,k_z).
The calculated spectrum shows a 'bump' at higher wavenumbers (not the highest). It is prominent in a semilog plot (attached).
I am wondering what could have resulted in this anomalous behaviour. I assume it is associated with some error in calculating the spectrum but has nothing to do with the physics. However, I am unable to find any error in the calculation.
I would like to know if anybody in the community has encountered a similar erroneous spectrum, and what could cause such anomaly?
Attached Images
File Type: png forum.png (3.4 KB, 49 views)
File Type: png forum1.png (4.5 KB, 44 views)
arunsmec is offline   Reply With Quote

Old   May 30, 2017, 01:22
Default
  #2
Senior Member
 
piu58's Avatar
 
Uwe Pilz
Join Date: Feb 2017
Location: Leipzig, Germany
Posts: 744
Rep Power: 15
piu58 is on a distinguished road
You may look whether the wavelength of your bump region coincides with the size of the mesh.
__________________
Uwe Pilz
--
Die der Hauptbewegung überlagerte Schwankungsbewegung ist in ihren Einzelheiten so hoffnungslos kompliziert, daß ihre theoretische Berechnung aussichtslos erscheint. (Hermann Schlichting, 1950)
piu58 is offline   Reply With Quote

Old   May 30, 2017, 01:49
Default
  #3
Member
 
Aru
Join Date: Feb 2012
Location: Chennai, India
Posts: 40
Rep Power: 14
arunsmec is on a distinguished road
Hi piu58,
I should have mentioned my mesh and domain earlier.
There are 512x128 points in the XZ plane which has a physical dimension 16\pi\times4\pi. Hence the maximum wavenumber for both k_x\&k_z is 32. The computed E(k) for various combinations of k_x\&k_z are binned in nearest integer values of k=\sqrt{k_x^2+k_z^2}. As you suspected, the bump corresponds to k=31,32,33.
I understand that under-resolved data results in oscillations at highest wavenumbers.In this case, I am perplexed by the smooth spectrum beyond k=32.
arunsmec is offline   Reply With Quote

Old   May 30, 2017, 04:29
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
What problem are you solving, a plane channel flow? And what about the Re_tau of your problem? what about y+ of the computed spectrum?

What I do not understand is the fact you have the spectrum extending over the Nyquist frequency... Or am I wrong in understanding your comment?

Then, the magnitude of E(k) is very high, why?
FMDenaro is offline   Reply With Quote

Old   May 30, 2017, 05:22
Default
  #5
Member
 
Aru
Join Date: Feb 2012
Location: Chennai, India
Posts: 40
Rep Power: 14
arunsmec is on a distinguished road
The problem under consideration is temporal mixing layer.
On the x-axis I have k=\sqrt{k_x^2+k_z^2}, which goes up till 32\sqrt{2}. That is why the spectrum extends beyond the Nyquist limit 32. However, I am unsure about the correctness of the same.
As of now, both k and E(k) are not scaled.
My objective of plotting the spectrum is to make sure I am resolving the scales sufficiently.
arunsmec is offline   Reply With Quote

Old   May 30, 2017, 05:42
Default
  #6
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by arunsmec View Post
The problem under consideration is temporal mixing layer.
On the x-axis I have k=\sqrt{k_x^2+k_z^2}, which goes up till 32\sqrt{2}. That is why the spectrum extends beyond the Nyquist limit 32. However, I am unsure about the correctness of the same.
As of now, both k and E(k) are not scaled.
My objective of plotting the spectrum is to make sure I am resolving the scales sufficiently.
No, I strongly suggest to do the analysis along x and z direction, separately. The spectra must be computed only up to the Nyquist frequency along each direction. Furtermore, have you performed also a statistical averaging (plane and time)? Have you waited enough time to let the flow develop?
FMDenaro is offline   Reply With Quote

Old   May 30, 2017, 06:03
Default
  #7
Member
 
Aru
Join Date: Feb 2012
Location: Chennai, India
Posts: 40
Rep Power: 14
arunsmec is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
Furtermore, have you performed also a statistical averaging (plane and time)? Have you waited enough time to let the flow develop?
The spectrum corresponds to fluctuations from a plane averaged mean, during the self-similar evolution of the mixing layer. I have not performed a time averaging. It is observed that the shape of the curve remains the same at all instants.

Quote:
Originally Posted by FMDenaro View Post
I strongly suggest to do the analysis along x and z direction, separately. The spectra must be computed only up to the Nyquist frequency along each direction.
Does this mean calculating one-dimensional spectrum?

To summarise, can I attribute the "bump" to the method where I am going above the Nyquist limit?
arunsmec is offline   Reply With Quote

Old   May 30, 2017, 06:31
Default
  #8
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Compute the 1d spectra but perform the spatial averaging along the normal direction
FMDenaro is offline   Reply With Quote

Old   May 31, 2017, 01:24
Default
  #9
Member
 
Aru
Join Date: Feb 2012
Location: Chennai, India
Posts: 40
Rep Power: 14
arunsmec is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
Compute the 1d spectra but perform the spatial averaging along the normal direction
I infer this as average along Z for k_x, and vice versa. In one of the threads in this forum, it is suggested that a Fourier transform is performed first and the coefficients are averaged. Is that the right way to do it? Or should I take average before transformation?
arunsmec is offline   Reply With Quote

Old   May 31, 2017, 04:16
Default
  #10
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by arunsmec View Post
I infer this as average along Z for k_x, and vice versa. In one of the threads in this forum, it is suggested that a Fourier transform is performed first and the coefficients are averaged. Is that the right way to do it? Or should I take average before transformation?

No, you compute first the FFT and then you perform the average of the coefficients
FMDenaro is offline   Reply With Quote

Old   June 1, 2017, 04:07
Default
  #11
Member
 
Aru
Join Date: Feb 2012
Location: Chennai, India
Posts: 40
Rep Power: 14
arunsmec is on a distinguished road
The calculated one-dimensional spectrum is attached.

A smooth curve is not obtained even after averaging FFT coefficients in the Z direction. Is it required to perform an average in time to obtain a smooth spectrum?
Attached Images
File Type: png Eu.png (7.1 KB, 12 views)
arunsmec is offline   Reply With Quote

Old   June 1, 2017, 04:31
Default
  #12
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
That looks quite correct ... have a look at sec.5.2 here
https://www.researchgate.net/publica...-uniform_grids

and Ref.42 in the reference
FMDenaro is offline   Reply With Quote

Old   June 3, 2017, 07:18
Default
  #13
Member
 
Aru
Join Date: Feb 2012
Location: Chennai, India
Posts: 40
Rep Power: 14
arunsmec is on a distinguished road
One dimensional spectra, E(k_x)\ \& \ E(k_z), calculated from the spatial data corresponding to center plane, are attached. Here I have binned them into integer values of k_x\& k_z.

Quote:
Originally Posted by FMDenaro View Post
That looks quite correct ... have a look at sec.5.2 here
In this reference, the spectrum is calculated as
E(k)=\frac{1}{2L}\int^{+L}_{-L}\left|\hat{u}(k,y)\right|^2dy,
which seems to be an averaging in the non-homogeneous direction. If so, what difference this makes to the spectrum?
Attached Images
File Type: png xspec.png (5.7 KB, 7 views)
File Type: png zspec.png (5.8 KB, 6 views)
arunsmec is offline   Reply With Quote

Old   June 3, 2017, 07:36
Default
  #14
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Your results seems physically acceptable.

You can have two choices:
1) the averaging along the non-homogeneous domain give the total energy content of the mixing layer for each wavenumber component.
2) computing and analysing spectra at several stations along y+. This is for example the standard procedure for a channel flow.

Both are correct and the choice depends on what you want to analyse. I used the averaging along y to compare the solutions with the paper of Lesieur.
FMDenaro is offline   Reply With Quote

Old   June 3, 2017, 07:57
Default
  #15
Member
 
Aru
Join Date: Feb 2012
Location: Chennai, India
Posts: 40
Rep Power: 14
arunsmec is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
Your results seems physically acceptable.
Dear FMDenaro,

Thank you for your valuable suggestions.

Can you provide some clarification regarding the 'binning' procedure?
Quote:
Originally Posted by arunsmec View Post
The calculated one-dimensional spectrum is attached.
A smooth curve is not obtained even after averaging FFT coefficients in the Z direction. Is it required to perform an average in time to obtain a smooth spectrum?
In this plot, I used values of k, scaled according to the length of the domain and therefore are rational numbers.

Quote:
Originally Posted by arunsmec View Post
One dimensional spectra, E(k_x)\ \& \ E(k_z), calculated from the spatial data corresponding to center plane, are attached.
In the latter plot, the spectrum is binned to integer values of k.
E(k)=\sum_{k'} E(k'),\ \forall k'\in [k-0.5, k+0.5)
arunsmec is offline   Reply With Quote

Old   June 3, 2017, 08:12
Default
  #16
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
The plot is versus the frequency or the integer wavenumber, the relation being k=n*2*pi/L (n=0,1,2..,Nmax). The Nyquist frequency is kmax=pi/h. This is for each direction Lx and Lz.
What do you mean exactly for "binning procedure"?
FMDenaro is offline   Reply With Quote

Old   June 3, 2017, 08:27
Default
  #17
Member
 
Aru
Join Date: Feb 2012
Location: Chennai, India
Posts: 40
Rep Power: 14
arunsmec is on a distinguished road
The length of the domain in x direction is 16\pi and has 512 points. A Fourier transform of this spatial data gives amplitudes of 256 frequencies (n=0,1...256). Corresponding wavenumbers are k=0,1/8,2/8.....,32 and they are not all integers.

In the latter plot, I have used only integer values of wavenumber on the x-axis. The energy of non-integer wavenumbers is rounded off to nearest integer k. For example, E(1) is the sum of all u(k)^2 for k=4/8,5/8,.....,10/8,11/8.
This procedure was described in a reference, but I couldn't trace it now.
arunsmec is offline   Reply With Quote

Old   June 3, 2017, 08:38
Default
  #18
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,896
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
After you perform the FFT, you have a vector of the complex Fourier coefficients for each integer n=0,1,... Thus, you can plot (in a log scale) the modulus versus these non-dimensional numbers or you simply convert the integers in the dimensional spatial frequency k = n*2*pi/L.
No "binning" in such procedure...
arunsmec likes this.
FMDenaro is offline   Reply With Quote

Reply


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
How can I map the spectrum energy with its associated velocity field? juliom Main CFD Forum 0 March 23, 2016 09:16
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 16:45
turbulent energy spectrum cfd.newbie Siemens 1 June 20, 2008 00:48
LES correlation and turbulent energy spectrum Fabian Main CFD Forum 4 October 18, 2005 03:04
Energy Spectrum Emad Khalifa Main CFD Forum 3 June 30, 2003 17:03


All times are GMT -4. The time now is 16:55.