-
Notifications
You must be signed in to change notification settings - Fork 65
Description
What is the function of fftFreq in the commonSettings file?

I've run a simulation using the FWH GTFormulation. The acoustics were turned on for 0.1 s of simulation time, and the timestep was 2.5e-6 s. The *-time.dat files have 40000 rows of pFluct vs time data, as expected. However, the fft-*.dat files have 79872 rows of SPL vs Frequency data. Based on my fftFreq of 1024, I would expect 513 SPL vs Frequency values, unless fftFreq is different to nfft?
Furthermore, how is fft implemented for the libacoustics library, i.e, how does one arrive at the SPL vs. Frequency in the fft-*.dat file from the pFluct vs. time in the *-time.dat file.
I could just be misunderstanding something but I'd greatly appreciate any additional information regarding this.
Thank you