Skip to content

fftFreq - what does it do? #103

@cjn01

Description

@cjn01

What is the function of fftFreq in the commonSettings file?
image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions