Fluid Interface Frequency Transform

Click For Summary

Discussion Overview

The discussion revolves around the analysis of fluid oscillations in a 2D rectangular channel, specifically focusing on decomposing the fluid interface data into fundamental frequencies and amplitudes using Fourier transforms. Participants explore various approaches to this analysis, including considerations of temporal and spatial frequency, data limitations, and the implications of sampling rates.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • Some participants suggest that the choice between analyzing the entire interface or a single point depends on whether the focus is on temporal frequency or spatial wavenumber.
  • There is a discussion about the size of the data files and the number of time slices, with one participant mentioning that Excel could be used for analysis.
  • One participant plans to use the FFT function in MATLAB for each point in time, indicating a potential method for analysis.
  • Concerns are raised about the limitations of the data, including the number of points in the effective time series and how this may affect the results.
  • Participants highlight the importance of the sampling rate and the implications of the Nyquist theorem on frequency resolution.
  • There is a clarification that frequencies above the Nyquist frequency are unresolvable and may appear as aliases in the spectrum.
  • One participant seeks further clarification on aliasing and whether their plot contains frequencies above the Nyquist frequency.

Areas of Agreement / Disagreement

Participants express concerns about the limitations imposed by the sampling rate and the number of data points, indicating a shared understanding of the challenges involved. However, there is no consensus on the best approach to take for the analysis, as different methods and interpretations are proposed.

Contextual Notes

Limitations include potential issues with the number of time slices available for forming an effective time series, as well as the implications of fixed sampling intervals on frequency resolution. The discussion also touches on the need for anti-aliasing filtering to address potential errors due to aliasing.

Who May Find This Useful

This discussion may be useful for researchers or practitioners interested in fluid dynamics, signal processing, or anyone working with time-series data analysis in a physical context.

member 428835
Hi PF!

Fluid lies in a 2D rectangular channel and oscillates from a disturbance. I have several .csv files, each corresponding to a moment in time, where within each are two lists of numbers: the ##x## and ##y## position of a fluid interface. I'd like to decompose the interface into it's fundamental frequencies and amplitudes, like a Fourier transform. Any recommendation on where to look or broad idea what to do? Should I look for a single point on the interface or use the entire interface?

Picture attached for help seeing this.
 

Attachments

  • Screen Shot 2019-08-02 at 5.52.39 PM.png
    Screen Shot 2019-08-02 at 5.52.39 PM.png
    17 KB · Views: 272
Engineering news on Phys.org
Whether you use the whole interface or a single point as it evolves in time depends on whether you're looking for temporal frequency or spatial wavenumber. You could, in principle, do a 2D spatiotemporal transform as well. It all depends on your goals.
 
Last edited:
How big are the files (how many points x) and how many time slices do you have? Excel will do this.
 
Thank you both! I'm actually going to use the fft function in MATLAB for each point in time. I think this should work.
 
It should but it's a question of what end result you are seeking and whether your data supports doing something like that. You may be limited by the number of points in your effective time series.
 
boneh3ad said:
It should but it's a question of what end result you are seeking and whether your data supports doing something like that. You may be limited by the number of points in your effective time series.
The first image I attached is an oscillation, and I have several several frames corresponding to different times. Knowing this, what kinds of questions do you raise as to whether or not the fft would work?
 
The issue is likely to be the sampling rate and amount of data for the time sequence. Also the FFT will assume fixed sampling interval.
The resolution in temporal and spatial frequencies is limited strictly by Nyquist.
 
joshmccraney said:
The first image I attached is an oscillation, and I have several several frames corresponding to different times. Knowing this, what kinds of questions do you raise as to whether or not the fft would work?

"Several frames" is not generally enough to form an effective time series. The frequency resolution of your Fourier transform is directly related to the number of points in time in your time series. The effective sampling rate will set the maximum frequency you can resolves, and the total length (in time) of your series will set the minimum frequency you can resolves. These will all be severely limiting issues if you don't have many points.
 
  • Informative
Likes   Reactions: Klystron
Thanks!
 
  • #10
hutchphd said:
The issue is likely to be the sampling rate and amount of data for the time sequence. Also the FFT will assume fixed sampling interval.
The resolution in temporal and spatial frequencies is limited strictly by Nyquist.
So I'm kind of confused on the Nyquist frequency. I'm sampling a signal and it looks like this:
Picture1.png

The sampling rate is 1 Hz, so every second. How would I calculate the Nyquist frequency?
 
  • #13
joshmccraney said:
I saw this, but what's the highest waveform?

Ignore that part. Start with "The Nyquist frequency..."

It's just half the sampling rate and represents the highest resolvable frequency in a signal due to sampling. Frequencies above Nyquist will be aliases.
 
  • #14
boneh3ad said:
Ignore that part. Start with "The Nyquist frequency..."

It's just half the sampling rate and represents the highest resolvable frequency in a signal due to sampling. Frequencies above Nyquist will be aliases.
Okay, so I'm sampling at 1 fps, so any recorded frequency above 1/2 fps is unreliable?
 
  • #15
It's not unreliable. It's unresolvable. There is a reason that your spectrum only exists out to 0.5 Hz. What isn't as obvious is that any frequency that is higher than Nyquist is still showing up in that spectrum as an alias, meaning you could have meaningful error due to aliasing if you don't take steps to do anti-aliasing filtering.
 
  • #16
boneh3ad said:
It's not unreliable. It's unresolvable. There is a reason that your spectrum only exists out to 0.5 Hz. What isn't as obvious is that any frequency that is higher than Nyquist is still showing up in that spectrum as an alias, meaning you could have meaningful error due to aliasing if you don't take steps to do anti-aliasing filtering.
Can you elaborate on the final sentence? There isn't a frequency showing higher than Nyquist in my plot, right?
 
  • #17
Do a bit of background reading on aliasing. Your plot does not go past the Nyquist frequency, but aliases of higher frequencies can and do show up at lower frequencies if not addressed.
 
  • Like
Likes   Reactions: member 428835

Similar threads

  • · Replies 19 ·
Replies
19
Views
2K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 1 ·
Replies
1
Views
5K
Replies
1
Views
2K
Replies
3
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 31 ·
2
Replies
31
Views
12K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K