22.2.6. FFT of Acoustic Sources: Band Analysis and Export of Surface Pressure Spectra

During a transient flow simulation, the time histories of the instant surface pressure values can be written into the binary acoustic source data (ASD) files. This operation is performed for all mesh cell faces of those surface zones that are selected as acoustic sources. The primary purpose of the ASD files is to supply input data for the Ffowcs-Williams and Hawkings acoustic solver (see Reading Unsteady Acoustic Source Data). Additionally, these files can be used to visualize the spectral properties of the stored flow pressure signals. The supported spectral properties are the complex amplitudes for the individual Fourier modes, and the surface pressure level (SPL) values for the frequency bands, in decibels. Both the constant width and the proportional width bands (octaves and 1/3 octaves) can be specified.


Note:  Despite the use of the common acronym “SPL”, the calculated values characterize the transient flow pressure on a surface, and not the acoustic pressure; that is, in this context, the acronym refers to the “Surface Pressure Level” (as mentioned previously) and not the “Sound Pressure Level”.


In addition to the visualization capabilities, with ANSYS Fluent you can also use the ASD files to export the computed spectrum fields of the flow pressure as CGNS files. The primary purpose of such files is to allow you to use the surface spectrum fields as distributed excitation forces when performing a harmonic response analysis with ANSYS Mechanical. The ability to import CGNS files is available in ANSYS Mechanical to match this export feature in Fluent; for details, see FLUREAD in the separate Mechanical APDL Command Reference. Using the acoustic wave equation solver of ANSYS Mechanical, it is possible to perform frequency domain simulations for applications such as the vehicle cabin noise caused by external turbulent flow.

22.2.6.1. Using the FFT of Acoustic Sources

The Acoustic Sources FFT… button is available in the Run Calculation task page (as shown in Figure 22.10: The Run Calculation Task Page with the Acoustic Sources FFT… Button) under the following conditions:

  • The simulation is set up as a three-dimensional transient case.

  • The Export Acoustic Source Data in ASD Format option is enabled in the Acoustics Model dialog box.

Figure 22.10:  The Run Calculation Task Page with the Acoustic Sources FFT… Button

The Run Calculation Task Page with the Acoustic Sources FFT… Button

Clicking the Acoustic Sources FFT… button opens the Acoustic Sources FFT dialog box, which has four tabs (each of which is shown in the figures that follow):

  • Read ASD Files

  • Compute FFT Fields

  • FFT Surface Variables

  • Write CGNS Files

The first two tabs are obligatory, because the actions performed there prepare the Fourier spectra for the actions that follow, including creation of the surface variables to visualize (performed in the third tab) and/or CGNS export (performed in the fourth tab).

Postprocessing begins in the Read ASD Files tab. The Active Source Zones selection list shows all of the face zones for which transient export to ASD files has been performed (see Figure 22.11: The Read ASD Files Tab of the Acoustic Source FFT Dialog Box). The Source Data Files selection list shows all of the available ASD files. Note that you can update this information by clicking the Load Index File… button and specifying the name of the index file to be read; the index file was created during the ASD files export, and is an ASCII file containing a list of the source zones and a list of the ASD file names. Select in the selection lists the desired face zones as well as the desired ASD files from which you want to read, and click the Read button. The console displays information about the data, such as the following example:

Overall 10000 timesteps have been read
from 3.0001 s to 4 s
Time step is 0.0001 s

Figure 22.11:  The Read ASD Files Tab of the Acoustic Source FFT Dialog Box

The Read ASD Files Tab of the Acoustic Source FFT Dialog Box

Having read the pressure histories, open the Compute FFT Fields tab (Figure 22.12: The Compute FFT Fields Tab of the Acoustic Source FFT Dialog Box). The values shown in the Spectral Resolution group box provide information about the statistical properties, which depend on the sampling rate (that is, the simulation time step) and the signal length (that is, the simulation time). These values will change if you enable the Clip Time to Range option in the Sampling Data group box, reduce the time range for the signals by changing the Min and/or Max fields, and click the Re-Estimate Spectral Resolution button. The Window Function selection list allows you to specify a window function using the same choices that are available for plotting the single signal FFT in the Plot/Modify Input Signal dialog box. The default settings use the full signals and the Hanning window function. The FFT calculation begins when you click the Compute button.

Figure 22.12:  The Compute FFT Fields Tab of the Acoustic Source FFT Dialog Box

The Compute FFT Fields Tab of the Acoustic Source FFT Dialog Box

The fields of the pressure histories and the computed fields of the Fourier spectra are stored in a large memory array, referred to here as the “storage area”. This memory is allocated by Fluent dynamically when you read the pressure signals from the ASD files. If you read data for all face zones available in the ASD files, and if they are the wall zones, then the size of the allocated storage area is equal to the total size of the ASD files being read. Since the same or a slightly smaller amount of data is produced by the FFT algorithm, the same storage area can be re-used to store the Fourier spectra without allocating additional memory. Alternatively, the pressure histories can be left intact in memory, and for their spectra the storage area is correspondingly increased.

These two modes of memory allocation are controlled by the Overwrite Signals by Spectra option in the Storage Area Control group box. When the Overwrite Signals by Spectra option is enabled, the Fourier spectra displace in memory the original time signals, which are not kept after the FFT has been computed. Therefore, if you want to re-compute the FFT using the Clip Time to Range tool or a different Window Function (which are both in the Compute FFT Fields tab), you have to first de-allocate the storage area by clicking the Clean Up Entire Storage Area button, and then re-read the pressure histories from the ASD files. When the Overwrite Signals by Spectra option is disabled, you can re-compute the FFT without re-reading the pressure histories, as many times as you want. To do this, click the Clean Up Only FFT Results button, and proceed with computing spectra from the available pressure histories. De-allocation of the storage area (which can be very large) is recommended when you are done using the Acoustic Sources FFT dialog box and plan to either proceed to other postprocessing work or continue your transient simulation without re-starting Fluent.

When the pressure histories are read and kept in the storage area, you can create point probes within the surface zones that have been read and extract the single pressure time signals at these probes. The extracted signals and their spectra may help to analyze the transient flow properties. For example, by creating an XY plot of a signal, you can figure out the need for clipping of the sampling time; by creating an XY plot of its spectrum, you can detect the presence of the tonal noise components.

To create a point probe, open the Point Surface Dialog Box by clicking Create and selecting Point... in the Setting Up Domain ribbon tab (Surface group box), and create a point surface by any available method (for example, by specifying the coordinates). The point probe will be created at the face center that is nearest to the point surface on the read surface zones. The created point probes are then listed under the point surface names in the Existing Points selection list, which is located in the Point Probes for Time Signals group box. You can print the coordinates of the point probes to the Fluent console by selecting the desired probes and clicking the Print Coordinates button. Clicking the Extract Signals button outputs the pressure histories for the selected probes in the ASCII files; these files can then be analyzed using the Fourier Transform Dialog Box (available from the Plots Task Page) by selecting Process File Data and then reading the exported ASCII file using the Load Input File... button. The exported files names are by default the point probe names with the extension .dat. The File Name Root field allows you to specify a prefix for these file names.

The FFT Surface Variables tab is shown in Figure 22.13: The FFT Surface Variables Tab of the Acoustic Source FFT Dialog Box for the Octave Bands and Figure 22.15: The FFT Surface Variables Tab of the Acoustic Source FFT Dialog Box for a Set of Individual Modes. This tab allows you to Create new Fluent variables using the computed spectrum fields, which reside in the storage area and correspondingly increase its size. These variables will be defined only on those wall face zones for which the Fourier transformation has been computed; on the other face zones, they will show zero values. Created variables can be used for any kind of further postprocessing in Fluent, which typically includes contour plotting (see the variables marked with the restriction asfft in Table 33.17:  Acoustics Category) or exporting to CFD-Post.

Figure 22.13:  The FFT Surface Variables Tab of the Acoustic Source FFT Dialog Box for the Octave Bands

The FFT Surface Variables Tab of the Acoustic Source FFT Dialog Box for the Octave Bands

Variables may characterize either the individual Fourier modes (if you select Set of Modes from the Modes/Frequency Bands drop-down list), or frequency bands that each represent a range of frequencies (if you select the other choices in the Modes/Frequency Bands drop-down list). The three types of frequency bands that are available include:

  • Octave Bands

    These are proportional bands corresponding to the standard technical octaves.

  • 1/3 Octave Bands

    These are proportional bands corresponding to the standard technical thirds.

  • Constant Width Bands

    These are user-defined equidistant bands.

The Spectrum Property drop-down list displays the type of variables created according to the selected choice in the Modes/Frequency Bands drop-down list. For a set of modes, the created variables are the real and the imaginary parts of the complex Fourier amplitudes, with a pair of variables per specified mode. For the frequency bands, the created variables are the surface pressure level (SPL) fields, in decibels. The transformation to the decibel units is done by default using the standard acoustic reference pressure value of 2 x 10-5 Pa; you can change this value before creating the variables by opening the Acoustic Models dialog box, selecting the Ffowcs-Williams & Hawkings model, and revising the Reference Acoustic Pressure.

For any type of frequency band (octave, 1/3, or constant width), the area-averaged band-specific pressure fluctuations are calculated and printed out to the Fluent console in decibels when you click Create. Conversion to decibels is done after the area-averaging of the band-filtered RMS pressure fluctuation fields. The area-averaged data is printed only for those frequency bands that are covered by the resulting pressure spectrum. If you enable the Write Area-Avg Data option and specify a file name in the corresponding field, then the area-averaged data will be written to an ASCII file in the XY plot file format (see XY Plot File Format). It is recommended that you use the file name extension .xy to more easily recognize this file when using the XY plotting tool.

If you enable the Plot Area-Avg Data option, then the data will be plotted in the form of a bar chart in the graphics window when you click Create, as shown in Figure 22.14: Bar Chart of Surface Pressure Level for Octave Bands.

Figure 22.14:  Bar Chart of Surface Pressure Level for Octave Bands

Bar Chart of Surface Pressure Level for Octave Bands

Figure 22.15:  The FFT Surface Variables Tab of the Acoustic Source FFT Dialog Box for a Set of Individual Modes

The FFT Surface Variables Tab of the Acoustic Source FFT Dialog Box for a Set of Individual Modes

The allowed number of variables makes it possible for you to simultaneously keep SPL for all octave and 1/3 octave bands, as well as SPL for up to 20 constant width bands and the real and imaginary amplitudes for up to 20 individual frequencies. The SPL variables for the octaves and the 1/3 octaves include the band central frequency in their names (for example, SPL for Octave Band at 250Hz (dB) or SPL for 1/3-Octave Band at 1.25kHz (dB)). As for the user-defined frequencies and constant width bands, their variables are simply numbered from 0 to 19. In order to provide you with the information about the meaning of each such variable, Fluent prints a table in the console when you click Create. The following is an example of the table corresponding to the settings in the previous figure:

Creating variables for 20 modes from 40.5983 Hz to 466.88 Hz every 22.4359 Hz.
f( 0) = 40.5983 Hz     f( 1) = 63.0342 Hz 
f( 2) = 85.4701 Hz     f( 3) = 107.906 Hz 
f( 4) = 130.342 Hz     f( 5) = 152.778 Hz 
f( 6) = 175.214 Hz     f( 7) = 197.65 Hz 
f( 8) = 220.085 Hz     f( 9) = 242.521 Hz 
f(10) = 264.957 Hz     f(11) = 287.393 Hz 
f(12) = 309.829 Hz     f(13) = 332.265 Hz 
f(14) = 354.701 Hz     f(15) = 377.137 Hz 
f(16) = 399.573 Hz     f(17) = 422.009 Hz 
f(18) = 444.444 Hz     f(19) = 466.88 Hz

Variables for frequencies above 466.88 Hz are not created, 
because the limit of 20 modes has been reached.

You can analyze more than 20 individual modes or constant width bands, if you process them by portions of 20 items and delete the processed variables by selecting them in the Existing Variables list and clicking the Remove Selected Variables button.

Clicking either the Clean Up Entire Storage Area or the Clean Up Only FFT Results button on the left side of the dialog box not only de-allocates the spectrum storage array, but also removes all created variables.

The Write CGNS Files tab is shown in Figure 22.16: The Write CGNS Files Tab of the Acoustic Source FFT Dialog Box. This tab allows you to specify the zones you want to export to CGNS, by selecting them in the Processed Source Zones list. You can reduce the exported spectrum data by enabling the Reduce Frequency Series option and specifying the frequency range (Min and Max frequencies), as well as the frequency step (the Number of Frequencies to Skip integer field). The latter must be used with care and only if really needed, because the Fourier amplitudes in the broadband noise spectrum depend on the frequency resolution. By skipping frequencies from the exported spectrum (for example, exporting every other Fourier mode), you will artificially coarsen the frequency resolution. However, the exported amplitudes will not be automatically re-scaled for the increased frequency step, but will retain their originally computed values.

Pressure spectra, which result from the scale-resolving flow simulations, may contain thousands of frequencies. Together with dense surface meshes, this can result in a very large amount of data to export. The total size of the disk space required to store fields of the complete spectra is approximately equal to the total size of the ASD files containing the wall pressure histories. Therefore, the wall pressure spectra are written to a series of CGNS files according to the Number of Frequencies per File field. It is recommended that you select an appropriate value for this parameter, to avoid extremely large output files or a large number of very small files. The total number of frequencies in the spectrum can be seen in the Number of Modes field of the Compute FFT Fields tab (see Figure 22.12: The Compute FFT Fields Tab of the Acoustic Source FFT Dialog Box).

Figure 22.16:  The Write CGNS Files Tab of the Acoustic Source FFT Dialog Box

The Write CGNS Files Tab of the Acoustic Source FFT Dialog Box

Finally, you can specify a name root for the exported CGNS files in the Fourier Transform File Name Root field. For example, if you enter wall_pressure_spectrum and then click the Write button, Fluent will create the following set of files in your working folder:

wall_pressure_spectrum.cgns

wall_pressure_spectrum_1.cgns

wall_pressure_spectrum_2.cgns

...

wall_pressure_spectrum.flst

If you leave the name root field empty, the files will be named cgns, 1.cgns, 2.cgns, ..., flst. The first CGNS file (without a number in its name) contains the mesh data, as well as links to all of the other CGNS files, which in turn contain the spectrum fields with the specified number of modes per file. The CGNS links work like the file links in the UNIX file system: in order to import spectra to the ANSYS Mechanical software, you only have to specify the name of the first file, and all other files will be imported automatically if they reside in the same folder. The file with the extension flst is an ASCII file, which contains the list of the exported frequencies.


Important:  Note the following:

  • You should not specify a relative path as a part of the Fourier Transform File Name Root input. If you do that, all files will be exported in the desired folder according to the specified path. However, the CGNS links, which are written in the first CGNS file, will also include the specified path. Therefore, the linked CGNS files will become readable only after the correspondent file relocation—for example, moving the first CGNS file in your Fluent working folder.

  • The public domain CGNS library, which is used to process CGNS files in Fluent and ANSYS Mechanical, has a performance issue when run on Windows. Namely, for CGNS files that have many links (as is the case in this application), the input / output operations may be very slow if the CGNS files are located on a network disk. Therefore, for Windows it is strongly recommended that you select either a built-in local disk or a USB disk directly connected to your computer as the location of the CGNS files. This warning concerns both the export of CGNS files from Fluent and their import in ANSYS Mechanical.



Release 18.2 - © ANSYS, Inc. All rights reserved.