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

Calculating energy/power spectra.

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 4, 2017, 13:55
Default Calculating energy/power spectra.
  #1
New Member
 
anonymous
Join Date: Nov 2016
Posts: 29
Rep Power: 10
rr3245 is on a distinguished road
Hi all,

I am trying to validate my OpenFOAM CFD code for flow past a circular cylinder. This includes calculating the power spectra of velocity at fixed points in the cylinder wake, and hopefully identifying Kolmogorov's -5/3 slope. I have read up on the technique required using Pope's book- Turbulent Flows Ch.6 (2000), however I am still unsure of how I go about implementation. Pope describes a two-point autocorrelation, but my sample points are fixed in position behind the cylinder, so I therefore don't understand how this might apply.

From my understanding there are two possible routes-
(1) Calculate the autocorrelation function R_{ij}, and then take the Fourier transform E_{ij}(\kappa) \equiv \frac{1}{\pi} \int^\infty_{-\infty} R_{ij}(\textbf{e}_1r_1) e^{-i\kappa_{1} r_{1}} dr_1. I have a fixed sampling point, so I am not sure how I would use this, unless I utilise Taylor's frozen hypothesis??
(2) Take the FFT of the individual velocity components (I am interested in the streamwise direction), then use (1/2) 4\pi k^2|u(k)|^2.

Method (2) seems more straightforward, but I have only seen this in a forum post, not in a textbook. Does anyone have a reference for this in order to get a better understanding? Apologies for the scattered post, I am getting very confused by the whole thing. Regards, RH.
rr3245 is offline   Reply With Quote

Old   July 4, 2017, 18:59
Default
  #2
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
I am not sure to understand your point, you have some probes and you sample in time the values of the velocity? Or do you want to analyze the spectral content along the spanwise direction (that I suppose is periodic)?
FMDenaro is offline   Reply With Quote

Old   July 5, 2017, 06:28
Default
  #3
New Member
 
anonymous
Join Date: Nov 2016
Posts: 29
Rep Power: 10
rr3245 is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
I am not sure to understand your point, you have some probes and you sample in time the values of the velocity? Or do you want to analyze the spectral content along the spanwise direction (that I suppose is periodic)?
Thanks for your reply FMDenaro. Apologies if my question is scattered , I'll try to clarify.

In the literature, probes are placed across the spanwise direction (in the z-direction). These are then assumed to be independent, and averaged. Lets assume I only place one probe in the wake and I record all three components of velocity. I want to analyse the velocity time series and calculate the power spectra of the streamwise (or normal) velocity. This is to confirm my plots display the -5/3 law, and that there are spikes where the shedding frequency is present.
rr3245 is offline   Reply With Quote

Old   July 5, 2017, 08:06
Default
  #4
Senior Member
 
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,849
Rep Power: 73
FMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura aboutFMDenaro has a spectacular aura about
Well, I suggest to do the FFT of the three velocity components at the chosed position. However, you need a correct windowing technique as your signal is not necessarily periodic in time. Then, consider that depending on the position far from the cylinder along the wake, you can or not recover the theoretical inertial slope. Furthermore, the theoretical slope should be the same, interchanging in space and time, requiring further assumption about ergodicity.
Finally, I would suggest to do the spectral analysis also in space, you can do the FFT along z and for several positions along the streamwise direction
FMDenaro is offline   Reply With Quote

Old   July 5, 2017, 10:42
Default
  #5
New Member
 
anonymous
Join Date: Nov 2016
Posts: 29
Rep Power: 10
rr3245 is on a distinguished road
Quote:
Originally Posted by FMDenaro View Post
Well, I suggest to do the FFT of the three velocity components at the chosed position. However, you need a correct windowing technique as your signal is not necessarily periodic in time. Then, consider that depending on the position far from the cylinder along the wake, you can or not recover the theoretical inertial slope. Furthermore, the theoretical slope should be the same, interchanging in space and time, requiring further assumption about ergodicity.
Finally, I would suggest to do the spectral analysis also in space, you can do the FFT along z and for several positions along the streamwise direction
This is what I've decided to try (from Chapter 3.6 of Pope (2000)):

I have the 3 component velocities time series at one point, which I use to calculate the fluctuating velocity u(t). The aurocovariance can be found R(s) \equiv \langle u(t)u(t+s) \rangle, which will require varying s. It is then possible to calculate the frequency spectrum E(\omega)

E(\omega) = \frac{1}{\pi} \int_{-\infty}^{\infty} R(s) e^{-i\omega s} ds.

i.e. E(\omega) = 2 \mathcal{F}\{R(s)\}, where \mathcal{F}\{\} is the Fourier transform.

Does this look OK?
rr3245 is offline   Reply With Quote

Old   September 29, 2020, 13:53
Default
  #6
Senior Member
 
Arijit Saha
Join Date: Feb 2019
Location: Singapore
Posts: 132
Rep Power: 7
ari003 is on a distinguished road
Quote:
Originally Posted by rr3245 View Post
This is what I've decided to try (from Chapter 3.6 of Pope (2000)):

I have the 3 component velocities time series at one point, which I use to calculate the fluctuating velocity u(t). The aurocovariance can be found R(s) \equiv \langle u(t)u(t+s) \rangle, which will require varying s. It is then possible to calculate the frequency spectrum E(\omega)

E(\omega) = \frac{1}{\pi} \int_{-\infty}^{\infty} R(s) e^{-i\omega s} ds.

i.e. E(\omega) = 2 \mathcal{F}\{R(s)\}, where \mathcal{F}\{\} is the Fourier transform.

Does this look OK?
Hello Sir, I m trying to get the autocorrelation from a series of time-velocity at a fixed point using python. I have searched a lot but the solutions were not satisfactory. Could you please share the procedure how did you find the auto-correlation and plotted it?
ari003 is offline   Reply With Quote

Old   October 27, 2024, 03:35
Default
  #7
New Member
 
Chang
Join Date: Oct 2024
Posts: 3
Rep Power: 2
TubInPlasma is on a distinguished road
Quote:
Originally Posted by ari003 View Post
Hello Sir, I m trying to get the autocorrelation from a series of time-velocity at a fixed point using python. I have searched a lot but the solutions were not satisfactory. Could you please share the procedure how did you find the auto-correlation and plotted it?
Have you solved it please, I am working on the same task with python!
TubInPlasma 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
Questions on dynamicTopoFvMesh danvica OpenFOAM Running, Solving & CFD 80 April 16, 2019 17:58
DPMFoam - Serious Error --particle-laden flow in simple geometric config benz25 OpenFOAM Running, Solving & CFD 27 December 19, 2017 21:47
''unknown radialModelType type Gidaspow'' PROBLEM WITH THE BED TUTORIAL AndoniBM OpenFOAM Running, Solving & CFD 2 March 25, 2015 19:44
Problems in calculating the fluid traction on the current structure frame in 3D models fw407 OpenFOAM Running, Solving & CFD 0 August 6, 2008 13:04
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 18:27


All times are GMT -4. The time now is 08:33.