edg_acoustics.postprocessing
This module provides postprocessing functionalities for the edg_acoustics package.
Module Contents
Classes
Postprocessor for monopole source simulation results. |
Attributes
Default value of the sampling frequency, set as 44100 Hz. |
- edg_acoustics.postprocessing.Sampling_Freq = 44100[source]
Default value of the sampling frequency, set as 44100 Hz.
- Type:
- class edg_acoustics.postprocessing.Monopole_postprocessor(sim, delta_step, sampling_freq=Sampling_Freq)[source]
Postprocessor for monopole source simulation results.
Monopole_postprocessoris used to postprocess the simulation results of a monopole source, mainly to correct the source spectrum. Furthermore, it collects simulation results to be saved.- Parameters:
sim (edg_acoustics.AcousticsSimulation) – The acoustic simulation object instance of
edg_acoustics.AcousticsSimulation.delta_step (float) – Factor by which the simulation results are saved.
sampling_freq (float) – The desired sampling frequency. Default is set to Sampling_Freq = 44100 Hz.
- sim
The acoustic simulation object instance of
edg_acoustics.AcousticsSimulation.
- sampling_freq
The desired sampling frequency. Default is set to Sampling_Freq = 44100 Hz.
- Type:
- IRold
The impulse response at the receiver locations.
- Type:
- IRnew
The resampled impulse response at the receiver locations.
- Type:
- TR_original
The original transfer function at the receiver locations.
- Type:
- TR_free
The free transfer function at the receiver locations.
- Type:
- TR
The corrected transfer function at the receiver locations.
- Type:
- freqs
The frequency vector.
- Type:
- apply_resample()[source]
Resamples the impulse response to the desired sampling frequency.
- Returns:
IRnew (numpy.ndarray) – see
IRnew.