Fluid Interface Frequency Transform

AI Thread Summary
The discussion focuses on analyzing fluid interface oscillations using Fourier transforms to decompose the interface into fundamental frequencies and amplitudes. Participants emphasize the importance of the number of data points and the sampling rate, as these factors directly affect the resolution of temporal and spatial frequencies according to the Nyquist theorem. It is noted that insufficient time slices may limit the effectiveness of the Fourier transform, potentially leading to aliasing issues if higher frequencies are present. The Nyquist frequency, defined as half the sampling rate, is crucial for understanding the limits of resolvable frequencies in the data. Proper anti-aliasing measures are recommended to avoid errors in frequency representation.
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: 254
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 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 member 428835
Back
Top