
[Sponsors] 
Velocity / Energy Spectra for planar homogeneous turbulence 

LinkBack  Thread Tools  Search this Thread  Display Modes 
June 3, 2022, 14:58 
Velocity / Energy Spectra for planar homogeneous turbulence

#1 
New Member
Jeffrey Johnston
Join Date: Oct 2020
Location: Belfast, Northern Ireland
Posts: 21
Rep Power: 6 
Hello,
I realise there are a lot of posts about turbulence energy spectra on this forum. I've had a look through and have picked up some helpful info, but I'm still stuck. I also posted my own thread months ago, but I know a lot more about what I'm doing now than then, so thought I should post again. I'm trying to figure out where specifically I am going wrong. It may be in my understanding of how to calculate the turbulent kinetic energy spectrum, or it may be an issue with how I've implemented it in my python / numpy script. I am conducting LES simulations of an atmospheric boundary layers using a horizontally periodic domain. This is very similar to an old paper (here) that includes an energy spectrum for validating that the inertial range (5/3 law) is being partially resolved. Here's my method/code as it stands. Most important questions are in bold u, v and w are 2D arrays of resolved velocities at the cell centres for a horizontal plane through my domain at a given time (we assume the turbulence to be statistically homogeneous in the plane). dx = dy =10 is my cell spacing, and nx = ny = 300 is the number of cells in each direction.
I've attached an image of the plot I get form the above method. I am comparing this against figure 3 in the linked paper, which I've also attached here. As mentioned, I think the units I have for E are different from the paper. The shape is similar to an extent, but the yaxis scale is very different, making me think I've incorrectly calculated E from my FFT arrays. Also, theres a weird peak in the high wavenumbers. It's possible this is genuinely something going on in my simulation data, but I am also thinking it could be a flaw in the energy spectrum code above. Thank you for taking the time to look at this and I appreciate your input. Also, feel free to use any or all of my code above if you are in a similar situation. 

June 3, 2022, 15:44 

#2 
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,871
Rep Power: 73 
Before discussing any of your doubts about the simulation and the computed spectra, I have a simple question:
Have you tested your code by generating a known periodical signal such as sin(kx) for various k and checking that it is correctly captured by the FFT and the plot? 

June 3, 2022, 19:44 

#3  
New Member
Jeffrey Johnston
Join Date: Oct 2020
Location: Belfast, Northern Ireland
Posts: 21
Rep Power: 6 
Quote:
However, I'm not entirely sure how to extend the sin test to a 2D case for the code I'm using here. Should the signal be something like sin(kx + ky)? And I'm not sure what results I should expect. Regards, 

June 4, 2022, 05:25 

#4  
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,871
Rep Power: 73 
Quote:
The plot of you computed spectrum is really different from those in the papers. I cannot say if the problem is in the LES code or in your spectrum. There are fundamental textbooks about discrete Fourier transform, you can find all the basic theory. Just as an example of how I used the multidimensional discrete Fourier serie, have a look at Sec. 3.2 here https://www.researchgate.net/publica...dy_Simulations 

October 27, 2024, 03:14 

#6  
New Member
Chang
Join Date: Oct 2024
Posts: 3
Rep Power: 2 
Quote:


Tags 
energy spectrum, les, turbulence 
Thread Tools  Search this Thread 
Display Modes  


Similar Threads  
Thread  Thread Starter  Forum  Replies  Last Post 
Difficulty in calculating angular velocity of Savonius turbine simulation  alfaruk  CFX  14  March 17, 2017 07:08 
Patch fully developed velocity and turbulence profile over full domain  Teumde  FLUENT  2  June 29, 2015 14:47 
Energy Spectra!  Murthy  FLUENT  0  December 26, 2005 08:42 
Energy Spectra!  Murthy  Main CFD Forum  0  December 26, 2005 08:41 
Why FVM for highRe flows?  Zhong Lei  Main CFD Forum  23  May 14, 1999 14:22 