CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > CFX

FFT analysis of a pressure signal

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By evcelica
  • 1 Post By Julian121

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 23, 2019, 04:42
Default FFT analysis of a pressure signal
  #1
Senior Member
 
Join Date: Aug 2012
Posts: 268
Rep Power: 14
Julian121 is on a distinguished road
I am doing a FFT analysis of a pressure signal recorded by a probe.

In the attached pressure signal, to exclude the effect of transients should the full data be analysed or some initial data should be removed?

I found out that if I exclude the first 0.002s or 0.005s data, the frequencies and their powers change significantly.

What is the correct method to capture accurate frequencies?
Attached Images
File Type: png pressure signal.png (85.0 KB, 65 views)
File Type: png pressure signal (large vertical axis).png (21.0 KB, 50 views)
Julian121 is offline   Reply With Quote

Old   September 23, 2019, 13:18
Default
  #2
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,167
Rep Power: 23
evcelica is on a distinguished road
That is up to you.

If the flow was developing in the beginning of the simulation, and not true to reality, then I would exclude it.

If that will be part of reality, then include it.

I'm guessing in the beginning you just started from some simplified initial conditions? So the flow field there was still developing, and not actual reality?
evcelica is offline   Reply With Quote

Old   September 24, 2019, 01:18
Default
  #3
Senior Member
 
Join Date: Aug 2012
Posts: 268
Rep Power: 14
Julian121 is on a distinguished road
Quote:
Originally Posted by evcelica View Post
I'm guessing in the beginning you just started from some simplified initial conditions? So the flow field there was still developing, and not actual reality?
Yes, I started from an unconverged steady state solution.

How should I judge whether the flow is still developing or is actual reality?

Convergence to 1e-4 is achieved in every time step except the initial 10 time steps.
Julian121 is offline   Reply With Quote

Old   September 24, 2019, 08:05
Default
  #4
Senior Member
 
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,167
Rep Power: 23
evcelica is on a distinguished road
I would have at least started from a converged solution.

Your flow was most likely developing if it skews your FFT badly. Run the simulation for more time, and see if that changes the FFT greatly. If it doesn't,then it sounds like the beginning has different dynamics than the rest, So it should be excluded.

From your graph, it looks like You finally have a stable pattern after 0.018s. I would continue your simulation for more time, just start from your previous results, and see if that pattern continues, then cut off everything before 0.018s or so.
Julian121 likes this.
evcelica is offline   Reply With Quote

Old   September 26, 2019, 13:07
Default
  #5
Senior Member
 
Join Date: Aug 2012
Posts: 268
Rep Power: 14
Julian121 is on a distinguished road
This time, I started with a better initial condition at a different mass flow.

The FFT at the end of 0.0409474s and 0.0492807s including full data were taken.

The FFT at the end of 0.0492807s excluding initial 0.02s is shown.

There is slight difference between the frequencies.

Do you think any initial time should be excluded here?
Attached Images
File Type: png pressure signal.png (37.3 KB, 42 views)
File Type: png 0.0409474.png (22.7 KB, 45 views)
File Type: png 0.0492632.png (22.5 KB, 40 views)
File Type: png 0.0492632 excluding 0.02.png (23.0 KB, 39 views)
bibekAdhikari likes this.
Julian121 is offline   Reply With Quote

Old   May 14, 2020, 04:37
Default
  #6
New Member
 
TENE HEDJE Patrick
Join Date: Jul 2019
Posts: 2
Rep Power: 0
TENE is on a distinguished road
Hello

please, what is your process (script) to caculate the PSD

Patrick.
TENE is offline   Reply With Quote

Old   May 14, 2020, 04:52
Default
  #7
Senior Member
 
Join Date: Aug 2012
Posts: 268
Rep Power: 14
Julian121 is on a distinguished road
Quote:
Originally Posted by TENE View Post
Hello

please, what is your process (script) to caculate the PSD

Patrick.
You can do it in CFD-Post or matlab.
Julian121 is offline   Reply With Quote

Old   May 14, 2020, 04:58
Default
  #8
New Member
 
TENE HEDJE Patrick
Join Date: Jul 2019
Posts: 2
Rep Power: 0
TENE is on a distinguished road
Thank you for your answer,

I did it on matlab, but I’m not sure my script is good.

N = length(x);
Fn=Fs/2
FTx= fft(x-mean(x)); %fft(x);
FTx= FTx(1:fix(N/2)+1); %uniquement les N/2+1 valeurs sont nécessaires pour la PSD
PSDx = (1/(Fs*N)).*abs(FTx).^2; % calcul de la PSD
PSDx(2:end-1) = 2*PSDx(2:end-1);
freq = 0:Fs/N:Fn;

figure
semilogx(freq,10*log10(PSDx))

x represent my data and Fs is the sample frequency.

Patrick.
TENE 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
Wind tunnel Boundary Conditions in Fluent metmet FLUENT 6 October 30, 2019 12:23
outlet pressure Boundary settings -velocity streamline under ambient temp.conditions Vishnu_bharathi CFX 12 November 21, 2017 06:56
"Pressure Inlet" Boundary Setup Wijaya FLUENT 15 May 18, 2016 10:08
OpenFOAM solution is diverging for stress analysis in two-pahse microstructure. Sargam05 OpenFOAM 16 April 30, 2013 16:18
FFT for Post Simulation Analysis faisal_durr CFX 12 March 13, 2012 03:35


All times are GMT -4. The time now is 20:57.