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

Input values in Energy Spectra

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 9, 2022, 02:12
Question Input values in Energy Spectra
  #1
New Member
 
Michael
Join Date: Jan 2022
Location: Birmingham, UK
Posts: 8
Rep Power: 4
MichaelBham is on a distinguished road
Dear all,

I read several threads about how to calculate energy spectra and they said it should be about the instantaneous velocity field. However, in Pope's book, it takes the two-point correlation first, in which the velocity fluctuation u' (u - u(mean on time)) is involved.

Moreover, the turbulent kinetic energy is the integral of E(k) on k (the area under E line in the E-k plot), which further shows that E should be about the fluctuation u' instead of the instantaneous velocity u.

I know this question may be very fundamental but I am really confused. Which property should I use to get the energy spectra to verify Kolmogorov -5/3 Law?

Greetings




P.S.

Here is how I calculate energy speactra (for 2D):

1. Get the Fourier Transform of the velocity (u or u' I am not sure) field F(u) and F(v). Their wavenumber kx and ky are also obtained.

2. phi = F(u)*(F(u).conjugate) + F(v)*(F(v).conjugate). With the correlation theorem the correlation process can be simplified.

3. For a specific wavenumber k, E(k) = sum(phi) with its sqrt(kx**2 + ky**2) between (k - 1/2 dk) and (k + 1/2 dk).
MichaelBham is offline   Reply With Quote

Old   February 9, 2022, 05:21
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
You can also compute the 1d spectra. That is quite common in literature.
FMDenaro is online now   Reply With Quote

Old   February 9, 2022, 08:15
Default
  #3
New Member
 
Michael
Join Date: Jan 2022
Location: Birmingham, UK
Posts: 8
Rep Power: 4
MichaelBham is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
You can also compute the 1d spectra. That is quite common in literature.
Hi, I mean, should I use u or u' for the energy spectra? Many thanks.
MichaelBham is offline   Reply With Quote

Old   February 9, 2022, 09:02
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by MichaelBham View Post
Hi, I mean, should I use u or u' for the energy spectra? Many thanks.
The contribution given by the steady mean velocity appears only in the zero-th Fourier coefficient, thus don’t worry much about the difference.
FMDenaro is online now   Reply With Quote

Old   February 9, 2022, 10:22
Default
  #5
New Member
 
Michael
Join Date: Jan 2022
Location: Birmingham, UK
Posts: 8
Rep Power: 4
MichaelBham is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
The contribution given by the steady mean velocity appears only in the zero-th Fourier coefficient, thus don’t worry much about the difference.
The time-mean velocity is not a constant among the spatial field so that the Fourier transform of u and u' is totally different. By 'zero-th Fourier coefficient' do you mean the 0-wavenumber term in the FFT result, like the difference between FFT(0,1,0,1) and FFT(1,2,1,2)?

Here the difference is (1,1,1,1) so that only the 0-wavenumber term in the FFT result will be influenced. However, the time-mean velocity field may be like (0.5,0.2,-0.1,0.6) and FFT(0,1,0,1) and FFT(0.5,1.2,-0.1,1.6) will be totally different. I tried u and u' for the spectra, they have different results but both were close to Kolmogorov -5/3 law. This law is obtained by u', rather than u. Is it correct?
MichaelBham is offline   Reply With Quote

Old   February 9, 2022, 10:30
Default
  #6
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by MichaelBham View Post
The time-mean velocity is not a constant among the spatial field so that the Fourier transform of u and u' is totally different. By 'zero-th Fourier coefficient' do you mean the 0-wavenumber term in the FFT result, like the difference between FFT(0,1,0,1) and FFT(1,2,1,2)?

Here the difference is (1,1,1,1) so that only the 0-wavenumber term in the FFT result will be influenced. However, the time-mean velocity field may be like (0.5,0.2,-0.1,0.6) and FFT(0,1,0,1) and FFT(0.5,1.2,-0.1,1.6) will be totally different.

In general yes, the mean field has a spectral distribution due to possibile variability in space but as the original question in the post concerne the comparison with the inertial range -5/3 I suppose that the flow problem is standard, like homogeneous turbulence (no variation, zero mean) or channel flow (mean velocity varies only in vertical direction not along the homogeneous directions).
FMDenaro is online now   Reply With Quote

Old   February 9, 2022, 10:45
Default
  #7
New Member
 
Michael
Join Date: Jan 2022
Location: Birmingham, UK
Posts: 8
Rep Power: 4
MichaelBham is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
In general yes, the mean field has a spectral distribution due to possibile variability in space but as the original question in the post concerne the comparison with the inertial range -5/3 I suppose that the flow problem is standard, like homogeneous turbulence (no variation, zero mean) or channel flow (mean velocity varies only in vertical direction not along the homogeneous directions).
Actually it is the benchmark driven-lid cavity case, which is not homogeneous. Does Kolmogorov law still apply to such case? If yes, which (u or u') should be used for the energy spectra, as the time-mean velocity field varies in both x and y directions?
MichaelBham is offline   Reply With Quote

Old   February 9, 2022, 10:53
Default
  #8
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,764
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
If you're really unsure and want to do things the "right" way then use the u'. Now the issue you will encounter is how the heck do you get u' in practice because you don't know the mean field without running the entire simulation first. Then you have to go back and subtract the mean from u at every spacetime to get u'. This is impossible if you didn't save u at every location at every time. Even if you did save it, you're probably out of hard disk space unless you are working on small calculations like an individual line. Hence, ppl that have experience calculating these spectra will abuse certain similarities of the transforms of u and u'.

If you have a spatially varying mean flow (i.e. anything that isn't a uniform flow) then you have two-point correlations that end up depending on the x-coordinate and spectra with different y-intercepts E(k=0) at each spatial location: i.e. you have E(x,k) instead of E(k) but really the spatial mean flow is described by E(x,k=0) an the energy spectrum at values of k not zero will be proportional to the mean flow at k=0. So yes it change the scales when you plot the spectrum of u and u' side by side, but you can math it back together. And it doesn't affect the shape/slope.


I also do not have any experience with the lid-driven cavity problem to tell you what the spectra is supposed to look like.
LuckyTran is offline   Reply With Quote

Old   February 9, 2022, 11:02
Default
  #9
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by MichaelBham View Post
Actually it is the benchmark driven-lid cavity case, which is not homogeneous. Does Kolmogorov law still apply to such case? If yes, which (u or u') should be used for the energy spectra, as the time-mean velocity field varies in both x and y directions?
No, you cannot compute that from a 2d lid driven cavity flow. Be aware that the flow is totally confined. The only case I can think could produce some similar behavior to be compared at the inertial range is the 3d lid driven cavity but with the periodic spanwise direction. And you can check the 1d spectra along such direction but only in the center of the cavity, far from the walls.
But I am not aware of published results about this test problem.
FMDenaro is online now   Reply With Quote

Old   February 9, 2022, 11:28
Default
  #10
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by LuckyTran View Post
If you're really unsure and want to do things the "right" way then use the u'. Now the issue you will encounter is how the heck do you get u' in practice because you don't know the mean field without running the entire simulation first. Then you have to go back and subtract the mean from u at every spacetime to get u'. This is impossible if you didn't save u at every location at every time. Even if you did save it, you're probably out of hard disk space unless you are working on small calculations like an individual line. Hence, ppl that have experience calculating these spectra will abuse certain similarities of the transforms of u and u'.

If you have a spatially varying mean flow (i.e. anything that isn't a uniform flow) then you have two-point correlations that end up depending on the x-coordinate and spectra with different y-intercepts E(k=0) at each spatial location: i.e. you have E(x,k) instead of E(k) but really the spatial mean flow is described by E(x,k=0) an the energy spectrum at values of k not zero will be proportional to the mean flow at k=0. So yes it change the scales when you plot the spectrum of u and u' side by side, but you can math it back together. And it doesn't affect the shape/slope.


I also do not have any experience with the lid-driven cavity problem to tell you what the spectra is supposed to look like.



That's right but if one wants to compute an energy spectra along a direction, the use of the FFT implies that such direction is of homogeneity for the flow, thus there is no possibility for the statistics to depend on the position. On the other hand, if the flow is not homogeneous the periodicity does not apply and the method must be changed.
FMDenaro is online now   Reply With Quote

Old   February 9, 2022, 12:14
Default
  #11
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,764
Rep Power: 66
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Quote:
Originally Posted by FMDenaro View Post
That's right but if one wants to compute an energy spectra along a direction, the use of the FFT implies that such direction is of homogeneity for the flow, thus there is no possibility for the statistics to depend on the position. On the other hand, if the flow is not homogeneous the periodicity does not apply and the method must be changed.

I would normally assume that either windowing or periodic extensions are being applied such that the FFT makes sense and the person using it knows what they're doing to interpret such results but since you brought it up... and the person asking the question actually has this specific confusion... yeah you should only try to calculate spectra along homogeneous directions for statistical reasons, otherwise you can confuse the hell out of yourself with the results.


This example is actually the reason why it really doesn't matter if you try to calculate energy spectra using u or u'. If they're different beyond the zero-frequency coefficient then you shouldn't have been trying to do it in the first place because you're not doing the proper statistic treatment of the flow along homogeneous directions.
FMDenaro likes this.
LuckyTran is offline   Reply With Quote

Old   February 15, 2022, 00:11
Default
  #12
New Member
 
Michael
Join Date: Jan 2022
Location: Birmingham, UK
Posts: 8
Rep Power: 4
MichaelBham is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
That's right but if one wants to compute an energy spectra along a direction, the use of the FFT implies that such direction is of homogeneity for the flow, thus there is no possibility for the statistics to depend on the position. On the other hand, if the flow is not homogeneous the periodicity does not apply and the method must be changed.
Quote:
Originally Posted by LuckyTran View Post
I would normally assume that either windowing or periodic extensions are being applied such that the FFT makes sense and the person using it knows what they're doing to interpret such results but since you brought it up... and the person asking the question actually has this specific confusion... yeah you should only try to calculate spectra along homogeneous directions for statistical reasons, otherwise you can confuse the hell out of yourself with the results.


This example is actually the reason why it really doesn't matter if you try to calculate energy spectra using u or u'. If they're different beyond the zero-frequency coefficient then you shouldn't have been trying to do it in the first place because you're not doing the proper statistic treatment of the flow along homogeneous directions.


Thanks a lot.

For a 2D channel flow, in which the flow is along x direction:

(1) x direction is homogeneous since u = u(y).
(2) The energy spectra should only be applied to u/u' along x line (1D).

Is it correct?
MichaelBham is offline   Reply With Quote

Old   February 15, 2022, 04:17
Default
  #13
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,897
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Quote:
Originally Posted by MichaelBham View Post
Thanks a lot.

For a 2D channel flow, in which the flow is along x direction:

(1) x direction is homogeneous since u = u(y).
(2) The energy spectra should only be applied to u/u' along x line (1D).

Is it correct?
Yes, you can compute the 1d spectra at different vertical directions y.
But if you have a 2D code that makes no physical meaning, is only an exercise.
FMDenaro is online now   Reply With Quote

Reply

Tags
energy spectra, kolmogrov k -5/3 law


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
help Energy spectrum 2.0 bhigahAshish Main CFD Forum 7 July 14, 2019 06:20
energy spectra from LES simulations kumar OpenFOAM Post-Processing 2 February 23, 2016 13:25
[OpenFOAM] Paraview 3.98 - errors when saving geometry file pajot ParaView 1 September 28, 2013 11:45
Energy spectra pankajonline2 Main CFD Forum 0 November 9, 2011 17:55
Energy dissipation and Drag coefficient Freeman Main CFD Forum 10 January 27, 2006 08:42


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