|
[Sponsors] |
September 23, 2019, 04:42 |
FFT analysis of a pressure signal
|
#1 |
Senior Member
Join Date: Aug 2012
Posts: 268
Rep Power: 14 |
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? |
|
September 23, 2019, 13:18 |
|
#2 |
Senior Member
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,167
Rep Power: 23 |
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? |
|
September 24, 2019, 01:18 |
|
#3 | |
Senior Member
Join Date: Aug 2012
Posts: 268
Rep Power: 14 |
Quote:
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. |
||
September 24, 2019, 08:05 |
|
#4 |
Senior Member
Erik
Join Date: Feb 2011
Location: Earth (Land portion)
Posts: 1,167
Rep Power: 23 |
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. |
|
September 26, 2019, 13:07 |
|
#5 |
Senior Member
Join Date: Aug 2012
Posts: 268
Rep Power: 14 |
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? |
|
May 14, 2020, 04:37 |
|
#6 |
New Member
TENE HEDJE Patrick
Join Date: Jul 2019
Posts: 2
Rep Power: 0 |
Hello
please, what is your process (script) to caculate the PSD Patrick. |
|
May 14, 2020, 04:52 |
|
#7 |
Senior Member
Join Date: Aug 2012
Posts: 268
Rep Power: 14 |
||
May 14, 2020, 04:58 |
|
#8 |
New Member
TENE HEDJE Patrick
Join Date: Jul 2019
Posts: 2
Rep Power: 0 |
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. |
|
|
|
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 |