ANSYS Mechanical APDL Acoustic Analysis Guide 18.2
ANSYS Mechanical APDL Acoustic Analysis Guide 18.2
ANSYS Mechanical APDL Acoustic Analysis Guide 18.2
Guide
ANSYS, ANSYS Workbench, AUTODYN, CFX, FLUENT and any and all ANSYS, Inc. brand, product, service and feature
names, logos and slogans are registered trademarks or trademarks of ANSYS, Inc. or its subsidiaries located in the
United States or other countries. ICEM CFD is a trademark used by ANSYS, Inc. under license. CFX is a trademark
of Sony Corporation in Japan. All other brand, product, service and feature names or trademarks are the property
of their respective owners. FLEXlm and FLEXnet are trademarks of Flexera Software LLC.
Disclaimer Notice
THIS ANSYS SOFTWARE PRODUCT AND PROGRAM DOCUMENTATION INCLUDE TRADE SECRETS AND ARE CONFID-
ENTIAL AND PROPRIETARY PRODUCTS OF ANSYS, INC., ITS SUBSIDIARIES, OR LICENSORS. The software products
and documentation are furnished by ANSYS, Inc., its subsidiaries, or affiliates under a software license agreement
that contains provisions concerning non-disclosure, copying, length and nature of use, compliance with exporting
laws, warranties, disclaimers, limitations of liability, and remedies, and other provisions. The software products
and documentation may be used, disclosed, transferred, or copied only in accordance with the terms and conditions
of that software license agreement.
ANSYS, Inc. and ANSYS Europe, Ltd. are UL registered ISO 9001: 2008 companies.
For U.S. Government users, except as specifically granted by the ANSYS, Inc. software license agreement, the use,
duplication, or disclosure by the United States Government is subject to restrictions stated in the ANSYS, Inc.
software license agreement and FAR 12.212 (for non-DOD licenses).
Third-Party Software
See the legal information in the product help files for the complete Legal Notice for ANSYS proprietary software
and third-party software. If you are unable to access the Legal Notice, contact ANSYS, Inc.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. iii
Acoustic Analysis Guide
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
iv of ANSYS, Inc. and its subsidiaries and affiliates.
Acoustic Analysis Guide
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. v
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
vi of ANSYS, Inc. and its subsidiaries and affiliates.
List of Figures
4.1. Acoustic-Structural Interaction Model ................................................................................................... 14
6.1. Sound Pressure Distribution and FEM Model ......................................................................................... 23
7.1. Spherical ABC for Symmetry and Near the Radiation Outlet ................................................................... 28
7.2. 1-D Multiple PMLs for Pipes ................................................................................................................... 29
7.3. PML Enclosure ...................................................................................................................................... 30
7.4. Attenuation Distribution ....................................................................................................................... 31
7.5. Buffer Elements .................................................................................................................................... 31
7.6. Distance Between Source/Objects and PML Region ............................................................................... 32
7.7. PML Near the Radiation Outlet .............................................................................................................. 33
7.8. IPML Elements ...................................................................................................................................... 34
7.9. IPML Enclosure ..................................................................................................................................... 34
7.10. Unit Cell of a Periodic Structure ........................................................................................................... 36
8.1. Spherical Coordinates ........................................................................................................................... 42
8.2. Physical Sampling of Diffuse Sound Field ............................................................................................... 45
8.3. Trim Element with Transfer Admittance Matrix ....................................................................................... 48
8.4. Specific Perforated Plate ....................................................................................................................... 49
13.1. Transmission of a Panel under an Obliquely Incident Plane Wave ........................................................ 109
13.2. The Lined Guide with Impedance Boundary and Mean Flow .............................................................. 110
13.3. Acoustic Pressure in Lined Guide without Mean Flow ........................................................................ 113
13.4. Acoustic Pressure in Lined Guide with Mean Flow ............................................................................. 113
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. vii
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
viii of ANSYS, Inc. and its subsidiaries and affiliates.
List of Tables
1.1. Acoustic Analysis Steps ........................................................................................................................... 2
2.1. Acoustic Element Properties ................................................................................................................... 5
2.2. Primary Acoustic Analysis Commands ..................................................................................................... 6
2.3. Secondary Acoustic Analysis Commands ................................................................................................. 7
4.1. Key Options for FLUID30, FLUID220, and FLUID221 ................................................................................. 13
4.2. Key Options for FLUID130 ..................................................................................................................... 13
4.3. SI Units ................................................................................................................................................. 14
5.1. Equivalent Fluid Models of Perforated Material ...................................................................................... 19
5.2. Low Reduced Frequency Models ........................................................................................................... 21
7.1. Acoustic Boundary Conditions .............................................................................................................. 25
7.2. Surface Impedance Boundary Conditions .............................................................................................. 26
8.1. Acoustic Excitation Sources ................................................................................................................... 39
8.2. Acoustic Analytic Incident Wave Sources ............................................................................................... 42
8.3. Acoustic Loads ...................................................................................................................................... 47
8.4. Transfer Admittance Matrix Models of Perforated Structures: TB,PERF,,,,TBOPT ....................................... 48
10.1. Acoustic Eigen Equations and Solvers .................................................................................................. 55
11.1. Acoustic Linear Perturbation Analysis Process ...................................................................................... 65
12.1. Postprocessing Commands ................................................................................................................. 69
12.2. Plotting Commands ............................................................................................................................ 69
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. ix
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
x of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 1: Introduction to Acoustic Analysis
The following topics introducing you to acoustic analysis are available:
1.1.The General Acoustic Equations
1.2. Overview of the Acoustic Analysis Process
The program assumes that the fluid is at rest. Only relatively small pressure changes are allowed with
respect to the mean pressure. An acoustic analysis usually involves modeling the acoustic phenomena
in an acoustic fluid and in a structure. A coupled acoustic-structural interaction analysis takes the
structural dynamics equation into account, along with the linearized Navier-Stokes equations of fluid
momentum and the flow continuity equation. A pure acoustic analysis models the acoustics fluid.
In an acoustic analysis, one of the two following matrix equations is solved. For pure acoustic phenomena,
the program solves for this finite element dynamic matrix equation:
where [MF], [CF], and [KF] are the mass, damping, and stiffness matrices, respectively, and {fF} is the ex-
ternal excitation vector in the acoustic fluid.
In acoustic-structural interaction application, the program solves for the fully coupled finite element
dynamic matrix equation:
where [MS], [CS], and [KS] are the mass, damping, and stiffness matrices, respectively, and {fS} is the ex-
ternal force vector in the structure. [R] is the coupled matrix and represents the coupling conditions on
the interface between the acoustic fluid and the structure.
For more information about the matrices, see the Derivation of Acoustic Matrices and Acoustic Fluid-
Structural Interaction (FSI) sections in the Mechanical APDL Theory Reference.
For interior problems, a sound wave propagates or oscillates in a closed structure. The oscillating fre-
quencies and transmission loss (TL) are usually investigated.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 1
Introduction to Acoustic Analysis
For exterior problems, a sound wave radiates into open space or it is scattered by a structural object
in the open domain. The radiation sound power level (Lw), directive gain, or target strength (TS) is
usually investigated. The program’s applications include, but are not limited to, sonar, noise investigation,
acoustic design of architecture, underwater acoustics, and the design of acoustic devices.
An acoustic analysis involves most of the general steps found in any analysis. Following is the general
process for performing an acoustic analysis:
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
2 of ANSYS, Inc. and its subsidiaries and affiliates.
Overview of the Acoustic Analysis Process
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 3
Introduction to Acoustic Analysis
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
4 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 2: Using the Acoustic Analysis Tools
The following tools and resources are available to facilitate an acoustic analysis:
2.1. Elements Used in an Acoustic Analysis
2.2. Commands Used in an Acoustic Analysis
2.3. Understanding Acoustic Analysis Terminology
2.4. Acoustic Analysis Resources and Examples
One element shape (hexahedral, wedge, or tetrahedral), or any combination of shapes, can be used in
a 3-D acoustic model. The pyramid elements are transitional elements between the hexahedral and
tetrahedral elements.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 5
Using the Acoustic Analysis Tools
Although a geometrically complex structure can be meshed with tetrahedral elements, it may require
many elements and lead to a more computationally expensive simulation. Even a regularly shaped
volume may require many tetrahedral elements if it has a very large aspect ratio. In such a case, hexa-
hedral or wedge elements are a better choice.
Command Comments
APORT Specifies parameters for the plane wave and acoustic duct
port.
ASIFILE Defines writing or reading the one-way acoustic-structural
coupling data to or from a file.
ASOL Specify an acoustic harmonic analysis with the scattered
pressure formulation.
ASCRES Output control for an acoustic scattering analysis.
AWAVE Defines the analytic acoustic incident wave source.
DFSWAVE Specifies the incident planar waves with random phases
for a diffuse sound field.
ECPCHG Optimizes degree-of-freedom usage in a coupled acoustic
model.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
6 of ANSYS, Inc. and its subsidiaries and affiliates.
Commands Used in an Acoustic Analysis
Command Comments
ANTYPE Sets a flag indicating whether a subsequent linear
perturbation will be performed.
BF Defines the acoustic body loads.
CP Couples nodes for the Floquet periodic boundary condition.
CPCYC Couples nodes for the Floquet periodic boundary condition
(cyclic symmetry).
*GET Obtains acoustic parameters in post-processing.
HARFRQ Defines the frequency range in the harmonic analysis,
including the octave bands.
LDREAD Reads mean flow results from the results file and applies
them as loads.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 7
Using the Acoustic Analysis Tools
Exterior problem The sound wave radiates or is scattered into the infinite
open space.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
8 of ANSYS, Inc. and its subsidiaries and affiliates.
Acoustic Analysis Resources and Examples
Finally, the Mechanical APDL Verification Manual contains the following acoustics cases:
• VM283 - Low Reduced Frequency Model for Visco-thermal Fluid with Thin Structure
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 9
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
10 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 3: Modeling for an Acoustic Analysis
Use either the preprocessor (/PREP7) or ANSYS Workbench to create the model geometry. The model-
building process is common to most analyses. For more information, see the Modeling and Meshing
Guide.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 11
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
12 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 4: Defining the Acoustic Modeling Environment
The following topics describe the features and applications of the 3-D elements used in an acoustic
analysis:
4.1. Defining Element Types
4.2. Specifying the System of Units
The key options (KEYOPTs) shown in the following two tables define the acoustic element properties:
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 13
Defining the Acoustic Modeling Environment
The following example input defines second-order coupled, uncoupled, and PML elements:
et,1,220,,0,,0 ! coupled brick element with DOF: UX,UY,UX,PRES
et,1,220,,1,,0 ! uncoupled brick element with DOF: PRES
et,1,220,,1,,1 ! uncoupled PML brick element with DOF: PRES
For more information about available units systems, see System of Units in the Coupled-Field Analysis
Guide.
The following table lists the physical quantities used for an acoustic analysis in the SI units system:
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
14 of ANSYS, Inc. and its subsidiaries and affiliates.
Specifying the System of Units
Support for defining a custom system of units is available via the /UNITS command. Typically, the length
and mass conversion factor, as well as the offset of the temperature, are defined. The program converts
the remaining quantities, including the static pressure, reference pressure, and reference power. The
matrices may have matrix conditions with other systems of units than either the SI or MKS system for
acoustic fluid-structural interaction (FSI) models.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 15
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
16 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 5: Defining Acoustic Material Properties
The following topics describing how to define acoustic material properties are available:
5.1. Basic Material Parameters of Acoustic Media
5.2. Non-Uniform Ideal Gas Material
5.3. Equivalent Fluid Model of Perforated Material
5.4. Viscous-Thermal Materials
MP
TB,AFDM,,,,MAT
TBFIELD
TBDATA,1,DENS,SONC,VISC,KXX,CPH,CVH
TBDATA,7,BVIS
Acoustic analyses require the mass density (MP,DENS) and sound speed (MP,SONC) of the acoustic
fluid.
For viscous-thermal material, the dynamic viscosity (MP,VISC), bulk viscosity (MP,BVIS), thermal conduct-
ivity (MP,KXX), heat coefficient at constant volume (MP,CVH), and heat coefficient at constant pressure
(MP,C) are defined.
The following example input defines the acoustic material properties of air via the MP command:
mp,dens,1,1.21 ! mass density
mp,sonc,1,343 ! sound speed
mp,visc,1,1.827e-5 ! dynamic viscosity
mp,bvis,1,1.096e-5 ! bulk viscosity
mp,kxx,1,0.0257 ! thermal conductivity
mp,cvh,1,0.718 ! heat coefficient at a constant volume per mass
mp,c,1,1.005 ! heat coefficient at a constant pressure per mass
Frequency-dependent material properties are defined via the TB,AFDM,,,,MAT command. Material values
defined by TB,AFDM override the values defined by MP.
Frequency-dependent material properties are interpolated if the working frequency is not one of the
frequencies defined via the TBFIELD command.
The following example input defines frequency-dependent acoustic material properties via the TB
command:
tb,afdm,1,,,mat ! basic acoustic materials
tbfield,freq,f1 ! table at frequency f1
tbdata,1,dens1,sonc1,visc1,therm1,cph1,cvh1 ! material parameters table
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 17
Defining Acoustic Material Properties
tbdata,7,bvis1
tbfield,freq,f2 ! table frequency f2
tbdata,1,dens2,sonc2,visc2,therm2,cph2,cvh2 ! material parameters table
tbdata,7,bvis2
The TBLIST command lists the frequency-dependent material properties defined via the TB command.
2. Define the density ρ0 and sound speed C0 at the reference temperature T0 via the MP,DENS and MP,SONC
commands.
3. Define the reference static pressure Psref via the R,,Psref command.
The ideal gas model does not support the MPTEMP and MPDATA commands for mass density and
sound speed. Mass density and sound speed are defined at a reference temperature, and the ideal gas
model calculates the temperature-dependent nodal mass density and sound speed.
For more information, see Non-uniform Acoustic Media in the Mechanical APDL Theory Reference.
The equivalent model uses the wave equation with complex effective density and velocity.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
18 of ANSYS, Inc. and its subsidiaries and affiliates.
Equivalent Fluid Model of Perforated Material
Define an equivalent fluid model via the TB,PERF,,,,TBOPT command. The following table shows the
valid TBOPT values and input parameters necessary for defining equivalent fluid models:
Additional parameters dynamic (shear) viscosity η, thermal conductivity κ, heat coefficient at a constant
pressure Cp, heat coefficient at a constant pressure Cv, and static reference pressure P0 should be defined
for the Johnson-Champoux-Allard model. When the Johnson-Champoux-Allard model is provided with
ten inputs, it has better numerical accuracy than the Delany-Bazley or the Miki models, which require
only one input parameter.
In the absence of multiple parameters, except for fluid resistivity, either the Delany-Bazley of Miki
model can be a viable option for predicting the properties of a perforated material. The working range
of the Delany-Bazley model limits it to 0.01 < f/σ <1.00 where f is the frequency, while the Miki model
extends to f/σ < 0.01 for low frequencies.
For general damping material problems (depending on the availability of parameters), use either the
ZPRO or CDV model.
Specify the frequency-dependent equivalent fluid model of the perforated material as follows:
TB,PERF,,,,TBOPT
TBFIELD,FREQ,VALUE
TBDATA,,C1,C2,C3,C4,C5
The equivalent fluid model of perforated materials supports a full harmonic acoustic analysis only.
Example 5.5: Defining a Frequency-Dependent Complex Effective Density and Sound Speed Model
mp,dens,1,1.21 ! mass density
mp,sonc,1,343 ! sound speed
tb,perf,1,,,cdv ! complex effective density and velocity model
tbfield,freq,f1 ! table at f1
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 19
Defining Acoustic Material Properties
Trimming the perforated structures to a transfer admittance matrix avoids dense mesh and creates ex-
cellent numerical accuracy. See Trim Element with Transfer Admittance Matrix (p. 47).
For more information, see Equivalent Fluid of Perforated Materials in the Mechanical APDL Theory Refer-
ence.
For more information, see Acoustic Fundamentals in the Mechanical APDL Theory Reference.
For more information, see Boundary Layer Impedance (BLI) Model in the Mechanical APDL Theory Reference.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
20 of ANSYS, Inc. and its subsidiaries and affiliates.
Viscous-Thermal Materials
The following table shows the valid TBOPT values and input parameters for the LRF model in a viscous-
thermal fluid:
The following example input defines a low reduced frequency model with a thin layer:
mp,dens,1,1.21 ! mass density
mp,sonc,1,343 ! sound speed
mp,visc,1,1.827e-5 ! dynamic viscosity
mp,kxx,1,0.0257 ! thermal conductivity
mp,cvh,1,0.718 ! heat coefficient at a constant volume per mass
mp,c,1,1.005 ! heat coefficient at a constant pressure per mass
For more information, see Low Reduced Frequency (LRF) Model in the Mechanical APDL Theory Reference.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 21
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
22 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 6: Specifying Acoustic Analysis Region Attributes and
Meshing
Attributes assigned to a model prior to meshing include element type and material number. Assign
these attributes to a region (VATT) for volumes to be meshed with 3-D elements (FLUID30, FLUID220,
and FLUID221). Specify different material ID numbers for the various material regions.
For an acoustic FEA formulation, the mesh must be fine enough to minimize numerical dispersion effects
from finite discretization. In general, the mesh should have at least ten low-order elements and five
high-order elements per propagating or resonant wavelength of the material.
If different materials are present in the model, the mesh should have a smooth transition from the
dense to the coarse. To obtain better accuracy and efficiency, use your best judgment and knowledge
of the sound pressure field to determine appropriate mesh density. For example, if the pressure varies
sinusoidally along the wide side of a rectangular cross section and is uniform along the narrow side,
you might choose to mesh the cross section as shown in this figure:
Do not mix low-order and high-order elements together in a model. Unlike low-order elements, high-
order elements have midside nodes to follow the curvature of a model.
If using MESH200 elements to generate 3-D acoustic elements FLUID30, FLUID220, or FLUID221 (VEXT),
select one of the following MESH200 options:
• KEYOPT(1) = 5 for 3-D triangle elements with midside nodes, used for FLUID221
• KEYOPT(1) = 7 for 3-D quadrilateral elements with midside nodes, used for FLUID220
The following input example uses MESH200 elements to generate FLUID220 elements:
et,1,220,,1
et,11,200,7
…
Rect,0,d,0,d
type,11
amesh,all
asel,s,loc,z,0
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 23
Specifying Acoustic Analysis Region Attributes and Meshing
etype,1
esize,,2
vext,all,,,,,dz
aclear,all
etdele,11
…
fini
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
24 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 7: Applying Boundary Conditions in an Acoustic Analysis
Most boundary conditions can be applied to an acoustic analysis, either on the solid model entities or
on the finite element model entities. Applying boundary conditions to the solid model is advantageous
in that they are independent of the underlying finite element mesh.
For general information about applying boundary conditions, see Loading in the Basic Analysis Guide.
If using coupled acoustic elements (KEYOPT(2) = 0), avoid zero-pivot warning messages by setting the
displacement degrees of freedom (UX, UY, and UZ) at the element nodes not on the interface to zero.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 25
Applying Boundary Conditions in an Acoustic Analysis
If the pressure spatial distribution can be predicted, the Neumann boundary can be used on the sym-
metric plane of the model to reduce the model size.
The infinite radiation boundary assumes the ratio of the pressure and outward normal velocity is equal
to Z0 = ρ0C0. When the radiation boundary is close to the objects or the radiators, the outgoing pressure
wave may no longer hold the ratio Z0 and a numerical error may occur. Using either an absorbing
boundary element or artificially matched layers (p. 29) (PML or IPML) is more accurate for modeling
the far-field radiation boundary. An infinite radiation boundary can be applied to the nodes of the finite
element model via the SF,Nlist,INF command:
The absorption coefficient is often used to measure the absorption of a surface in acoustic applications.
The surface impedance with real value can deviate from the defined absorption coefficient, as shown
in Table 7.2: Surface Impedance Boundary Conditions (p. 26). The absorption coefficient of the surface
can be applied to nodes of the finite element model via the SF,Nlist,ATTN,VALUE command:
A more flexible complex surface impedance represents the specific ratio between pressure and normal
particle velocity on the surface. Surface impedance can be applied to nodes on the finite element
model via the SF,Nlist,IMPD,VALUE,VALUE2 command:
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
26 of ANSYS, Inc. and its subsidiaries and affiliates.
Absorbing Boundary Condition (ABC)
Apply the impedance boundary condition to the exterior surface of the model in an acoustic radiation
or scattering analysis.
Apply the impedance boundary condition to the inlet and outlet surface for the transparent port in an
acoustic propagating analysis.
For example, in a transmission loss analysis of a muffler, you might define the following:
nsel,s,loc,z,0 ! select nodes on inlet
sf,all,impd,z01 ! impedance on inlet
sf,all,shld,vn ! normal velocity on inlet
sf,all,port,10 ! transparent port
nsel,s,loc,l ! select nodes on outlet
sf,all,impd,z02 ! impedance on outlet
Do not use the SF,Nlist,IMPD command to define the radiation boundary (SF,Nlist,INF) if the pure
scattered formulation is selected (ASOL,SC) unless the impedance value is different from the media
characteristic impedance Z0 = ρ0C0.
The free surface must be aligned with the coordinate plane in the global Cartesian coordinate system.
The gravitational acceleration input is always positive regardless of how the model is set up.
For more information, see Acoustic Fluid-Structural Interaction (FSI) in the Mechanical APDL Theory Ref-
erence.
For a 3-D acoustic analysis, the absorbing boundary must be a spherical enclosure centered at the origin
(x0,y0,z0) with radius ra.
For a 2-D acoustic analysis, the absorbing boundary must be a circle centered at the origin (x0,y0,0) with
radius Ra.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 27
Applying Boundary Conditions in an Acoustic Analysis
Absorbing elements have a mesh conforming to the underlying elements. The 4-node element FLUID130
(KEYOPT(1) = 0) is applied to the top of the 8-node element FLUID30. The 8-node element FLUID130
(KEYOPT(1) = 2) is applied to the top of the 20-node element FLUID220 or the 10-node element FLUID221.
The 2-node element FLUID129 is connected to the 4-node element FLUID29.
1. Mesh the model enclosed by a spherical surface with FLUID30, FLUID220, or FLUID221 elements.
2. Select the underlying nodes and elements on the spherical boundary surface.
Absorbing elements accommodate the symmetry of the model. If the radiated acoustic field has no
significant effect on the excitation source entity, the spherical absorbing boundary can locally enclose
the open space near the radiation outlet, as shown in this figure:
Figure 7.1: Spherical ABC for Symmetry and Near the Radiation Outlet
FLUID130 and FLUID129 can be used for modal, harmonic, and transient analyses.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
28 of ANSYS, Inc. and its subsidiaries and affiliates.
Artificially Matched Layers
In a coupled harmonic analysis, the FLUID130 element is compatible with the symmetrical formulation
of the FLUID30, FLUID220 and FLUID221 elements (KEYOPT(1) = 2). The symmetrical formulation leads
to 2x performance improvement for factorization compared with the unsymmetrical solver.
For more information, see Absorbing Boundary Condition (ABC) in the Mechanical APDL Theory Reference.
Using artificially matched layers can reduce the size of the computational domain significantly with
very small numerical reflections. A region of the artificially matched layers is backed by a soft-sound
boundary condition (p = 0, or the velocity potential Φ = 0 for the convective wave equation).
If the pressure wave should be absorbed in only one direction, such as in a traditional tube, construct
a 1-D PML region in the global Cartesian coordinate system or a local Cartesian coordinate system, as
shown in this figure:
To define PML elements, issue the ET command to specify the desired fluid element type (FLUID30,
FLUID220, or FLUID221). Set KEYOPT(4) = 1 for that element type prior to meshing the PML region. Use
any element shape to mesh the PML block.
More than one 1-D PML regions can exist in a model. The PML element coordinate system (PSYS)
uniquely identifies each PML region. Define a Cartesian coordinate system (LOCAL) with one axis in the
wave-propagating direction, then assign the coordinate system to the elements in the PML region
(VATT or PSYS prior to meshing, or EMODIF after meshing).
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 29
Applying Boundary Conditions in an Acoustic Analysis
A 3-D PML region consists of layers of elements extending from the interior volume towards the open
domain, as shown in this figure:
Construct a block about the origin in the global Cartesian coordinate system or a local Cartesian coordin-
ate system. Align the edges of the 3-D PML region with the axes of the Cartesian coordinate system.
To optimize the absorbing efficiency of the PML, construct the PML regions and apply the following
parameters carefully:
• Attenuation parameters
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
30 of ANSYS, Inc. and its subsidiaries and affiliates.
Artificially Matched Layers
• Number of buffer elements between the PML region and objects or discontinuities (≥ 2)
The attenuation from the PML interface to the PML exterior surface is a parabolic distribution that
minimizes numerical reflections from the PML elements, as shown in this figure:
The numerical reflection is caused by the discretization of a continuous distribution of material from
element to element. To obtain satisfactory numerical accuracy, use at least two layers of PML elements.
The PML thickness may need to be greater than 1/10 of a wavelength.
Because a PML region acts as an infinite open domain, any boundary conditions and material properties
must be carried over to the PML region. Material properties such as mass density and sound speed in
the PML region must be identical to those of the adjacent interior region.
A sound-soft Dirichlet boundary with p = 0 or Φ = 0 must back all exterior surfaces of the PML region,
except for symmetric surfaces with a rigid wall boundary condition. To specify a sound-soft boundary
condition on the outer surfaces of the PML region, use the D,,PRES,0 command for a finite element
model (the velocity potential Φ is assigned to the pressure degree-of-freedom label for the convective
wave equation). The sound-soft or sound-hard boundary conditions can be applied on symmetric surfaces
of a PML region.
Include at least two buffer elements between the PML region and a discontinuity or object in the domain,
as shown in this figure:
The PML can then absorb the outgoing wave effectively and minimize numerical reflections.
Because PML is an artificial anisotropic material, excitation sources are prohibited in the PML region.
The attenuation of the pressure wave in a PML region can be controlled. If desired, use the PMLOPT
command to specify the normal reflection coefficient (harmonic) for propagating waves:
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 31
Applying Boundary Conditions in an Acoustic Analysis
PMLOPT,PSYS,Lab,Xminus,Xplus,Yminus,Yplus,Zminus,Zplus, MixOpt
The direction designations are Xminus, Yminus, Zminus, Xplus, Yplus, and Zplus. The minus and
plus refer to the negative and positive directions along the Cartesian coordinate axes, respectively.
When MixOpt is activated, both the propagating wave and the evanescent wave are attenuated. The
program chooses the coefficient α value (where α > 1) of the PML parameter (s = α - jβ) in terms of
the normal reflection coefficients.
If the propagating wave is absorbed in only one direction, define a 1-D PML region (Lab = ONE). In this
case, only the Xminus argument is necessary.
For a 3-D PML region, a different normal reflection coefficient can be defined for each direction (Xminus,
Yminus, Zminus, Xplus, Yplus, Zplus). Normal reflection coefficients default to 10-3 (-60 dB) for
a harmonic analysis. Normal reflection coefficients should be less than 1.0. If only a very few PML layers
are used (for example, two or three), specifying a very small normal reflection coefficient (such as -100
dB) may lead to significant numerical reflection.
The following example input defines 3-D PML parameters as illustrated in Figure 7.3: PML Enclos-
ure (p. 30):
pmlxm=0 ! No PML in –x direction
pmlxp=-40 ! -40 dB in +x direction
pmlym=0 ! No PML in –y direction
pmlyp=-40 ! -40 dB in +y direction
pmlzm=-60 ! -60 dB in –z direction
pmlzp=-60 ! -60 dB in +z direction
Repeat the PMLOPT command for additional PML regions. The PML may have a different number of
elements in each direction.
The number of PML layers determines the absorbing efficiency of the PML region. An excessive number
of PML elements significantly increases computational requirements. The number of PML layers (n) for
acceptable numerical accuracy is determined by the following command:
PMLSIZE,FREQB,FREQE,DMIN,DMAX,THICK,ANGLE
The following figure shows the relationship between DMIN, DMAX, and THICK:
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
32 of ANSYS, Inc. and its subsidiaries and affiliates.
Artificially Matched Layers
If n < 2, the number of layers is set to 2 to reduce numerical reflection. If n > 20, the number of layers
is set to 20 to avoid an excessive number of PML elements.
Before meshing the model, issue the PMLSIZE command. If the thickness of the PML region is known,
the command specifies an element edge length. If the thickness of the PML region is unknown, it specifies
the number of layers (n). For further information, see the PMLOPT and PMLSIZE commands in the
Command Reference.
• The impedance is unknown on exterior surfaces of the model, such as complex scatters.
• Multiple propagating modes on the outlet surface are excited by discontinuities in the structure so that the
defined impedance may not absorb all outgoing propagating modes.
• Using the spherical second-order ABC leads to numerous elements or lesser accuracy.
In most acoustic radiation and scattering applications, the open domain is fully enclosed by 3-D PML,
as shown in Figure 7.3: PML Enclosure (p. 30). If the radiated acoustic field has no significant effect on
the excitation source entity, however, the 3-D PML can be used to locally enclose the open space near
the radiation outlet, as shown in this figure:
It is necessary to separate the PML region and sound-propagating region with the rigid wall, as the
PML connects only to the infinity.
For more information, see Perfectly Matched Layers (PML) in the Mechanical APDL Theory Reference.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 33
Applying Boundary Conditions in an Acoustic Analysis
IPML is used only in harmonic acoustic analysis. The use of the IPML is the same as discussed for PML
(see Perfectly Matched Layers (PML) (p. 29)). Fewer buffering and absorbing elements are generated
for IPML compared to PML. However, IPML may have worse absorption than PML. IPML does not support
the pure scattered pressure formulation in radiation or scattering analyses.
To define IPML elements, issue the ET command to specify the desired fluid element type (FLUID30,
FLUID220, or FLUID221). Set KEYOPT(4) = 2 for that element type prior to meshing the IPML region. Use
any element shape to mesh the IPML region.
The IPML region is not related to any user-specified global or local coordinate system.
The construction of a 1-D IPML region is similar to 1-D PML construction (see Figure 7.2: 1-D Multiple
PMLs for Pipes (p. 29)).
A 3-D IPML region consists of elements extending from the interior convex-shaped volume towards the
open domain, as shown in the figure below.
It is necessary to construct IPML as a convex region. To optimize the absorbing efficiency of the IPML,
construct the IPML regions and apply the following parameters carefully:
• Number of buffer elements between the IPML region and objects or discontinuities (≥2)
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
34 of ANSYS, Inc. and its subsidiaries and affiliates.
Floquet Periodic Boundary Condition (FPBC)
The attenuation from the IPML interface to the IPML exterior surface is a parabolic distribution (see
Figure 7.4: Attenuation Distribution (p. 31)).
Boundary conditions and material properties must be carried over into the IPML region. Material prop-
erties of the IPML must be identical to those of the adjacent interior region. Excitation sources are
prohibited in the IPML region.
A sound-soft Dirichlet boundary with p = 0 or Φ = 0 must back all exterior surfaces of the IPML region,
except for symmetric surfaces with a rigid wall boundary condition. Use the D,,PRES,0 command to
specify the sound-soft boundary condition (the velocity potential Φ is assigned to the pressure degree-
of-freedom label for the convective wave equation). Sound-soft or sound-hard boundary conditions
can be applied on symmetric surfaces of the IPML region. If the pressure constraint is not defined in
the model, the program can automatically apply a zero pressure constraint to the exterior surface of
the IPML. The sound-soft rigid walls (symmetric planes) must be flagged by the SF,,RIGW command.
Use the PMLOPT command to adjust the attenuation of the pressure wave in the IPML region. Specify
the normal reflection coefficient (harmonic) for propagating waves via the Xminus argument:
PMLOPT,,,Xminus,,,,,, MixOpt
Only the Xminus and MixOpt arguments are used for IPML. When MixOpt is activated, both the
propagating wave and the evanescent wave are attenuated.
For more information, see Irregular Perfectly Matched Layers (IPML) in the Mechanical APDL Theory Ref-
erence.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 35
Applying Boundary Conditions in an Acoustic Analysis
The cell sidewalls are assigned as master and slave boundaries, and they are bound together by the
periodic boundary conditions.
To impose periodic boundary conditions, the mesh pattern on the master boundary must be identical
to the mesh pattern on the slave boundary. You must mesh the master boundary using the AMESH
command. You then use the AGEN or MSHCOPY command to generate the mesh on the slave
boundary prior to meshing the cell volume.
Matching the nodes on the master boundary to the nodes on the slave boundary imposes the periodic
boundary conditions. Use the CP or CPCYC command to define the master-slave coupled nodal pairs.
For more information on the Floquet periodic boundary condition, see Acoustic Boundary Conditions
in the Mechanical APDL Theory Reference.
BF,Node,FPBC,VAL1,VAL2
On the other hand, the phase shift across the period can be calculated by the program on the slave
nodes for the plane wave incidence if a plane wave port (APORT,,PLAN command) is defined.
An obliquely incident plane wave may be launched into the unit model of the periodic structure by the
APORT command; the program calculates the phase shift on the slave node in terms of defined coupled
pairs. Since multiple modes can be excited by the incident plane wave due to the discontinuity in the
periodic structure, either PML or IPML (PMLOPT) should be used to truncate the domain. The interior
plane wave port (APORT) launches the oblique plane wave. The port cross section is perpendicular to
the z direction of the local coordinate system.
If structural elements exist with the FSI, the coupled nodal pairs and phase shift are also applied on the
structural elements. It is necessary to define a small PML or IPML reflection (for example, 1.0e-6 input
on the PMLOPT command) if the nearly grazing incident angle occurs. The MSOLVE command performs
an angle sweep when the multiple planar wave incident angles are investigated.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
36 of ANSYS, Inc. and its subsidiaries and affiliates.
Floquet Periodic Boundary Condition (FPBC)
In postprocessing, the PRAS and PLAS commands print and plot the frequency responses of the sound
power parameters on the ports with multiple incident angles.
! coupled nodes
nsel,s,loc,x,xSlave
nsel,a,loc,x,xMaster
nsel,r,loc,z,zBeg,zEnd ! all nodes on cell walls
cpcyc,all,,,(xMaster-xSlave) ! coupling nodes with period
...
nsel,s,loc,z,zPort1 ! interior port 1
bf,all,port,1
aport,1,plan,0,p0,0,0,0,theta ! source port
nsel,s,loc,z,zPort2 ! interior port 2
bf,all,port,2
aport,2,plan,0,0,0,0,0,theta ! output port
...
d,all,pres,0. ! zero pressure on PML exterior
pmlopt,,,,,,,1.e-6,1.e-6 ! PML parameter
...
Note that the Floquet periodic boundary condition does not support acoustic fluid-structure interaction
(FSI) in a modal analysis.
BF,Node,FPBC,0
BF,Node,FPBC,3.1415926535
The frequencies locate between f0 and fπ when the phase shift varies between 0 and . Usually, the
frequencies f0 and fπ are solved before solving the phase shift with a given frequency. For the phase
shift L = 0, select the block Lanczos or subspace eigensolver (Method = LANB or SUBSP on the
MODOPT command). For the phase shift L = , select the unsymmetric eigensolver (Method = UNSYM
on the MODOPT command).
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 37
Applying Boundary Conditions in an Acoustic Analysis
BF,Node,FPBC,YES
MODOPT,Method,NMODE,FREQB,FREQE,Cpxmod,Nrmkey,ModType,BlockSize, --,
--, --, FREQMOD
For the phasor eigenvalue, select the unsymmetric eigensolver (Method = UNSYM on the MODOPT
command).
Example 7.13: Solving the Phasor Eigenvalue in a Modal Analysis with FPBC
et,1,220,, ! acoustic element
...
! coupled nodes
nsel,s,loc,x,xSlave
nsel,a,loc,x,xMaster
nsel,r,loc,z,zBeg,zEnd ! all nodes on cell walls
cpcyc,all,,,(xMaster-xSlave) ! coupling nodes with period
...
nsel,s,loc, x,xSlave ! select slave nodes
bf,all,FPBC,YES ! flag slave nodes
...
/solu
modopt,unsym,2,1.e-7,2,,,,,,,200 ! define unsymm. solver and frequency
...
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
38 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 8: Applying Excitation Sources and Loads in an Acoustic
Analysis
The following topics are available:
8.1. Applying Acoustic Excitation Sources
8.2. Applying Acoustic Loads
• Normal velocity (harmonic analysis) or acceleration (transient analysis) on the exterior surface of the domain
(SF)
• Arbitrary velocity (harmonic analysis) or acceleration (transient analysis) on the exterior surface of the domain
(BF)
• Mass source (harmonic analysis) or mass source rate (transient analysis) at nodes, along lines, on surfaces,
or in volumes (BF)
The following table shows all excitation sources available for acoustic analysis:
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 39
Applying Excitation Sources and Loads in an Acoustic Analysis
For general information about applying loads, see Loading in the Basic Analysis Guide.
When applying pressure excitation, the pressure is enforced to a given value. Sound pressure reflected
by other objects back to the excitation point cannot be taken into account.
Pressure excitation can be used only under conditions where the effect of reflected sound pressure is
not required.
Apply a minus sign of the outward normal velocity if an inward normal velocity is required.
For a harmonic analysis, a complex normal velocity to the surface is defined by the amplitude and phase
angle. The program solves for the pressure on the normal velocity excitation surface.
Normal velocity excitation exists either on the structural surface or on the transparent pressure wave
port on which the incident wave propagates into the acoustic domain and the reflected wave backs to
the infinity. To absorb the reflected wave on the transparent port, apply the impedance boundary to
the port surface (SF,Nlist,IMPD or SF,Nlist,INF) along with the velocity excitation. To distinguish
the transparent wave port from the structural surface, specify the transparent port surface
(SF,Nlist,PORT).
The following command applies outward normal velocity or acceleration to the nodes of the FE model:
SF,Nlist,SHLD,Value,Value2
Example 8.1: Defining the Normal Velocity and Impedance BC on a Transparent Wave Port
nsel,loc,z,0 ! select nodes at z = 0
sf,all,shld,vn,ang ! complex normal velocity
sf,all,impd,z0 ! impedance boundary
sf,all,port,1 ! transparent port
Example 8.2: Defining the Normal Velocity and Impedance BC on a Structural Surface
nsel,loc,z,0 ! select nodes at z = 0
sf,all,shld,vn,ang ! complex normal velocity
sf,all,impd,z0 ! impedance boundary
Example 8.3: Defining the Frequency Dependency of the Normal Velocity of Acceleration
Use tables (*DIM) in the SF command to define the frequency dependency of the normal velocity of
acceleration, as shown:
*dim,vn,TABLE,2,1,1,FREQ ! normal velocity table
*dim,ang,TABLE,2,1,1,FREQ ! angle table
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
40 of ANSYS, Inc. and its subsidiaries and affiliates.
Applying Acoustic Excitation Sources
The arbitrary velocities are projected to the outward normal direction on the excitation surface after
interpolation during an acoustic solution. For a harmonic analysis, a complex velocity is defined by the
amplitudes and phase angles of the components.
The arbitrary velocity or acceleration can be defined in a local Cartesian coordinate system (LOCAL),
then assigned to the elements (VATT or ESYS prior to meshing or EMODIF after meshing). The program
solves for pressure on the velocity excitation surface. If the reflected sound pressure waves that are
passing through the velocity excitation surface are simulated, apply the impedance boundary condition
to the excitation surface. The arbitrary velocity excitation exists either on the structural surface or on
the transparent pressure wave port.
The following command applies arbitrary velocity to the nodes of the FE model:
BF,Node,VELO,Vx,Vy,Vz,AngX,AngY,AngZ
Example 8.4: Defining the Arbitrary Velocity and Impedance BC on a Transparent Wave Port
et,1,220,,1 ! uncoupled acoustic element
local,11 ! local coordinate
esys,11 ! use local as element esys
…
nsel,loc,z,0 ! select nodes at z = 0
bf,all,velo,vx,vy,vz,angx,angy,angz ! complex arbitrary velocity
sf,all,impd,z01 ! impedance boundary
sf,all,port,1 ! transparent port
Example 8.5: Defining the Frequency Dependency of the Arbitrary Velocity or Acceleration
Use tables (*DIM) in the BF command to define the frequency dependency of the arbitrary velocity or
acceleration, as shown:
*dim,vx,TABLE,2,1,1,FREQ ! vx table
*dim,vy,TABLE,2,1,1,FREQ ! vy table
*dim,vz,TABLE,2,1,1,FREQ ! vz table
*dim,ax,TABLE,2,1,1,FREQ ! angle x table
*dim,ay,TABLE,2,1,1,FREQ ! angle y table
*dim,az,TABLE,2,1,1,FREQ ! angle z table
vx(1,0,1)=FreqB ! beginning frequency
vx(2,0,1)=FreqE ! ending frequency
vx(1,1,1)=vx1 ! vx at FreqB
vx(2,1,1)=vx2 ! vx at FreqE
vy(1,1,1)=vy1 ! vy at FreqB
vy(2,1,1)=vy2 ! vy at FreqE
vz(1,1,1)=vz1 ! vz at FreqB
vz(2,1,1)=vy2 ! vz at FreqE
ax(1,1,1)=vx1 ! angle x at FreqB
ax(2,1,1)=vx2 ! angle x at FreqE
ay(1,1,1)=vy1 ! angle y at FreqB
ay(2,1,1)=vy2 ! angle y at FreqE
az(1,1,1)=vz1 ! angle z at FreqB
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 41
Applying Excitation Sources and Loads in an Acoustic Analysis
Specify the integer number (WaveNum) or an acoustic incident wave inside or outside of the model.
Valid values are 1 through 20. One or more wave types can be selected. The amplitude of the pressure
or normal velocity is used for the excitation.
A planar wave can be defined in terms of the amplitude and the spatial incident angles in the global
spherical coordinate system, as shown in this figure:
Because the incident planar wave is approximated by the far-field wave front of a source far from the
receiver, both the initial phase angle and the source original are ignored.
Specify the analytic incident wave sources and select either the total pressure field or the scattered
field solver in an acoustic scattering analysis.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
42 of ANSYS, Inc. and its subsidiaries and affiliates.
Applying Acoustic Excitation Sources
If the scattered parameter is required and the scattered pressure field is much smaller than the incident
pressure field, use the scattered pressure field solver (ASOL,SCAT) to avoid numerical errors. Control
the output result as needed for either the total or scattered nodal pressure in the model (ASCRES).
Specify incident wave sources as external sources (Opt2 = EXT on the AWAVE command) if a scattering
analysis is needed.
When analytic incident wave sources are used inside the model (Opt2 = INT on the AWAVE command),
only the scattered pressure field solver is activated, regardless of whether the ASOL,SCAT command is
issued.
The source origin must be located inside the model. The plane wave incident source cannot be used
inside the model.
The uniform normal velocity on the cross section can be used to launch the plane wave. When analytic
incident wave sources are located inside the model, the nodal total pressure is always output, even
though the scattered field solver is used.
It is not necessary to assign the internal analytic incident wave sources to the FE nodes. It is convenient
to use the internal analytic incident wave sources rather than meshing the wave source structure, such
as a pulsating sphere.
For more information, see Pure Scattered Pressure Formulation in the Mechanical APDL Theory Reference.
The mass source is input by defining up to one scalar quantity (Lab = MASS on the BF command) and
a phase angle. The mass source is specified at nodes (BF).
For a volume mass source, specify the mass source on the volumetric nodes.
For a surface mass source, specify the mass source on at least three nodes on an element face. The
surface current source must coincide with the elements faces.
For a line mass source, specify the mass source at two nodes connected by an element edge. The line
current source must coincide with the element edges.
In general, a mass source launches the pressure wave in all directions. For a propagating or resonant
system, a mass source can be used to excite the propagating modes or resonant modes of the structure.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 43
Applying Excitation Sources and Loads in an Acoustic Analysis
Only proper modes can exist in the structure. To reduce the parasitic modes, choose the distribution
of the mass source based on the pressure distribution of the excited mode.
When a mass source is applied to an exterior surface, the excited pressure is determined by p = qsc0.
On an exterior or interior transparent port, the excited pressure is given by p = qsc0 / 2.
Example 8.9: Defining the Frequency Dependency of the Arbitrary Mass Source or Mass Source
Rate
Use tables (*DIM) in the BF command to define the frequency dependency of the arbitrary mass source
or mass source rate, as shown:
*dim,masmag,TABLE,2,1,1,FREQ ! mass source amplitude table
*dim,masang,TABLE,2,1,1,FREQ ! mass source angle table
masmag (1,0,1)=FreqB ! beginning frequency
masmag (2,0,1)=FreqE ! ending frequency
masmag (1,1,1)=vx1 ! amplitude at FreqB
masmag (2,1,1)=vx2 ! amplitude at FreqE
masang (1,1,1)=vz1 ! angle at FreqB
masang (2,1,1)=vy2 ! angle at FreqE
nsel,s,loc,z,0 ! select nodes at z = 0
bf,all,mass,% masmag%,%masang% ! complex mass source table
For more information, see Mass Source in the Wave Equation in the Mechanical APDL Theory Reference.
The incident space of the diffuse sound field is mesh-free. A reference sphere related to the structural
panel defines the incident plane waves. The radius R of the reference sphere should be at least 50 times
the maximum dimension of the structural panel. The energy of the diffuse sound field uniformly distrib-
utes on the reference sphere surface in all directions. The sphere surface is equally divided into N ele-
mentary surfaces.
The plane center of the structural panel should be located at the origin of the local Cartesian coordinate
system (LOCAL) (defaults to the global Cartesian coordinate system). The +z axis of the Cartesian co-
ordinate system must be consistent with the panel’s outward normal unit vector on the panel’s incident
diffuse sound field side. The structural panel is meshed by solid or shell elements.
The receiving domain is meshed by acoustic elements and truncated by artificially matched layers (p. 29)
(PML or IPML) or by absorbing elements, as shown in this figure:
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
44 of ANSYS, Inc. and its subsidiaries and affiliates.
Applying Acoustic Excitation Sources
If the effect of the acoustic fluid on the structural panel can be ignored, it is not necessary to create a
receiving acoustic domain. The radiated sound far-field is calculated in the postprocessor (PRFAR,PLAT
or PLFAR,PLAT) once the structural panel model is solved with the flagged equivalent source surface
(SF,,MXWF).
In practice, the sphere surface is divided into M parallel rings along the z axis of a local Cartesian co-
ordinate system, and the program generates the elementary surfaces, each having nearly the same area.
When defining the diffuse sound field, the DFSWAVE command specifies the local coordinate system
number, the radius of the reference sphere, the reference power spectral density, mass density of the
incident space, the sound speed in the incident space, the maximum incident angle of the plane waves,
the number of the parallel rings, and the sampling options.
To excite the vibro-acoustics system, generate the SURF154 surface element on the surface of the
structural elements.
The symmetry of a panel structure cannot be used to reduce the simulation size, as the incident plane
waves have varying random phase angles.
To initiate multiple solutions (load steps) for random acoustics analysis with multiple samplings, issue
the MSOLVE command. The process is controlled by the norm convergence tolerance (VAL1 on MSOLVE)
or the number of multiple solutions if the number of solution steps reaches the number specified
(NUMSLV on MSOLVE). The program checks the norm convergence by comparing two averaged sets
of radiated sound powers with the interval of the norm (VAL2 on MSOLVE) over the frequency range.
To calculate the average transmission loss for multiple sampling phases at each frequency over the
frequency range, issue the PRAS or PLAS command.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 45
Applying Excitation Sources and Loads in an Acoustic Analysis
sectype,2,shell
secdata,0.005,2
cmsel,s,nod1 ! select FSI interface nodes
type,3
mat,2
secn,2
esurf ! generate shell element
alls
/post1
pras,dfstl,avg ! print transmission loss
plas,dfstl,avg ! plot transmission loss
finish
For more information, see Random Acoustics in the Mechanical APDL Theory Reference.
If the lowest order mode is launched and the higher order modes decay as the parasitic evanescent
modes near the discontinuities, the acoustic port can be used to terminate the inlet or outlet with the
specified mode. While the multiple propagating modes are excited and propagate in the acoustic duct,
PML or IPML (p. 29) should be used for the domain truncation.
Define the property of an analytic modal port via the following command:
APORT,PortNum,Label,KCN,PRES,PHASE,--,VAL1,VAL2,VAL3,VAL4
The available analytic port types are planar wave, rectangular duct, circular duct, and coaxial duct.
nsel,s,loc,x,-1
nsel,a,loc,x,1
nsel,r,loc,z,-5,5
cpcyc,all,,,2 ! coupled nodes for PBC
...
nsel,s,loc,z,4
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
46 of ANSYS, Inc. and its subsidiaries and affiliates.
Applying Acoustic Loads
nsel,s,loc,z,-5
nsel,a,loc,z,5
d,all,pres,0 ! zero pressure on PML exterior surface
Note that the transverse cross section of the acoustic port must be located on the x-y plane in the
defined local coordinates system (LOCAL).
The low-order FLUID30 element does not support the higher modes in the coaxial duct.
For more information, see Analytic Port Modes in a Duct in the Mechanical APDL Theory Reference.
Use of temperature and static pressure body load are discussed in Non-Uniform Ideal Gas Material (p. 18).
The coupled trim element connects with both the structural element and uncoupled acoustic element.
The uncoupled trim element connects with the uncoupled acoustic elements, as shown in the following
figure:
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 47
Applying Excitation Sources and Loads in an Acoustic Analysis
If the trim elements connect only to the uncoupled acoustic element, define the port numbers of the
2 x 2 transfer admittance matrix with positive integers on a pair of the opposite faces of the element
(SF,Nlist,PORT). The smaller port number corresponds to port 1 of the 2 x 2 transfer admittance
matrix and the greater port number corresponds to port 2.
If one face of the coupled trim element is defined as the FSI interface (SF,Nlist,FSI), it is assigned to
port 1 of the transfer admittance matrix, while its opposite face connecting with the acoustic element
should be defined by a port number (SF,Nlist,PORT), corresponding to port 2 of the transfer admittance
matrix.
The following table shows the available transfer admittance matrix models:
The following figure illustrates perforated plates with hexagonal and square grids:
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
48 of ANSYS, Inc. and its subsidiaries and affiliates.
Applying Acoustic Loads
The trim element is available only for hexahedral and prism elements.
In a hexahedral element, only a pair of opposite element faces can be defined as the ports. In a prism
element, only two triangular element faces are used for the ports.
A pair of ports of the 2 x 2 transfer admittance matrix must be defined in the same element. No limitation
exists on the trim element mesh size between two ports.
The 2 x 2 transfer admittance matrix can be symmetric or asymmetric. The program selects the correct
solver for the specific transfer admittance matrix.
For a multi-layer perforated structure, if the individual transfer admittance matrix of each layer is known,
convert the transfer admittance matrices to ABCD matrices. Multiply all ABCD matrices together. Convert
the final ABCD matrix into the 2 x 2 transfer admittance matrix for the input.
Specify a frequency-dependent trim element with the general transfer admittance matrix as follows:
TB,PERF,,,,YAMT
TBFIELD,FREQ,Value
TBDATA,1,Re(Y11),Im(Y11),Re(Y12),Im(Y12),Re(Y21),Im(Y21)
TBDATA,7,Re(Y22),Im(Y22),Re( ),Im( ),Re( ),Im( )
Two specified perforated structures with holes are present on the plate.
Specify a perforated structure with a square (TBOPT = SGYM) or hexagonal (TBOPT = HGYM) grid as
follows:
TB,PERF,,,,TBOPT
TBFIELD,FREQ,Value
TBDATA,rad,period,thick,rho,visc,ratio
The program calculates the transfer admittance matrix during the solution in terms of the input para-
meters.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 49
Applying Excitation Sources and Loads in an Acoustic Analysis
…
esel,s,mat,,2 ! element with YMAT
nsle,s ! nodes in YMAT elements
nsel,s,loc,z,z1 ! select nodes at z = z1
sf,all,port,1 ! port 1
nsel,s,loc,z,z2 ! select nodes at z = z2
sf,all,port,2 ! port 2
…
nsel,s,loc,z,z3 ! select nodes at z = z3 and 0
nsel,a,loc,z,0
sf,all,impd,z0 ! impedance boundary
nsel,s,loc,z,0 ! nodes at z = 0
sf,all,shld,-vn, ! normal velocity
For more information, see Transfer Admittance Matrix in the Mechanical APDL Theory Reference.
If your simulation has nearly continuous pressure and the full 2 x 2 transfer admittance matrix is unknown,
see Impedance Sheet Approximation in the Mechanical APDL Theory Reference for a calculation of sheet
impedance.
BF,Node,IMPD,Rs,Xs
BFA,Area,IMPD,Rs,Xs
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
50 of ANSYS, Inc. and its subsidiaries and affiliates.
Applying Acoustic Loads
The equivalent source surface is available only for the near- and far-field parameters in a harmonic
analysis.
For problems requiring near- and far-field computations, first define an equivalent source surface in the
preprocessor. The surface must enclose the radiator or scatter, except for symmetry planes. Equivalent
sources are calculated and stored on the surface, enabling quick calculation of near- and far-field inform-
ation in the postprocessor.
For radiation and scattering problems, use an absorbing boundary condition (ABC).
For radiation problems, use perfectly matched layers (PML) or irregular perfectly matched layers (IPML),
absorbing elements (FLUID130), or the far-field radiation boundary (INF).
For scattering problems, use either PML/IPML or the far-field radiation boundary (INF).
The equivalent source surface may be between the radiator or scatter and the PML or IPML region.
Define an equivalent source surface using a surface boundary load with the flag MXWF. When applying
a MXWF surface load, be sure to define an equivalent source surface. If no equivalent source surfaces
are defined, the program flags the PML or IPML interface, absorbing element surface, or radiation
boundary as the equivalent source surface. Do not flag any surface on a symmetry plane (for example,
the Y-Z and X-Z planes in Figure 7.3: PML Enclosure (p. 30)).
3. Reselect just the exterior nodes to work with only the surface nodes (NSEL,R,EXT).
2. Select the elements attached to the selected nodes, only if all of its nodes are in the selected nodal set
(ESLN,S,1,ALL).
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 51
Applying Excitation Sources and Loads in an Acoustic Analysis
Do not apply the surface flag via the SFA command, which transfers the surface flag to adjacent elements
on either side of the equivalent source surface and can lead to erroneous results.
For more information, see Acoustic Output Quantities in the Mechanical APDL Theory Reference
SF,Nlist,PORT,PortNum
BF,Node,PORT,PortNum
To indicate the ports of a transfer admittance matrix, issue the SF,Nlist,PORT command only. If the
sound power is required after the solution, apply the port number to the inlet and outlet before the
solution.
BF,Nlist,VMEN,v0x,v0y, v0z
Tabular input can be used to define the mean flow velocity. See the BF command for details.
For more information, see Solving the Convective Wave Equation for the Mean Flow Effect.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
52 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 9: Accounting for Acoustic Fluid-Structure Interaction (FSI)
An acoustic structural interaction solution can be obtained with either a strongly coupled matrix or a
load transfer, as described in:
9.1. Matrix-Coupled FSI Solutions
9.2. One-Way Coupling FSI Solutions
To specify the strongly coupled FSI interface, issue the following command before the solution:
SF,Nlist,FSI
The program automatically detects and specifies the strongly coupled FSI interfaces between the
acoustics elements (FLUID30, FLUID220 and FLUID221) and the solid structural elements (SOLID185,
SOLID186, SOLID187 and SOLSH190), but not for the shell elements (SHELL181 and SHELL281).
The FSI interface must be defined on the nodes belonging to the coupled acoustic elements (KEYOPT(2)
= 0) rather than on the nodes of the structural elements.
The unsymmetric matrix equation is raised by the coupled FSI problem, which can be transformed into
the symmetrical matrix equation for performance improvement (KEYOPT(1) = 2 for harmonic analysis).
Meshing the entire acoustic domain with coupled elements (KEYOPT(2) = 0) leads to a larger Job-
name.EMAT file, although the displacement degree of freedom is not solved in uncoupled elements.
After defining the FSI interface or solid structural elements, issue the following command for file size
optimization:
ECPCHG
The ECPCHG command modifies the attributes of acoustic elements so that only acoustic elements
with an FSI interface become the coupled elements, and other acoustic elements are uncoupled, pure
acoustic elements. Up to 80% reduction in file size may occur for the Jobname.EMAT file.
If the contact element is used between acoustic elements and solid structural elements for a noncon-
forming mesh, the MPC contact surface (CONTA173 or CONTA174 with KEYOPT(2) = 2, KEYOPT(4) = 3,
KEYOPT(8) = 2, and KEYOPT(12) = 5) must be on the fluid side, and the target surface (TARGE170 with
KEYOPT(5) = 1) must be on the solid side.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 53
Accounting for Acoustic Fluid-Structure Interaction (FSI)
For more information, see Acoustic Fluid-Structural Interaction (FSI) in the Mechanical APDL Theory Ref-
erence.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
54 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 10: Solving an Acoustic Analysis
The solution phase of an acoustic analysis is initiated according to standard convention. Modal, harmonic,
and transient acoustic analyses are supported.
The following topics concerning the acoustic analysis solution are available:
10.1. Acoustic Analysis Solution Settings
10.2. Starting and Finishing the Solution
The eigenvalue solution can include damping effects from the impedance boundary (SF,Nlist,IMPD)
or the absorbing element (FLUID130). The absorbing element is used for the termination of the infinite
acoustic domain.
The sloshing effect can be modeled (SF,Nlist,FREE and ACEL commands) in an acoustic modal ana-
lysis.
To specify solver options for the modal analysis, issue the MODOPTcommand. Following are the eigen
equations and solvers available in an acoustic modal analysis.
When damping is present, the eigensolutions are complex. For more information, see Complex Ei-
gensolutions.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 55
Solving an Acoustic Analysis
Specifying a proper frequency range results in efficient and accurate eigenvalue calculations. Input a
lower-end frequency just below the anticipated frequency (FREQB on the MODOPT command), then
specify an upper-end frequency (FREQE). Specify NMODE to request the number of modes to extract.
To enable modal solution viewing, and to perform other postprocessing options, specify the number
of modes to expand (for example, calculate and write the element solution to the results file). Expanding
the modes is required if you intend to postprocess the element data. To specify the number of modes
to expand, issue the MXPAND command (valid only within the first load step).
The participation factor table lists participation factors, mode coefficients, and mass distribution percent-
ages for each mode extracted. See Participation Factor Table Output in the Structural Analysis Guide for
details. For FSI applications, the effective masses are calculated when all the following conditions apply:
• Both left and right eigenvectors are requested (ModType = BOTH on MODOPT).
• If groups of repeated frequencies are present, all the solutions in each group are extracted.
They reflect both the mass of the structure and the mass of the fluid.
ANTYPE,HARMIC,Status,LDSTEP,SUBSTEP,Action
For more information, see Full Harmonic Analysis in the Structural Analysis Guide.
HARFRQ,FREQB,FREQE,--,LogOpt
To perform a frequency sweep, specify the frequency range via the HARFRQ command. You can perform
a harmonic analysis over an nth-octave band or general-frequency band with a logarithm frequency
span (the HARFRQ command with LogOpt).
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
56 of ANSYS, Inc. and its subsidiaries and affiliates.
Acoustic Analysis Solution Settings
• f0 = central frequency of the octave band (f0 = 16, 31.5, 63, 125, 250, 500, 1000, 2000, 4000, 8000, 16000 Hz
for the specified 11 octave bands)
• n = 1 (octave band), 2 (1/2 octave band), 3 (1/3 octave band), 6 (1/6 octave band), 12 (1/12 octave band),
and 24 (1/24 octave band)
For more information, see Logarithm Frequency Spacing in a Harmonic Analysis in the Mechanical APDL
Theory Reference.
You cannot restart a harmonic analysis. If you want to apply a different set of harmonic loads, you must
perform a new analysis each time.
HROPT,Method,MAXMODE,MINMODE,MCout,Damp
For a relatively small problem (500,000 degrees of freedom [DOFs] or less), the default sparse solver is
recommended. For the number of DOFs per element, see Table 2.1: Acoustic Element Properties (p. 5).
For larger problems (1 million or more DOFs), consider using the sparse direct solver, and ensure that
the solution is running in-core for optimal performance. (For more information, see Direct (Sparse)
Solver Memory Usage in the Performance Guide.) If the model is too large to run in the sparse direct
solver in-core mode with the available hardware RAM, consider trying the QMR (for symmetric matrices)
or ICCG (for unsymmetric matrices) iterative solvers. (If the iterative solutions diverge, however, you
must use the sparse direct solver.)
Select the symmetric matrix equation for the coupled problem in the preprocessor (/PREP7) using either
the ET or KEYOPT command.
Example 10.2: Defining the Symmetric Matrix Equation for a Coupled Problem
et,1,220,2
et,2,220,2,1
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 57
Solving an Acoustic Analysis
For more information, see Coupled Acoustic Fluid-Structural System with Symmetric Matrix Equation
for Full Harmonic Analysis in the Mechanical APDL Theory Reference.
To control the sound pressure field output for an acoustic scattering analysis, issue the ASCRES,Opt
command. You can output either the total sound pressure (Opt = TOTAL) or the scattered pressure
(Opt = SCAT).
To calculate the far-field parameter, define the equivalent source surface that encloses the scatter
(SF,,MXWF).
For more information, see Pure Scattered Pressure Formulation in the Mechanical APDL Theory Reference.
• When the symmetric formulation is used, global system matrices are badly conditioned and the eigensolver
may not succeed in extracting all eigensolutions accurately. In this case, the unsymmetric (default) formulation
along with the unsymmetric eigensolver (MODOPT,UNSYM with ModType = BOTH) is recommended. The
mode-superposition method is well adapted for FSI analysis with structural loads and/or the following fluid
loads: F,,FLOW and SF,,FREE (sloshing).
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
58 of ANSYS, Inc. and its subsidiaries and affiliates.
Acoustic Analysis Solution Settings
• The QR damped eigensolver method does not apply to FSI analysis because unsymmetrical coupling is ignored
with calculating the undamped modes used to obtain the damped modes.
• The mode-superposition method is not supported if damping is present. In particular, if acoustic damped
boundary conditions are specified (SF with Lab = IMPD, ATTN, INF, or BLI) or if fluid dynamics viscosity
(MP,VISC), perforated material (TB with Lab = PERF or AFDM), PML or IPML (p. 29) absorbing condition, or
the absorbing boundary elements (FLUID129 or FLUID130) are defined.
Note
Unlike in a FULL harmonic analysis where the constant structural damping (DMPRAT) is
only applied to structural degrees of freedom, in a mode-superposition harmonic analysis
it is applied to the whole reduced matrix (both structural and acoustic degrees of freedom).
To be consistent, you should run a damped modal analysis with constant structural
damping beforehand to extract the modal damping ratios, which can then be used in the
mode-superposition harmonic analysis using the MDAMP command.
• The residual response (RESVEC with KeyResp = ON) is supported when requesting real solutions (Cpxmod
= REAL) and both left and right eigenvectors (ModType = BOTH).
• The residual vector ( RESVEC with KeyVect = ON) and the enforced motion (MODCONT with EnforcedKey
= ON) methods are not supported by the unsymmetric eigensolver. As a consequence of the second limitation,
non-zero pressure and velocity (D with Lab = PRES, SF with Lab = SHLD, AWAVE, and BF with Lab = VELO)
are ignored.
• Use a sufficient number of modes to obtain an accurate pressure solution. The upper frequency times two
for the modal base may be insufficient. In general, as the number of modes increases, the convergence of
the pressure solution is slower than that of the displacement solution, especially far from the resonance
frequencies. Using the residual response method may help the convergence.
To obtain an acceptable solution in an acoustic transient analysis, the time increment Δt is determined
by Δt =1/(2fmax). Estimate the maximum operating frequency to determine the mesh size in the model.
(See Specifying Acoustic Analysis Region Attributes and Meshing (p. 23).)
Consider using the sparse direct equation solver (EQSLV) with automatic time stepping disabled. For
linear analyses, matrix factorization need only be performed once (for purely acoustic) or twice (for
coupled vibro-acoustic). The remaining time steps do not require matrix factorization, resulting in very
efficient solutions.
The spatial distribution of the pressure field must also be taken into account for meshing. The mesh
should be fine enough to resolve the spatial variation of the pressure.
For example, if a sound dipole with a 1 m separation radiates sound in air at 20 Hz, setting the mesh
size as 1.7 m for low-order elements (10 elements/per wavelength) is unreasonable. If a 10-degree in-
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 59
Solving an Acoustic Analysis
crement is used to discretize the circumference around the dipole, the minimum mesh should be 0.087
m. Both the maximum operating frequency and the pressure spatial variation must be taken into account.
It is necessary to use a uniform time step if a ramped gravity acceleration is applied in a transient ana-
lysis that includes the acoustic free surface (sloshing effect).
*dim,load_time,table,4,,,time
load_time(1,0)=0,1/frq_step,2/frq_step,time_end
load_time(1,1)=0,1,0,0
…
et,1,220,,1 ! second-order fluid220
et,2,130,2 ! second-order fluid130
…
/solu
antype,trans
trnopt,full
autots,off
time,time_end
deltim,time_step
outres,nsol,all
! time varying load
f,node(0,0,0),flow,%load_time%
solve
finish
The conditions listed under Mode-Superposition Harmonic Analysis (p. 58) apply for spectrum analysis
except that fluid loads are not supported. In PSD analysis, base excitation, force excitation, and solid
element pressure excitation are supported, but pressure spectrum (D,,PRES) is not.
The solution from the modal analysis must be real to perform a subsequent spectrum analysis.
DDAM analysis, as well as the missing mass calculation (MMASS), is not supported.
For an example of a single-point response spectrum (SPRS) analysis, see Example: Spectrum Analysis of
a Cylindrical Tank Filled with Water (p. 102).
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
60 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 11: Using Advanced Solution Techniques in an Acoustic
Analysis
The following advanced solution techniques are available for use in an acoustic analysis:
11.1. One-Way Coupling from Single Physics to Acoustics
11.2. Linear Perturbation in an Acoustic Application
11.3. Solving the Convective Wave Equation for the Mean Flow Effect
where:
ρ0 = density of fluid
c0 = sound speed in the fluid
ρs = density of solid
T = effective thickness of the solid
ω = angular frequency
If αc > 1, solve as a strong coupled acoustic-structural interaction problem. If αc < 1, a one-way coupling
solution is more computationally efficient.
Perform a one-way coupling analysis using either of the following two methods:
2. Flag a one-way structure-to-acoustics coupling interface in the structural model via the
SF,Nlist,FSIN,VALUE command (not SF,Nlist,FSI).
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 61
Using Advanced Solution Techniques in an Acoustic Analysis
3. Prior to the solution, issue the ASIFILE,WRITE command so that structural results on the
one-way structure-to-acoustics coupling interface are written to a file with extension .asi
during the structural solution.
6. Flag a one-way structure-to-acoustics coupling interface in the acoustic model via the
SF,Nlist,FSIN,VALUE command (not SF,Nlist,FSI).
7. Prior to the solution, issue the ASIFILE,READ command (with Oper = NOMAP [conforming
mesh] or Oper = MAP nonconforming mesh]) so that the structural results on the one-way
structure-to-acoustics coupling interface are read into the model during the acoustic solu-
tion.
8. Solve the acoustic model without the structural elements over the specified frequency
range.
/solu
antype,harm ! harmonic solution
hropt,auto ! use program-selected solver
kbc,1
harfrq,58,68 ! frequency range
nsub,3 ! steps over frequency range
solve ! solve structural problem
finish
/prep7
alls ! select everything
esel,u,type,,1 ! unselect structural elements
nsle,s ! select nodes attached to acoustic elements
nsel,s,loc,x,0 ! nodes on interface in acoustic element
sf,all,fsin,1 ! flag one-way coupling interface
asifile,read,,,map ! read structural results into model during solution
finish
/solu
antype,harm ! harmonic solution
hropt,auto ! choose solver by program
kbc,1
harfrq,58,68 ! frequency range
nsub,3 ! steps over frequency range (invalid)
solve ! solve acoustic problem
finish
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
62 of ANSYS, Inc. and its subsidiaries and affiliates.
One-Way Coupling from Single Physics to Acoustics
2. Map the structural results on the one-way coupling interface of the structural model to the
acoustic model via Workbench External Data. For more information, see Introduction to
the External Connection Add-In in the Workbench External Connection Add-In.
3. Solve the acoustic model without the structural elements at the specified frequency.
A conforming mesh offers a more efficient and accurate solution, as there is no mapping process and
the structural nodal results are directly passed to the nodes of the acoustic model. However, the com-
plicated structural model can be solved with a nonconforming mesh for one-way structure-to-acoustics
coupling.
The acoustic solver chooses the frequencies that are defined in the upstream structural analysis between
the beginning and ending frequencies (HARFRQ) defined in the acoustic solution. The number of substeps
is determined by the number of frequencies in the structural solution over the frequency range. The
number of substeps defined via the NSUBST command is overwritten in the acoustic solution.
Specify a one-way ANSYS Fluent to Mechanical APDL coupling via the FLUREAD command. (The com-
mand can be used only for the model with the acoustic elements.)
2. Postprocess the transient flow solution using FFT on selected surfaces and store the complex pressure
in a file.
3. Set up the Mechanical APDL acoustic analysis model with the acoustic domain enclosed, as within a
cabin.
4. Define the surface element SURF154 on the top of structural solid or shell element to apply complex
pressure to the structure model.
5. Define the one-way ANSYS Fluent to Mechanical APDL coupling interface via the SF,Nlist,FSIN,VALUE
command (not SF,Nlist,FSI) on the SURF154 surface element.
6. Flag the acoustic-structural interaction interface (FSI) in the acoustic model via the SF,Nlist,FSI
command (not SF,Nlist,FSIN,VALUE ) for vibro-acoustics.
7. Prior to the acoustic solution, issue the FLUREAD command with mapping options to launch one-way
ANSYS Fluent to Mechanical APDL coupling during the acoustic solution.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 63
Using Advanced Solution Techniques in an Acoustic Analysis
The solver chooses the FFT frequencies between the beginning and ending frequencies. The
number of substeps is determined by the number of FFT frequencies over the frequency range.
The number of substeps defined via the NSUBST command is overwritten.
10. Issue the PRAS or PLAS command in POST1 to obtain the sound pressure levels (SPL) of the specified
octave band.
One-way ANSYS Fluent to Mechanical APDL coupling excitation can be applied to multiple frequencies.
The one-side FFT peak complex pressure values must be used. Because the flow mesh is much finer
than the structural mesh, specify a structural mesh density on the one-way coupling interface that allows
the complex pressure variation of flow on the surface after mapping to be retrieved.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
64 of ANSYS, Inc. and its subsidiaries and affiliates.
Linear Perturbation in an Acoustic Application
Following is the general process for solving an acoustic-structural interaction with nonlinear static
structural prestress:
The nonlinear static structural analysis can lead to deformation in the structure. The mesh in the
acoustic fluid is morphed based on the structural displacement solution. Activate mesh morphing during
the nonlinear static structural analysis (MORPH). Setting StrOpt = YES on the MORPH command allows
morphing in the model with structural elements.
Because significant morphing occurs near the structural deformation only, it is not necessary to morph
all acoustic elements for the sake of efficiency. Deactivate the morphing process in the specified
acoustic elements via KEYOPT(5) = 1.
For a large structural deformation, the morphing procedure may fail during the nonlinear static solution
with ramped loads. Activating the bisection algorithm (AUTOTS,ON) may improve the quality of the
morphed mesh. If the structural deformation can be ignored in the nonlinear static solution and the
MORPH command is not activated, setting PRELP = YES on the ANTYPE command keeps the acoustic
mesh unchanged for the sake of efficiency.
Contact elements cannot be used on the structure-acoustics FSI interfaces for the acoustic linear per-
turbation process. Except for the morphed mesh, the acoustic elements have no other association with
the nonlinear static analysis.
• ANTYPE,STATIC,RESTART,,,PERTURB
• PERTURB
• SOLVE,ELFORM
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 65
Using Advanced Solution Techniques in an Acoustic Analysis
…
nsel,s,loc,x,0 ! select nodes on structural elements
f,all,fx,100 ! apply force
alls
fini
/solu
nlgeom,on ! large deformation on
autots,off ! auto step off
nsubst,1 ! one sub-step
antype,static ! static solution
morph,on,,,,,,,,,on ! morphing with structural elements
solve
finish
/solu
antype,static,restart,,,perturb ! restart for linear perturbation
perturb,modal,,,allkeep ! modal solution for linear perturbation
solve,elform ! form new element matrices
For more information, see Linear Perturbation Analysis in the Structural Analysis Guide.
11.3. Solving the Convective Wave Equation for the Mean Flow Effect
When the mean flow effect is taken into account in an acoustics analysis, the convective wave equation
becomes the governing equation instead of the Helmholtz wave equation. The velocity potential Φ is
used for the degree-of-freedom rather than the pressure, as in the case of mean flow at rest. The con-
vective wave equation only supports harmonic analysis.
The mean flow velocity can be obtained from the velocity potential by solving Laplace’s equation with
a defined mean flow velocity on the exterior surface in a static analysis. The program assigns the reference
velocity potential at a node for the solution with the pure Neumann boundary condition. The result is
stored in the Jobname.RMF file for preprocessing and postprocessing.
To view nodal velocity potential and element mean flow velocity, issue the following commands (the
label PRES represents the velocity potential):
PRNSOL,PRES or PLNSOL,PRES
PRESOL,PG or PLESOL,PG
To apply the solved mean flow velocity to the acoustic model for a downstream harmonic analysis, issue
the following command for load transfer before solving:
LDREAD,VMEN,1,1,,,Jobname,RMF
The following sophisticated material models may be included in the model with mean flow:
The mean flow velocity in the equivalent fluid model of perforated media is assumed to be zero.
The following acoustic boundary conditions can be used with the mean flow effect:
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
66 of ANSYS, Inc. and its subsidiaries and affiliates.
Solving the Convective Wave Equation for the Mean Flow Effect
• Rigid wall
The following acoustic excitation sources can be used with the mean flow effect:
• Pressure
• Mass resources
The trim element with transfer admittance matrix may be used in a model with the mean flow effect.
The mean flow inside the trim element is set to be at rest.
Acoustic fluid-structure interaction (FSI) can be modeled taking the mean flow effect into account.
The far-field calculation in the postprocessor does not support the mean flow effect.
/prep7
ldread,vmen,1,1,file,rmf ! apply mean flow velocity as body loads
…
sf,all,impd,z0,z0 ! define impedance on surface
…
sf,all,shld,vn ! define normal velocity on surface
alls
finish
/solu
antype,harm ! harmonic solution
harfrq,100
nsub,1
solve
finish
If the acoustic pressure may be non-uniform on the cross section of the inlet and outlet, it is more reliable
to use PML or IPML (p. 29) truncation rather than the impedance or radiation boundary condition for
the duct with mean flow.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 67
Using Advanced Solution Techniques in an Acoustic Analysis
For more information, see Finite Element Formulation of the Convective Wave Equation in the Mechan-
ical APDL Theory Reference.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
68 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 12: Postprocessing Acoustic Analysis Results
The following topics are available concerning postprocessing acoustic analysis results:
12.1. Helpful Postprocessing Commands
12.2. Postprocessing a Harmonic Acoustic Analysis
12.3. Postprocessing a Modal Acoustic Analysis
12.4. Postprocessing a Transient Acoustic Analysis
Task Command
Select the real solution. SET,1,1,,0
Select the imaginary solution. SET,1,1,,1
Select the amplitude. SET,1,1,,AMPL
Print pressure, SPL, or dBA at corner nodes. [1][2] PRNSOL,PRES (or SPL or SPLA)
Print velocity at corner nodes. [1][2] PRVECT,PG
Create element table item for the gradient of centroid pressure ETABLE,Lab,PG,X
field [3], X component. Issue similar commands for Y and Z
components.
Print the specified element table items. PRETAB
2. RMS value: measurable values are the sum of real and imaginary parts.
For more information about notation, see the Mechanical APDL Theory Reference.
Most output items can be viewed (plotted) graphically. To do so, substitute the appropriate plot command
(PL xxxxx) for the corresponding print command (PR xxxxxx), as shown in this table:
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 69
Postprocessing Acoustic Analysis Results
PRETAB PLETAB
Element table items can also be plotted. For more information, see Creating an Element Table in the
Basic Analysis Guide.
The ANSYS Parametric Design Language (APDL) also contains commands that may be useful in postpro-
cessing and results processing. For more information about the APDL, see Understanding User Program-
mable Features (UPFs).
For additional information, see Acoustic Output Quantities in the Mechanical APDL Theory Reference.
Derived data:
• Nodal velocity
• Nodal sound pressure level (SPL) and A-weighted sound pressure level (dBA)
Many harmonic acoustic analysis results vary harmonically at the operating frequency (or frequencies)
for which the measurable quantities can be calculated as the real solution times cosine(ωt) minus the
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
70 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocessing a Harmonic Acoustic Analysis
imaginary solution times sine(ωt), where ω is the angular frequency. (See Harmonic Analysis Using
Complex Formalism in the Mechanical APDL Theory Reference.) In harmonic analysis, the time-average
root mean square quantities are calculated over one period of sinusoidal function.
For more information, see Elements for Acoustic Analysis in the Element Reference.
Review analysis results via the POST1 general postprocessor (/POST1). Typically, the results are out-of-
phase with the input loads. The solution is calculated and stored in terms of real and imaginary com-
ponents.
Use POST1 to review results over the entire model at specific frequencies. For viewing results over a
range of frequencies, use the POST26 time-history postprocessor (/POST26).
The SPL and the dBA of the octave band can be calculated (PRAS or PLAS) on the selected nodes. The
calculated values can be monitored and stored by issuing the following command:
*GET,Par,ACUS,0,Item1
To obtain the SPL and dBA of the octave band via the *GET command, issue the PRAS or PLAS command
at specified positions prior to issuing the *GET command. For multiple load and sub-steps cases, the
results are obtained at the last position and band.
For more information, see Acoustic Output Quantities in the Mechanical APDL Theory Reference.
For a complete description of all postprocessing functions, see An Overview of Postprocessing in the
Basic Analysis Guide.
The following topics discuss some typical POST1 operations for calculating the near- and far-fields and
parameters for acoustic devices.
The commands PRNEAR, PLNEAR, PRFAR, and PLFAR use the surface equivalence principle to determine
the sound pressure field. The surface equivalence principle states that equivalent sources can exactly
represent the pressure field exterior to the surface. Use the PRFAR or PLFAR command to print or plot
the far-field parameters based on the defined load steps, substeps, or frequency range. For more inform-
ation, see Acoustic Output Quantities in the Mechanical APDL Theory Reference.
1. Flag an equivalent source surface (Lab = MXWF on the SF command) in the preprocessor before solution.
For more information, see Equivalent Surface Source (p. 51).
2. If a symmetry plane exists in the modeled region, indicate its presence (HFSYM). For more information,
see Accounting for Model Symmetry (p. 72).
3. If the radiation space when calculating radiation parameters is not the entire spherical domain, define the
spatial angles (HFANG).
The following additional topics are available for calculating near fields, far fields, and far-field parameters:
12.2.2.1. Accounting for Model Symmetry
12.2.2.2. Radiation Solid Angle
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 71
Postprocessing Acoustic Analysis Results
The HFSYM command accounts for the sound-soft or sound-hard symmetry planes that coincide with
the X-Y, Y-Z or Z-X planes of the global or local Cartesian coordinate system. It applies the image principle
on the symmetric part of the computational domain to represent the radiation effect of the partial
equivalent source beyond the modeled domain so that the radiation from the entire structure is modeled.
If sound-soft or sound-hard symmetry planes exist, issue the HFSYM command before issuing a post-
processing command (PRNEAR, PLNEAR, PRFAR, or PLFAR). Although a sound-hard symmetry plane
is a natural boundary condition in a finite element analysis, it must be defined via the HFSYM command.
The HFANG command defines the radiation space of a sound radiator in terms of the type of radiator.
For example, the solid angle of a sound dipole is determined by φ [0,360°] and θ [0,180°], and the solid
angle of a piston above an infinite baffle is associated with φ [0,360°] and θ [0,90°].
If the sound pressure wave is not radiated into the entire space, issue the HFANG command before is-
suing a postprocessing command (PRNEAR, PLNEAR, PRFAR, or PLFAR).
To print the near sound pressure field, issue the PRNEAR command.
2. Issue either the PRNEAR or PLNEAR command to map the sound pressure onto the path.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
72 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocessing a Harmonic Acoustic Analysis
The far sound pressure field and far-field parameters can be printed (PRFAR) or plotted (PLFAR) beyond
the FEA computational domain.
To print or plot the 2-D far-field parameters in a 3-D computational model, extrude the 2-D plane
model for a distance Δz in the Z-direction to generate a 3-D numerical model. For an axisymmetric
model that is equivalent to the y-rotated extrusion 3-D model, the far field parameters are calculated
on the plane defined in global spherical coordinates (PLFAR or PRFAR with Lab = PROT). The THETA
angles default to 90 degrees for the 2-D extrusion model, so you would typically input only the PHI1
and PHI2 angles in order to report values on the X-Y plane. The HFSYM,,,SHB,, command may be used
for symmetry on the y = 0 plane.
A maximum of ten far-field curves can be plotted on a chart (PLFAR) for multiple angles or frequencies.
The waterfall diagram for far-field parameters is available with both frequency and angle as variables.
The waterfall diagram for radiated sound power level can be generated with variables of frequency and
revolutions per minute (RPM), if RPM is defined (see the MRPM command).
For more information, see Acoustic Output Quantities in the Mechanical APDL Theory Reference.
*GET,par,0,ACUS,Item1
To obtain a far field or a far-field parameter with the parameter par via the *GET command, issue the
PRFAR or PLFAR command at a specified position prior to issuing the *GET command.
The far-field SPL or a-weighted SPL over octave bands can be obtained by defining the LogOpt argument
on the PRFAR or PLFAR command.
The vibrating surface on the structural model must be identified by the equivalent source surface flag
(SF,,MXWF) before the far-field calculation. Use the PRFAR or PLFAR command with Lab = PLAT to
perform the far-field calculation for a vibrating panel. The HFSYM command should be issued if planar
symmetry is used in the model. Use the PRAS or PLAS command to calculate and print or plot the
transmission loss and radiated power of a panel with an incident diffuse sound field.
The HFANG command is invalid for the vibrating panel radiation, since the hemispherical radiation
space is assumed.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 73
Postprocessing Acoustic Analysis Results
For more information, see Acoustic Output Quantities in the Mechanical APDL Theory Reference.
• Input power
• Output power
• Return loss
• Attenuation coefficient
• Transmission loss
Perform the calculation in the POST1 general postprocessor (/POST1) by first reading in the solution
for a given frequency, and then performing postprocessing tasks based on the corresponding definition
of the parameter. Use the PRAS or PLAS command to print or plot the propagation parameters based
on the defined load steps, substeps, or frequency range.
To calculate the acoustic propagation parameters for two ports of a network, issue the PRAS or PLAS
command after defining the port numbers (SF) in the preprocessor.
If VAL2 (output port) is defined via PRAS or PLAS, VAL1 is the excitation port and should be defined.
The impedance boundaries are applied to the excitation port surfaces to absorb the outgoing pressure
waves without reflection.
• Acoustic impedance
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
74 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocessing a Harmonic Acoustic Analysis
• Mechanical impedance
• Pressure
• Force
The calculation occurs in the POST1 general postprocessor (/POST1) based on the corresponding
definition of the quantities. Use the PRAS or PLAS command to print or plot the surface quantities
based on the defined load steps, substeps, or frequency range.
Select the surface nodes for which the acoustic quantities will be calculated. Perform the calculation
by issuing the PRAS or PLAS command. The subset number (SUBSTEP argument) specified on the
command corresponds to the solving frequency. The acoustic quantities are the average values on the
surface.
The acoustic surface quantities can be monitored and stored by issuing this command:
*GET,Par,ACUS,0,Item1
To obtain an acoustic surface quantity via the *GET command, issue the PRAS or PLAS command at a
specified position prior to issuing the *GET command.
The equivalent radiated power (ERP) from the selected structural surface is calculated for the structure-
borne sound via the PRAS or PLAS command. The waterfall diagram of the equivalent radiated power
can be generated if the RPM is defined via the MRPM command.
The normal velocities on the structural surface nodes (VNS) are printed or plotted via the PRNSOL or
PLNSOL command.
For more information, see Acoustic Output Quantities in the Mechanical APDL Theory Reference.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 75
Postprocessing Acoustic Analysis Results
In the POST1 general postprocessor (/POST1), select the elements for which the acoustic quantities will
be calculated. Perform the calculation by issuing the PRAS or PLAS command; specify the frequency
via the corresponding substep number (SUBSTEP argument). These two commands print (PRAS) or
plot (PLAS) the volumetric quantities based on the defined load steps, substeps, or frequency range.
Primary data: Nodal DOFs (UX, UY, UZ, PRES) and resonant frequencies
Derived data:
In modal analysis, the time-average root mean square quantities are calculated over one period of the
sinusoidal function. For more information, see Elements for Acoustic Analysis in the Element Reference.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
76 of ANSYS, Inc. and its subsidiaries and affiliates.
Postprocessing a Transient Acoustic Analysis
Use the POST1 general postprocessor (/POST1) to view results over the entire model at specific resonant
frequencies. To view results over a range of frequencies, use the POST26 time history postprocessor
(/POST26).
For a complete description of all postprocessing functions, see An Overview of Postprocessing the Basic
Analysis Guide.
Derived data:
In transient analysis, the time-average root mean square quantities are calculated over the time increment
. For more information, see Elements for Acoustic Analysis in the Element Reference.
Use the POST1 general postprocessor (/POST1) to view results over the entire model at specific time
steps. To view results over a time period, use the POST26 time history postprocessor (/POST26).
For a complete description of all postprocessing functions, see An Overview of Postprocessing the Basic
Analysis Guide.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 77
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
78 of ANSYS, Inc. and its subsidiaries and affiliates.
Chapter 13: Acoustic Analysis Examples
The following example analyses illustrate acoustic elements and commands used in a variety of applic-
ations:
13.1. Example: Acoustic-Structural Coupled Modal Resonance of an Annular Ring Submerged in Water with a
Harmonic Analysis
13.2. Example: Sloshing Modes of a Cylindrical Cavity
13.3. Example: Resonant Frequencies in a Pipe with Ideal Gas
13.4. Example: Acoustic Harmonic Response in a Room
13.5. Example: Transmission Loss of a Muffler
13.6. Example: Johnson-Champoux-Allard Model of a Perforated Material
13.7. Example: Transfer Admittance Matrix in Fluid
13.8. Example: Boundary Layer Impedance Model of a Rigid Walled Waveguide with Viscous-Thermal Fluid
13.9. Example: Radiation from Two Waveguides
13.10. Example: Radiation from a Dipole
13.11. Example: Monopole Incident Wave Scattering of a Rigid Sphere
13.12. Example: Planar Incident Wave FSI Scattering of an Infinite Cylindrical Shell
13.13. Example: One-Way Coupling from Structure to Acoustics
13.14. Example: Modal Analysis of an Acoustic-Structural Coupled Structure with Nonlinear Static Prestress Using
Linear Perturbation
13.15. Example: Spectrum Analysis of a Cylindrical Tank Filled with Water
13.16. Example: Structural Panel Subject to Excitation From a Diffuse Sound Field
13.17. Example: Transmission Loss of a Structural Panel under an Obliquely Incident Plane Wave
13.18. Example: Sound Far Field from a Piston Using Rayleigh Integral
13.19. Example: Acoustic Propagation in a Lined Guide with an Impedance Boundary and Mean Flow
Also see Acoustic Analysis of a Small Speaker System in the Technology Demonstration Guide.
The distance from the center of the ring to the infinite elements is at least equal to (D/2) + 0.2λ, where
D is the outer diameter of the ring, and λ = c/f is the dominant wavelength of the pressure waves.
Using 0.26035 for the outer radius of the ring, 1460 for the speed of sound (c), and 36 for the estimated
dominant frequency (f ), gives (D/2) + 0.2λ = 0.26035 + (0.2)(1460)/36 = 8.37146. This distance is much
greater than that required when using the acoustic infinite element, however, and so a distance of 2x
the outer radius of the ring is used ( 2 x .26035 = .5207).
/BATCH,LIST
/VERIFY,EV129-1S
/PREP7
/TITLE,AMA,EV129-1S,FLUID129,HARMONIC ANALYSIS
ET,1,PLANE182,2 ! structural element
ET,2,FLUID29 ! acoustic fluid element with ux & uy
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 79
Acoustic Analysis Examples
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
80 of ANSYS, Inc. and its subsidiaries and affiliates.
Example: Sloshing Modes of a Cylindrical Cavity
nsubst,100
kbc,1
SOLVE
FINISH
! postprocess
/post26
plcplx,0
nsol,2,1,u,x,d1ux
store
conjug,3,2
prod,4,2,3
sqrt,5,4
*get,uxmx,vari,5,extrem,tmax
/COM -------------------------------------------------------------
/COM Expected Result:
/COM
/COM The following "uxmx" should equal 34.52 Hz.
/COM -------------------------------------------------------------
*status,uxmx
finish
The inner and outer radius of the cavity are 0.1 m and 0.2 m, respectively.
The height of the cavity is 0.2 m, including a cylindrical steel solid with the height 0.1 m at the bottom.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 81
Acoustic Analysis Examples
lesize,all,,,ntheta
lsel,s,loc,x,r2
lsel,r,loc,z,h
lesize,all,,,ntheta
lsel,s,loc,x,r1
lsel,r,loc,z,0.0
lesize,all,,,ntheta
lsel,s,loc,x,r2
lsel,r,loc,z,0.0
lesize,all,,,ntheta
csys,11
alls
mshkey,1
! define elements
et,1,220,,0 ! coupled acoustic element
mp,sonc,1,1500. ! sound speed
mp,dens,1,1000. ! mass density
et,2,186, ! structural element
mp,ex,2,1.44e11
mp,dens,2,7700
mp,nuxy,2,0.35
! create mesh
type,1
mat,1
vsweep,all
alls
type,2
mat,2
vsymm,z,all
alls
nummgr,all
vsel,s,loc,z,0,-h
eslv,s,
emodif,all,,2
alls
! flag free surface
nsel,s,loc,z,h
sf,all,free
! define constrains
nsel,s,loc,z,-h
d,all,uz,0
d,all,ux,0
d,all,uy,0
! flag fsi interface
nsel,s,loc,z,0
sf,all,fsi
alls
csys,0
acel,9.81,0,0 ! gravity acceleration
fini
! perform a solution
/solu
antype,modal
modopt,unsym,20,0.05
mxpand,20
solve
fini
! post-processing
/post1
set,list
/com,analytical eigenfrequencies are listed below
/com,f1 = 0.996
/com,f2 = 1.704
/com,f3 = 2.176
/com,f4 = 2.521
/com,f5 = 2.814
/com,f6 = 2.852
/com,f7 = 2.960
/com,f8 = 3.120
/com,f9 = 3.313
/com,
fini
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
82 of ANSYS, Inc. and its subsidiaries and affiliates.
Example: Resonant Frequencies in a Pipe with Ideal Gas
The pipe dimensions are 0.02 x 0.05 x 1m3. The material properties are defined at the reference temper-
ature TREF = 288.15 K.
/post1
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 83
Acoustic Analysis Examples
*dim,result,array,6
*do,i,1,6
set,1,i
*get,freq,active,,set,freq ! get resonant frequency
result(i) = freq
*enddo
/com,
/com, ***** Resonant Frequencies (Hz) *****
*vwrite,result(1)
(18X,F15.4)
finish
A sound-absorption material is located at the bottom surface of the enclosure and a vibrating structure
with a cylindrical surface is located at the top right hand corner of the enclosure.
The problem determines the acoustic pressure wave pattern when the structure vibrates at an excitation
frequency of 80 Hz.
/batch,list
/com, Harmonic Analysis - Room Acoustics
/nopr
/PREP7
/TITLE,Room Acoustic Analysis
ANTYPE,HARM
ET,1,30 ! Acoustic elements in contact with walls and vibrating surface
ET,2,30,,1 ! Acoustic elements in interior (not in contact with walls)
! Material properties
RHO=1.2041 ! density of air (kg/m**3)
C0=343.24 ! speed of sound in air (m/sec)
Z0=RHO*C0 ! Sound impedance
MP,DENS,1,RHO
MP,SONC,1,C0
! Set parameters for mesh generation
XDIV=29 ! Number of divisions along x-axis
YDIV=19 ! Number of divisions along y-axis
ZDIV=1 ! Number of divisions along z-axis
CDIV=2 ! Number of divisions along radius
! Dimensions of the room
LEN=8.2296
HGT=6.0960
RAD=0.27432
ZL=-0.3048
! Mesh generation
K,1
K,2,LEN
K,3,LEN,HGT
K,4,,HGT
K,5,,,ZL
K,6,LEN,,ZL
K,7,LEN,HGT,ZL
K,8,,HGT,ZL
L,1,5,1
L,2,6,1
L,3,7,1
L,4,8,1
CIRC,3,RAD,7,2,90,2
ADRAG,5,6,,,,, 3
PIO4=ATAN(1)
LENC=COS(PIO4)
LENC=LENC*RAD
HGTC=HGT-LENC
LENC=LEN-LENC
K,15,,HGTC
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
84 of ANSYS, Inc. and its subsidiaries and affiliates.
Example: Acoustic Harmonic Response in a Room
K,16,,HGTC,ZL
K,17,LENC
K,18,LENC,,ZL
L,1 ,17,XDIV
L,10,15,XDIV
L,11,4 ,XDIV
L,17,10,YDIV
L,15, 1,YDIV
L,2 ,9 ,YDIV
L,5 ,18,XDIV
L,13,16,XDIV
L,14,8 ,XDIV
L,18,13,YDIV
L,16,5 ,YDIV
L,6 ,12,YDIV
ESIZE,,CDIV
V,1 ,17,10,15, 5,18,13,16
V,15,10,11,4 ,16,13,14,8
V,17,2 ,9 ,10,18,6 ,12,13
VMESH,ALL
ALLS
! Coupled elements
NSEL,S,LOC,X,0.0
NSEL,A,LOC,Y,0.0
NSEL,A,LOC,X,LEN
NSEL,A,LOC,Y,HGT
LOCAL,11,1,LEN,HGT
NSEL,A,LOC,X,RAD
ESLN
ESEL,INVE
TYPE,2
EMODIF,ALL ! Interior elements are specified as Type=2 & material=3
ALLS
! Fluid-Structure Interface (FSI)
NSEL,S,LOC,X,RAD ! Select interface (FSI) surface nodes
ESLN ! Select elements attached to interface surface
SF,ALL,FSI ! Specify vibrating surface as Fluid-structure interface
! Boundary conditions
CSYS,0
NSEL,S,LOC,X,0.0
NSEL,A,LOC,Y,0.0
NSEL,A,LOC,X,LEN
NSEL,A,LOC,Y,HGT
D,ALL,UX,,,,,UY,UZ ! Constrain all displacements to zero at the walls
CSYS,11
NSEL,S,LOC,X,RAD ! Select interface (FSI) surface nodes
NROTAT,ALL
D,ALL,UX,.003048 ! Radial vibration amplitude of Vibrating surface
D,ALL,UY,,,,,UZ
ALLS
! Impedance surface (IMPD)
CSYS,0
NSEL,S,LOC,X,0.0
NSEL,A,LOC,X,LEN
NSEL,A,LOC,Y,0.0
NSEL,A,LOC,Y,HGT
SF,ALL,IMPD,Z0/0.04 ! Wall impedance
HX=LENC/XDIV
NSEL,S,LOC,Y,0.0
NSEL,R,LOC,X,13*HX,17*HX
SF,ALL,IMPD,Z0/0.7 ! Window impedance
ALLS
FINISH
/SOLU
! Excitation Frequency for Harmonic Analysis
HARF,80,80 ! Frequency of excitation = 80 Hz
SOLVE
FINISH
! Plot the Standing Wave Pattern (f = 80 Hz)
/POST1
/SHOW,ENCL1,GRPH,1
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 85
Acoustic Analysis Examples
The radius and length of the chamber are 0.0766445 m and 0.2032 m, respectively.
The radius and length of the inlet and outlet pipe are 0.0174625 m and 0.104775 m, respectively.
/batch,list
/title, Transmission Loss of Muffle
/show,png
/nopr
/PREP7
rho=1.2041 ! air mass density
c0=343.24 ! air sound speed
z0=rho*c0
freqE=3000 ! highest working frequency
wave=c0/freqE ! wavelength at the highest frequency
p=1
vn=-p/(rho*c0) ! normal velocity excitation
! define element and materials
et,1,221,,1 ! tet uncoupled element
mp,dens,1,rho ! material
mp,sonc,1,c0
! create the model
rapipe=0.0174625
lpipe=0.104775
rchamb=0.0766445
lchamb=0.2032
cylind,0,rapipe,0,lpipe,0,180
cylind,0,rchamb,lpipe,lpipe+lchamb,0,180
cylind,0,rapipe,lpipe+lchamb,2*lpipe+lchamb,0,180
vsel,all
vglue,all
! mesh the geometry
h=wave/10 ! 10 elements/per wavelength
esize,h
type,1
mat,1
vmesh,all
nummrg,all
! define excitation and boundary conditions on inlet and outlet port
nsel,s,loc,z,0 ! nodes on inlet
sf,all,port,1 ! inlet port
sf,all,shld,vn ! normal velocity
sf,all,impd,z0 ! impedance boundary on inlet
nsel,s,loc,z,2*lpipe+lchamb ! nodes on outlet
sf,all,port,2 ! outlet port
sf,all,inf ! radiation boundary on outlet
alls
fini
! perform solutions
/solu
antype,harmic
hropt,auto
kbc,1
harf,0,freqE
nsub,60 ! 50 Hz interval with 60 steps
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
86 of ANSYS, Inc. and its subsidiaries and affiliates.
Example: Johnson-Champoux-Allard Model of a Perforated Material
solve
finish
! post-processing
/post1
pras,pall,1,all,,,,,1,2 ! print sound power data
plas,tl,1,all,,,,,1,2 ! plot transmission loss
fini
The sound-hard boundary is applied to the walls of the pipe except for the inlet.
/batch,list
/title, JCA model with frequency-dependent parameters
/nopr
/prep7
FREQ1 = 2000 ! beginnng frequency
FREQ2 = 4000 ! ending frequency
SPEED = 343 ! sound speed
DENSITY= 1.2 ! mass density
NUM_EPW = 8 ! no. of element per wavelength
NUM_STEPS = 3 ! number of frequencies
LOADING = 1e3/SPEED*2
! define element
et,1,221
keyopt,1,2,1
et,2,221
keyopt,2,2,1
! define real constant
r,1
r,2
! define material
mp,sonc,1,SPEED
mp,dens,1,DENSITY
mpcopy,,1,2 ! copy material model data
! define frequency-dependent JCA model
tb,perf,2,,,JCA
tbfield,freq,FREQ1
tbdata,1,RESIS1,PORO1,TORTU1,VISCL,THERL
tbfield,freq,FREQ2
tbdata,1,RESIS2,PORO2,TORTU2,VISCL,THERL
! create geometry
block,,DIM_WIDTH,,DIM_LENGTH,,DIM_WIDTH
block,,DIM_WIDTH,,-DIM_PERF,,DIM_WIDTH
nummrg,kp,1e-8,1e-8
! create mesh
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 87
Acoustic Analysis Examples
vsel,s,loc,y,-DIM_PERF,0
vatt,2,2,2
vsel,all
esize,DIM_ESIZE
vmesh,all
! define loads
asel,s,loc,y,DIM_LENGTH
nsla,s,1
bf,all,js,LOADING ! mass source
sf,all,inf ! Robin radiation boundary flag
allsel,all
finish
! perform a solution
/solu
antype,harmic
harfrq,1000,4000
hropt,auto
nsubst,3
solve
finish
! post-processing
/post1
*dim,pre,array,NUM_STEPS
*dim,frq,array,NUM_STEPS
*do,i,1,NUM_STEPS
set,1,i
*get,frq(i),active,,set,freq ! get resonant frequency
*get,pre(i),NODE,79,pres ! get pressure at node 79
*enddo
/com,
/com, ***** Ansys Results *****
/com,
/com, Frequency (Hz) Pressure (Pa)
*vwrite,frq(1),pre(1)
(7X,F15.4,10x,F15.4)
finish
In terms of the network theory, the reflection coefficients are 0.15 and 0.20 at port 1 and port 2, respect-
ively.
/batch,list
/title, Transfer Admittance Matrix in the Fluid
/nopr
/prep7
pi=acos(-1)
k=8*pi ! wave number
rho0 = 1.21 ! mass density
c0 = 345 ! sound speed
freq = k*344/(2*pi) ! working frequency
wavelen = 2*pi/k ! wavelength
! structure dimensions
h = wavelen/12 ! mesh size
d = 2*h
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
88 of ANSYS, Inc. and its subsidiaries and affiliates.
Example: Transfer Admittance Matrix in Fluid
l = 0.75*wavelen
z1 = l/2
z2 = z1+0.05*h
z3 = z2+l/2
! perform solution
/solu
antype,harmic
hropt,auto
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 89
Acoustic Analysis Examples
harfrq,freq
solve
fini
! post-processing
/post1
nsel,s,loc,z,0
nsel,r,loc,x,0
nsel,r,loc,y,-d/2
nod=0
node=ndnext(nod)
The waveguide is terminated by a rigid wall at one end (z = Lz) and driven by a plane piston at another
end (z = 0).
The square cross section of waveguide is Lx = Ly = 15 mm, and the length Lz is 170 mm.
where:
For more information about viscous-thermal parameters, see Viscous-Thermal Materials in the Mechan-
ical APDL Theory Reference
/batch,list
/title,BLI model for waveguide with visco-thermal fluid
/nopr
/prep7
freq1 = 880 ! beginning frequency
freq2 = 1100 ! ending frequency
rho = 1.29 ! mass density
c0 = 340 ! sound speed
kx = 0.0241 ! thermal conductivity
visc = 1.71e-5 ! dynamic viscosity
cv = 654.1376 ! Cv heat coefficient
cp = 915.7926 ! Cp heat coefficient
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
90 of ANSYS, Inc. and its subsidiaries and affiliates.
Example: Radiation from Two Waveguides
A sound-absorption material is located at the surfaces of the enclosure, modeled using PML.
For more information see Perfectly Matched Layers (PML) in the Mechanical APDL Theory Reference.
/batch
/prep7
! structure dimensions
pi=3.1415926535
k=8*pi
c0=340
freq=k*c0/(2*pi)
! define elements and material
et,11,200,7
et,1,220,,1 ! acoustic
et,2,220,,1,,1 ! pml
mp,dens,1,1.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 91
Acoustic Analysis Examples
mp,sonc,1,c0
d=0.1
l=1.
s=0.5
a=2
dpml=0.25
h=d/2
rect,-l,0,s/2,s/2+d
rect,-l,0,-s/2,-s/2-d
rect,0,a,-a/2,a/2
rect,0,a+dpml,-a/2-dpml,a/2+dpml
asba,4,3,,delete,keep
aglue,all
esize,h
type,11
amesh,all
mshape,0
mshkey,0
asel,all
asel,u,,,5
esla
type,1
mat,1
esize,,1
vext,all,,,0,0,d,
asel,s,,,5
type,2,
mat,1
esize,,1
vext,all,,,0,0,d,
asel,s,loc,z,0
aclear,all
alls
nummrg,all
! define boundary condition
nsel,s,loc,x,a+dpml
nsel,a,loc,y,-a/2-dpml
nsel,a,loc,y,a/2+dpml
d,all,pres,0.
! hard excitation source
nsel,s,loc,x,-l
d,all,pres,1
alls
fini
! perform solution
/solu
eqslv,sparse
antype,harmic
harfrq,freq
solve
fini
/post26
/out
prcplx,0
nsel,s,loc,x,0
nsel,r,loc,y,s/2+d
*get,A1,node,0,num,max
nsel,s,loc,x,0
nsel,r,loc,y,s/2
*get,A2,node,0,num,max
nsel,s,loc,x,0
nsel,r,loc,y,-s/2-d
*get,B1,node,0,num,max
nsel,s,loc,x,0
nsel,r,loc,y,-s/2
*get,B2,node,0,num,max
nsel,s,loc,x,a
nsel,r,loc,y,a/2
*get,C1,node,0,num,max
nsel,s,loc,x,a
nsel,r,loc,y,-a/2
*get,C2,node,0,num,max
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
92 of ANSYS, Inc. and its subsidiaries and affiliates.
Example: Radiation from a Dipole
allsel
nsol,2,A1,pres,,Input_A1
nsol,3,A2,pres,,Input_A2
nsol,4,B1,pres,,Input_B1
nsol,5,B2,pres,,Input_B2
nsol,6,C1,pres,,Output_C1
nsol,7,C2,pres,,Output_C2
/com ***************Results****************************
prvar,2,4,
prvar,3,5,
prvar,6,7
/com *******************************************************
fini
The dipole is located inside of the model at point (0,0,0). The dipole length is defined as the half of the
mesh, and the dipole axis is along the x-direction.
Because of the symmetry exhibited by the dipole radiation pattern, only 1/8 of the radiation space is
modeled.
The Y-Z plane is a sound-soft plane. The other two coordinate planes are sound-hard planes.
For details about near- and far-field calculation, see the PLFAR, PRFAR, PLNEAR, and PRNEAR commands.
/batch,list
/title,Radiation from a Dipole
/nopr
/prep7
! define material properties
rho=1.2041 ! mass density
soundv=343.26 ! sound speed
freq=1.e3 ! working frequency
wavel=soundv/freq ! wavelength
omega=2.*3.1415926535*freq ! angular frequency
p0=0.5*freq ! amplitude of pressure
! set model dimensions
*dim,a,array,4
a(1)=0
a(2)=a(1)+0.1*wavel
a(3)=a(2)+0.1*wavel
a(4)=a(3)+0.1*wavel
*do,i,1,3
*do,j,1,3
rect,a(i),a(i+1),a(j),a(j+1)
*enddo
*enddo
aglue,all
! define elements and material
et,11,200,7 ! temporary element
et,1,220,0,1 ! normal element
et,2,220,0,1,,1 ! PML element
mp,dens,1,rho
mp,sonc,1,soundv
! create 2d mesh
h=(a(2)-a(1))/6
nz1=(a(3)-a(1))/h
local,11 ! set up local coordinate system
wpcsys,,11
type,11
mshape,0
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 93
Acoustic Analysis Examples
esize,h
amesh,all ! meshing 2d model
! create 3d mesh
asel,s,loc,x,0,a(3)
asel,r,loc,y,0,a(3)
cm,aa,area
esys,11 ! set up element coordinate system
type,1 ! normal element region
mat,1
esize,,nz1
vext,all,,,0,0,a(3)-a(1)
asel,s,loc,z,0
asel,u,,,aa
type,2 ! meshing PML region
mat,1
esize,,nz1
vext,all,,,0,0,a(3)-a(1)
nz2=(a(4)-a(3))/h
esize,,nz2
asel,s,loc,z,a(3)
vext,all,,,0,0,a(4)-a(3)
allsel,all,all
nummrg,all ! merge nodes
asel,s,loc,z,0 ! delete 2d element
aclear,all
etdel,11
alls
! constrains on PML exterior surface
nsel,s,loc,x,a(4)
nsel,a,loc,y,a(4)
nsel,a,loc,z,a(4)
d,all,pres,0.
! constrains on x=0 symmetric plane
nsel,s,loc,x,a(1)
d,all,pres,0.
alls
! analytic incident dipole inside of model
awave,1,dipo,pres,int,p0,0,0,0,0,rho,soundv,,h/2,1,0,0
finish
! perform a solution
/solu
antype,harmic ! harmonic analysis
harfrq,freq ! frequency for analysis
asol,scat,on ! scattered formulation
ascres,total ! output total pressure field
solve
finish
! post-processing
/post1
/show,png
set,1,1
hfsym,,ssb,shb,shb ! symmetric plane for far field
/com,
/com, ********************************************
/com, * near/far analytic solution |p| *
/com, ********************************************
/com, (x,y,z) |p|
/com, (1,0,0) 26.176
/com, (5,0,0) 5.235
/com, (10,0,0) 2.618
/com, (20,0,0) 1.309
/com,
/com, ********************************************
/com, * near/far Ansys solution |p| *
/com, ********************************************
/com,
prnear,point,psum,,1,0,0
prnear,point,psum,,5,0,0
prnear,point,psum,,10,0,0
prnear,point,psum,,20,0,0,
prfar,pres,sumc,0,0,1,90,90,1,20
prfar,pres,splc,0,0,1,90,90,1,20,2.e-5
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
94 of ANSYS, Inc. and its subsidiaries and affiliates.
Example: Monopole Incident Wave Scattering of a Rigid Sphere
prfar,pres,pwl,0,0,0,0,0,0,0,1.e-12
plfar,pres,sump,0,0,1,0,360,180,10
plfar,pres,splp,0,0,1,0,360,180,10,2.e-5
plfar,pres,dgpl,0,0,1,0,180,90
fini
For more information, see Perfectly Matched Layers (PML) in the Mechanical APDL Theory Reference.
/batch,list
/com, harmonic analysis – scattering from a rigid sphere
/title,Scattering of a Rigid Sphere
/nopr
/prep7
pi=3.1415926535
! material properties
rho=1.21 ! air mass density
c0=343 ! sound speed
ra=1 ! radius of sphere
ka=5 ! product of wavenumber and radius
wave2=2.*pi*ra/ka ! wavelength
h=wave2/10 ! mesh size
freq=c0/wave2 ! frequency
p0=1./(ka/ra) ! amplitude of incident pressure
! 10-node tetrahetral
et,1,221,,1 ! normal tet
et,2,221,,1,,1 ! pml tet
mp,dens,1,rho ! define density
mp,sonc,1,c0 ! define sound speed
! define the model
xs=2.
n=nint((xs-1.01*ra)/h) ! keep source outside of model
npml=4
nb=2
na=n-npml-nb
*if,na,le,0,then
na=1
*endif
a=ra+na*h
b=a+nb*h
c=b+npml*h
sphere,0,ra,0,180
block,-a,a,0,a,-a,a
block,-b,b,0,b,-b,b
block,-c,c,0,c,-c,c
vsbv,4,3,,delete,keep
vsbv,3,2,,delete,keep
vsbv,2,1,,delete,delete
alls
vglue,all
! meshing
mshape,1,3d
mat,1
type,1
vsel,all
vsel,u,,,5
esize,h
vmesh,all
vsel,all
type,2
mat,1
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 95
Acoustic Analysis Examples
esize,h
vsel,s,,,5
vmesh,all
alls
! define equivalent source surface
nsel,s,loc,x,-a,a
nsel,r,loc,y,0,a
nsel,r,loc,z,-a,a
esln,s,1,all ! elements with selected nodes
nsel,s,loc,x,a
nsel,a,loc,x,-a
nsel,a,loc,y,a
nsel,a,loc,z,-a,
nsel,a,loc,z,a
sf,all,mxwf ! equivalent source surface
alls
! define boundary condition on pml
nsel,s,loc,x,c
nsel,a,loc,x,-c
nsel,a,loc,y,c
nsel,a,loc,z,-c
nsel,a,loc,z,c
d,all,pres,0. ! pressure=0 on pml exterior
allsel,all
! define external monopole incident wave
awave,1,mono,pres,ext,p0,0,xs,0,0,rho,c0
fini
! perform solution
/solu
eqslv,sparse
antype,harmic
harfrq,freq
solve
fini
! pos-processing
/post1
set,1,1
hfsym,0,,shb,, ! sound-hard x-z plane
prnear,point,psum,0,-5,0,0 ! near pressure at (-5,0,0)
prnear,point,psum,0,5,0,0 ! near pressure ar (5,0,0)
prfar,pres,sumc,0,0,0,-90,90,18,5. ! far pressure at r=5
fini
The FSI between the acoustic incident wave and the structural shell is taken into account.
The coupled harmonic problem uses the symmetric formulation, requiring fewer computational resources
than other formulations.
The incident plane wave is defined by the magnitude p0 = 1, the incident angle θ = 90° and φ = 180°.
PML is used for the truncation of the open space. For more information, see Perfectly Matched Layers
(PML) in the Mechanical APDL Theory Reference.
/batch,list
/com,Plane wave FSI scattering from a cylindrical shell
/title,FSI Scattering of Cylindrical Shell
/nopr
/prep7
pi=3.1415926535
! material properties
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
96 of ANSYS, Inc. and its subsidiaries and affiliates.
Example: Planar Incident Wave FSI Scattering of an Infinite Cylindrical Shell
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 97
Acoustic Analysis Examples
csys,0
! define shell element
sectype,,shell
secdata,thick,2 ! shell with thickness=0.02 and material 2
csys,1
nsel,s,loc,x,ra
type,3
mat,2
esurf ! generate shell element
alls
csys,0
! define boundary condition
nsel,all
d,all,uz,0
nsel,s,loc,y,b(1)
d,all,uy,0
alls
! incident plane wave
p0=1
phi=180
theta=90
awave,1,plan,pres,ext,p0,0,phi,theta,,rho,c0
fini
! perform solution
/solu
asol,scat,on ! activate scattered field formula
ascres,total ! output total field
eqslv,sparse ! sparse direct solver
antype,harmic ! harmonic analysis
harfrq,freq ! define working frequency
solve
fini
/post1
! calculate the plane wave value on the shell surface
dtorad=3.1415926535/180.
kx=-k0*sin(theta*dtorad)*cos(phi*dtorad)
csys,1
nsel,s,loc,z,0
nsel,r,loc,x,ra ! nodes on shell
csys
*get,ndmax,NODE,0,COUNT
*dim,ang1,array,ndmax
*dim,psr,array,ndmax
*dim,psi,array,ndmax
*dim,pang,array,ndmax
node=0
*do,i,1,ndmax
node=ndnext(node)
xx=nx(node)
yy=ny(node)
pang(i)=kx*xx ! plane wave phase angle
ang1(i)=atan2(yy,xx)/dtorad ! nodal angle in polar coordinate
*enddo
! real solution of the pressure
set,1,1
node=0
*do,i,1,ndmax
node=ndnext(node)
pr0=p0*cos(pang(i)) ! real part of incident plane wave
*get,pp,NODE,node,pres ! real part of total pressure solution
psr(i)=pp-pr0 ! real part of scattered wave
*enddo
! imaginary solution of the pressure
set,1,1,,1
node=0
*do,i,1,ndmax
node=ndnext(node)
pi0=-p0*sin(pang(i)) ! imaginary part of incident plane wave
*get,pp,NODE,node,pres ! imaginary part of total pressure solution
psi(i)=pp-pi0 ! imaginary part of scattered wave
*enddo
! sort results in terms of angles
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
98 of ANSYS, Inc. and its subsidiaries and affiliates.
Example: One-Way Coupling from Structure to Acoustics
*do,i,1,ndmax-1
*do,j,i,ndmax
*if,ang1(j),lt,ang1(i),then
tmp=ang1(i)
ang1(i)=ang1(j)
ang1(j)=tmp
tmp=psr(i)
psr(i)=psr(j)
psr(j)=tmp
tmp=psi(i)
psi(i)=psi(j)
psi(j)=tmp
*endif
*enddo
*enddo
/com,******************************************************************
/com,* Ansys results: scattered pressure on the shell surface *
/com,******************************************************************
/com, Angle (Deg) P_REAL P_IMAG
/com,
*do,i,1,ndmax
ang0=ang1(i)
p0r=psr(i)
p0i=psi(i)
*vwrite,ang0,p0r,p0i
(2x,f7.2,17x,g12.5,6x,g12.5)
*enddo
fini
In one-way sequential coupling, the structural analysis is performed first. The structural results on the
one-way coupling interface flagged on the structural model are stored in a file with the extension .asi,
then used in the sequential acoustic analysis as the excitation.
A square infinite steel pipe with the wall thickness 0.125 m, containing air with the cross section 1 x 1
m2, is simulated to demonstrate the process.
/batch,list
/title, one-way coupling via .asi file
/nopr
/prep7
! define elements
et,1,186
et,2,220,,1
et,11,200,7
! define steel material properties
mp,ex,1,1.44e11
mp,dens,1,7700
mp,nuxy,1,0.35
! define air material properties
mp,dens,2,1.21
mp,sonc,2,430
! create the mesh
h=0.0625
*dim,a,array,4
a(1)=0
a(2)=a(1)+2*h
a(3)=a(2)+1
a(4)=a(3)+2*h
*do,i,1,3
*do,j,1,3
rect,a(i),a(i+1),a(j),a(j+1)
*enddo
*enddo
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 99
Acoustic Analysis Examples
aglue,all
asel,s,loc,x,a(2),a(3)
asel,r,loc,y,a(2),a(3)
cm,a1,area
alls
type,11 ! 2d mesh
esize,h
amesh,all
lz=h
n=1
type,2
mat,2
asel,s,,,a1
esize,,n
vext,all,,,0,0,lz ! acoustic mesh
type,1
mat,1
asel,s,loc,z,0 ! structural area
asel,u,,,a1
esize,,n
vext,all,,,0,0,lz ! structural mesh
alls
asel,s,loc,z,0 ! delete 2d mesh
aclear,all
etdel,11
alls
nummgr,all
! define one-way coupling interface
esel,s,type,,1
nsle,s
nsel,s,loc,x,a(2)
nsel,a,loc,x,a(3)
nsel,a,loc,y,a(2)
nsel,a,loc,y,a(3)
sf,all,fsin,1 ! flag interface with fsin
alls
! set boundary condition
nsel,s,loc,y,0 ! set displacement constraint
d,all,ux,0
d,all,uy,0
d,all,uz,0
alls
nsel,all
d,all,uz,0
! set loads on the structure
nsel,s,loc,x,0
f,all,fx,1 ! apply force
alls
esel,u,type,,2 ! unselect acoustic element in structure
asifile,write ! store interface structural results
fini
! perform a structural solution
/solu
antype,harm
hropt,auto
kbc,1
harf,58,68 ! frequency range
nsub,3 ! solving at 3 frequencies
solve
fini
! start an acoustic analysis
/prep7
alls
esel,u,type,,1 ! unselect structural element in acoustics
asifile,read ! read stored structural results
fini
! perform an acoustic solution
/solu
antype,harm
hropt,auto
kbc,1
harf,58,68 ! frequency range
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
100 of ANSYS, Inc. and its subsidiaries and affiliates.
Example: Modal Analysis of an Acoustic-Structural Coupled Structure with Nonlinear
Static Prestress Using Linear Perturbation
nsub,3 ! solving at 3 frequencies
solve
fini
! post-processing
/post26
nn1 = node(0.125,0.125,0)
nsol,2,nn1,pres
fini
The structural shell is prestressed via a nonlinear static analysis with the large deformation first.
The mesh in the acoustic domain is morphed in terms of the deformation of the structural shell before
an acoustic-structural coupled modal analysis is performed (MORPH).
Finally, the linear perturbation scheme is used to solve the resonant modes of the acoustic-structural
coupled structure with updated mesh.
The acoustic domain is constructed by 0.2 x 0.2 x 0.2 m3 volume. An aluminum plate with a thickness
of 0.01 m is placed at X = 0.2 m. The plate has the dimension 0.01 x 0.2 x 0.2 m3. The constraints UX =
-1, UY = 0 and UZ = 0 (D) are imposed on the aluminum plate. On the X = 0 plane, the constraints UX
= 0 and UZ = 0 are imposed. On the Y = 0 plane, the constraints UY = 0 and UZ = 0 are imposed.
/batch,list
/nopr
/prep7
et,1,220 ! acoustic element
et,2,281 ! shell element
sectype,2,shell ! define section type as shell
secdata,0.01,2,0 ! shell parameters
mp,dens,1,1.2 ! acoustic mass density
mp,sonc,1,343 ! sound speed
mp,dens,2,2700 ! aluminum mass density
mp,ex ,2,70e9 ! aluminum elastic moduli
mp,nuxy,2,.3 ! aluminum minor Poisson’s rato
r,1 ! real constant type 1
r,2 ! real constant type 2
block,,.2,,.2,,.2 ! acoustic geometry
type,1
real,1
mat,1
esize,,10
vmesh,1 ! mesh acoustic domain
alls
type,2
real,2
mat,2
secnum,2
asel,s,loc,x,0.2
nsla,s,1
esurf ! create shell element
alls
! define constrains
asel,s,loc,x,.2
nsla,s,1
d,all,ux,-0.1
d,all,uy
d,all,uz
asel,s,loc,x,0
nsla,s,1
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 101
Acoustic Analysis Examples
d,all,ux,0,,,,uz
asel,s,loc,y,0
nsla,s,1
d,all,uy,0,,,,uz
! define fsi interface
esel,s,type,,1
nsle,s
nsel,r,loc,x,0.2
sf,all,fsi
alls
finish
! perform non-linear static solution
/solu
antype,static
nlgeom,on
cnvtol,f,1,1e-4
nsub,1
morph,on,,,,,,,,,on ! morphing acoustic domain
rescontrol,define,all,1
solve
finish
! set up linear perturbation
/solu
antype,static,restart,,,perturb
perturb,modal,,,parkeep ! set LP to modal analysis
solve,elform
! perform modal solution
modopt,unsym,5,0.001 ! set beginning frequency to 0.001 Hz
mxpand,5,,,yes
solve
finish
The steel tank is 21 m tall with a radius of 7 m. It is meshed with SHELL281 and constrained at the base.
It is filled with water, which is meshed with FLUID220 elements. The fluid has a free surface with zero
pressure at the top and FSI interfaces on all other faces.
The unsymmetric eigensolver is used to extract the first 250 eigensolutions between 4.1 and 50 Hz.
Both right and left eigensolutions are requested. The solutions are real by default.
Finally the spectrum analysis (SPRS) is run with horizontal (X-direction) excitation using the CQC com-
bination method. This analysis can be post-processed in POST1 after the MCOM file is input.
/batch
/title, Response Spectrum Analysis of a Tank
Radius = 7
Height = 21
Thickness = 0.015
ElemSize = 0.5
Dens_Fluid = 1000
Sonc_Fluid = 1500
Ex_Solid = 1.95e11
PRXY_Solid = 0.3
Dens_Solid = 7850
/PREP7
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
102 of ANSYS, Inc. and its subsidiaries and affiliates.
Example: Spectrum Analysis of a Cylindrical Tank Filled with Water
ET,1,220,0,0
MP,DENS,1,Dens_Fluid
MP,SONC,1,Sonc_Fluid
ET,2,281
MP,EX,2,Ex_Solid
MP,DENS,2,Dens_Solid
MP,PRXY,2,PRXY_Solid
SECTYPE,2,SHELL
SECDATA,Thickness,2
ESIZE,ElemSize
TYPE,1
MAT,1
SECNUM,1
VSEL,,,,1
VSWEEP,ALL
TYPE,2
MAT,2
SECNUM,2
ASEL,S,,,1
ASEL,A,,,3
ASEL,A,,,4
NSLA,S,1
ESURF
! Boundary Conditions
DA,1,UX,0
DA,1,UY,0
DA,1,UZ,0
DA,2,PRES,0
SFA,1,,FSI
SFA,3,,FSI
SFA,4,,FSI
ALLSEL,ALL
FINISH
/solu
ANTYPE,MODAL
MODOPT,UNSYM,250, 4.1,50,,, BOTH ! request BOTH left and right eigensolutions
MXPAND,250
SOLVE
FINI
/SOLU
ANTYPE,SPECTRUM
SPOPT,SPRS
SVTYP,2
DMPR,0.04
FREQ, 0.050, 0.106, 0.110, 0.113, 0.240, 0.310, 0.440, 0.785, 0.810
FREQ, 1.157, 1.430, 1.780, 1.795, 1.911, 2.035, 2.167, 2.307, 2.616
FREQ, 2.785, 2.966, 3.158, 3.363, 3.813, 4.060, 4.323, 7.605, 8.622
FREQ, 9.181, 9.776, 13.380, 15.170, 16.153, 17.199, 19.500, 23.541, 26.690
FREQ, 41.417, 44.101, 50.000, 100.000
SV,, 0.4074E-01, 0.9420E-01, 0.9420E-01, 0.9420E-01, 0.1640E+01, 0.3118E+01, 0.9190E+01, 0.9160E+01, 0.9160E+01
SV,, 0.5371E+01, 0.2420E+01, 0.1850E+01, 0.1210E+01, 0.1139E+01, 0.1139E+01, 0.9863E+00, 0.9863E+00, 0.9248E+00
SV,, 0.9248E+00, 0.9634E+00, 0.9634E+00, 0.9950E+00, 0.9950E+00, 0.9950E+00, 0.1169E+01, 0.1169E+01, 0.1150E+01
SV,, 0.1115E+01, 0.1076E+01, 0.1076E+01, 0.8974E+00, 0.8974E+00, 0.8948E+00, 0.8664E+00, 0.8565E+00, 0.8208E+00
SV,, 0.8200E+00, 0.8111E+00, 0.8089E+00, 0.8089E+00
CQC
SED,1,0,0 ! X-direction
SOLVE
FINI
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 103
Acoustic Analysis Examples
/POST1
/INPUT,,MCOM
SELTOL,1E-5
NSEL,,LOC,X,RADIUS
NLIS
PRNSOL,U
PRNSOL,PRES
ALLSEL
/SHOW,PNG,REV
/VIEW,,1,1,1
ESEL,,TYPE,,2
PLNSOL,U,X
ESEL,,TYPE,,1
PLNSOL,PRES
FINISH
The material properties of the 0.7m x 0.5m x 0.005m structural panel with fixed edges are:
The receiving domain is the air with mass density = 1.225 kg/m3 and sound speed = 430 m/s.
The FSI between the acoustic incident wave and the structural shell is taken into account.
The diffuse sound field is defined in the global Cartesian coordinate system, as follows:
Perfectly matched layers (PML) are used for truncation of the open space. For more information, see
Perfectly Matched Layers (PML) in the Mechanical APDL Theory Reference.
/batch,list
/title, A Structural Panel under the Excitation of the Diffuse Sound Field
/prep7
/nopr
et,11,200,7 ! 2d quad element for meshing
et,1,220,,0 ! coupled acoustic element
et,2,220,,1,,1 ! acoustic PML element
et,3,281 ! structure shell element
et,4,154 ! surface element
mp,dens,1,1.225 ! the air mass density
mp,sonc,1,340 ! sound speed in the air
mp,dens,2,7800 ! steel mass density
mp,ex ,2,2.1e11 ! steel elastic moduli
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
104 of ANSYS, Inc. and its subsidiaries and affiliates.
Example: Structural Panel Subject to Excitation From a Diffuse Sound Field
alls
nummrg,all
alls
nsel,s,loc,x,a(1)
nsel,a,loc,x,a(6)
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 105
Acoustic Analysis Examples
nsel,a,loc,y,b(1)
nsel,a,loc,y,b(6)
nsel,a,loc,z,-dz-dpml
d,all,pres,0 ! pressure constrains on PML exterior surface
alls
sectype,2,shell
secdata,0.005,2
cmsel,s,nod1 ! select FSI interface nodes
type,3
mat,2
secn,2
esurf ! generate shell element
alls
nummrg,all
alls
esel,s,type,,3 ! select shell element
type,4
mat,2
esurf ! generate surface element
alls
nummrg,all
alls
! fix panel edges
nsel,s,loc,z,0
nsel,r,loc,x,a(3)
nsel,r,loc,y,b(3),b(4)
d,all,ux,0
d,all,uy,0
d,all,uz,0
nsel,s,loc,z,0
nsel,r,loc,x,a(4)
nsel,r,loc,y,b(3),b(4)
d,all,ux,0
d,all,uy,0
d,all,uz,0
nsel,s,loc,z,0
nsel,r,loc,x,a(3),a(4)
nsel,r,loc,y,b(3)
d,all,ux,0
d,all,uy,0
d,all,uz,0
nsel,s,loc,z,0
nsel,r,loc,x,a(3),a(4)
nsel,r,loc,y,b(4)
d,all,ux,0
d,all,uy,0
d,all,uz,0
alls
! define diffuse sound field
dfswave,0,15,1,1.225,340,90,20,all
finish
/solu
antype,harmic
harfrq,65,75
nsubst,10
msolve,5,0.1,2 ! five samples
finish
/post1
/show,png
pras,dfst,avg,all ! print average transmission loss
plas,dfst,avg,all ! plot average transmission loss
finish
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
106 of ANSYS, Inc. and its subsidiaries and affiliates.
Example: Transmission Loss of a Structural Panel under an Obliquely Incident Plane
Wave
13.17. Example: Transmission Loss of a Structural Panel under an Ob-
liquely Incident Plane Wave
This example problem demonstrates the use of the FLUID220 element to predict the transmission loss
of an infinite structural panel under excitation from an obliquely incident plane wave. The Floquet
periodic boundary condition is used to truncate the infinite panel.
The material properties of the structural panel with thickness 0.0508 m are:
The acoustic domain is the water with mass density = 1000 kg/m3 and sound speed = 1498.6 m/s.
FSI between the acoustic incident wave and the structural panel is taken into account.
Excitation and output plane wave ports are defined on the interior surfaces.
The incident angle θ (from +z axis toward +x axis) sweeps from 0° to 88° at the φ = 0° plane.
The Floquet periodic boundary condition is applied on the cell sidewalls in the x-direction.
The program calculates the phase shift on the slave nodes according to the incident angles.
Perfectly matched layers (PML) truncate the domain in the z-direction. For more information, see Perfectly
Matched Layers (PML) in the Mechanical APDL Theory Reference.
/batch, list
/nopr
/prep7
et,1,220,, ! coupled acoustic element
et,2,220,,1,,1 ! acoustic PML element
et,3,186 ! structural element
rho1 = 1000 ! acoustic fluid mass density
c01 =1498.6 ! sound speed in acoustic fluid
rho2 = 7500 ! structural mass density
ex=2.0684e11 ! structural Young's module
nuxy=0.3 ! poison ratio
freq = 10000 ! working frequency
wavelen = c01/freq ! wave length
dL=0.0508 ! period
dd=1.0*wavelen
dpml=0.5*wavelen ! PML thickness
h=wavelen/32 ! mesh size
p0=1 ! amplitude of incident pressure wave
mp,dens,1,rho1 ! define acoustics material
mp,sonc,1,c01
mp,dens,2,rho2 ! define structural material
mp,ex,2,ex
mp,nuxy,2,nuxy
*dim,c,array,6 ! set up geometry
c(1)=0
c(2)=c(1)+dpml
c(3)=c(2)+dd
c(4)=c(3)+dL
c(5)=c(4)+dd
c(6)=c(5)+dpml
*do,i,1,5
block,-dL/2,dL/2,-h,h,c(i),c(i+1)
*enddo
vglue,all
vsel,s,loc,z,c(3),c(4) ! generate mesh
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 107
Acoustic Analysis Examples
type,3
mat,2
esize,h
vmesh,all
vsel,s,loc,z,c(2),c(3)
vsel,a,loc,z,c(4),c(5)
type,1
mat,1
vmesh,all
vsel,s,loc,z,c(1),c(2)
vsel,a,loc,z,c(5),c(6)
type,2
mat,1
vmesh,all
alls
nsel,s,loc,z,c(3) ! flag FSI interface
nsel,a,loc,z,c(4)
sf,all,fsi
nsel,s,loc,x,-dL/2 ! coupled nodes
nsel,a,loc,x,dL/2
nsel,r,loc,z,c(1),c(6)
cpcyc,all,,,dL
nsel,s,loc,z,c(5) ! define plane wave excitation at port 1
bf,all,port,1
aport,1,plan,0,p0
nsel,s,loc,z,c(2) ! define output port at port 2
bf,all,port,2
aport,2,plan
nsel,s,loc,z,c(1) ! pml exterior b.c
nsel,a,loc,z,c(6)
d,all,pres,0
alls
d,all,uy,0
ecpchg
fini
/solu ! perform solution
eqslv,sparse
pmlopt,,,,,,,1.e-7,1.e-7
antype,harmic
hropt,auto
harfrq,freq
nsub,1
msolve,88,0,88,aphi,0 ! angle theta sweep with fixed phi=0
fini
/post1
/show,png
pras,tl,1,all,,,,,1,2 ! print transmission loss
plas,tl,1,all,,,,,1,2 ! plot transmission loss
fini
The transmission loss of the structural panel under an obliquely incident plane wave is shown in this
figure:
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
108 of ANSYS, Inc. and its subsidiaries and affiliates.
Example: Sound Far Field from a Piston Using Rayleigh Integral
13.18. Example: Sound Far Field from a Piston Using Rayleigh Integral
This example problem demonstrates the use of the Rayleigh integral to predict the sound far field of a
piston with infinite baffle. A quarter of the piston is modeled without any acoustic elements under the
assumption that the fluid does not influence the structural motion. The radiated sound far field is effi-
ciently computed by the Rayleigh integral during postprocessing.
The material properties of the piston with the radius 0.1 m and thickness 0.01 m are:
The acoustic domain is the air with mass density = 1.21 kg/m3 and sound speed = 345 m/s.
For more information, see Acoustic Output Quantities in the Mechanical APDL Theory Reference.
/batch, list
/nopr
/prep7
pi=acos(-1.)
a=0.1 ! radius of the piston
d=0.01 ! thickness of the piston
h=a/5 ! mesh size
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 109
Acoustic Analysis Examples
The lined duct with the dimension 4x1x0.075 m3 is terminated by Perfectly matched layers (PML) in the
acoustic propagating direction.
Figure 13.2: The Lined Guide with Impedance Boundary and Mean Flow
The impedance boundary with the complex impedance Z = 417.45+j417.45 ohms is applied on the top
boundary of the duct. The bottom boundary is set to the rigid wall.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
110 of ANSYS, Inc. and its subsidiaries and affiliates.
Example: Acoustic Propagation in a Lined Guide with an Impedance Boundary and
Mean Flow
The volume mass source is located at the center of the duct to model a monopole source with radius
= 0.2 m. The nodal mass source is set to q=1/ω (ω is the angular frequency).
The uniform mean flow with Mach number = 0.3 in the x-direction is investigated. The working frequency
is 384.36 Hz.
The acoustic domain is the air with mass density = 1.21 kg/m3 and sound speed = 345 m/s. It is necessary
to use PML to truncate the duct, rather than the matched impedance boundary, since multiple modes
may be excited in the model.
/batch,list
/nopr
/prep7
pi=acos(-1.)
c0=345 ! sound speed in the air
rho=1.21 ! the air mass density
mach=0.3 ! Mach number
v0=mach*c0 ! mean flow velocity
k=7 ! working wave number
freq=k*345/(2*pi) ! working frequency
wavelen=c0/freq ! wave length
h=wavelen/12 ! mesh size
d=2 ! half length of duct
w=0.5 ! half height of duct
c=0.075 ! thickness of duct
dpml=0.5*wavelen ! thickness of PML
r=0.2 ! radius of monopole
z0=c0*rho ! wave impedance in the air
omega=2.*pi*freq ! angular frequency
q=1./omega ! mass source
x0=-r*cos(pi/4.)
y0=r*sin(pi/4)
et,1,220,,1 ! acoustic element
et,2,220,,1,,1 ! acoustic PML element
mp,dens,1,rho ! air mass density
mp,sonc,1,c0 ! sound speed in the air
! generate geometry
k,1,0,0,0
k,2,0,r,0
k,3,0,w,0
k,4,-d,w,0
k,5,-d,0,0
k,6,-r,0,0
k,7,x0,y0,0
k,8,-d-dpml,0
k,9,-d-dpml,w
l,1,2
l,2,3
l,3,4
l,4,5
l,5,6
l,6,1
larc,2,7,1,r
larc,7,6,1,r
l,4,7
l,4,9
l,5,8
l,8,9
al,7,2,3,9
al,1,7,8,6
al,4,5,8,9
al,4,10,12,11
aglue,all
! generate mesh
et,11,200,7
type,11
esize,h
amesh,all
asel,all
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 111
Acoustic Analysis Examples
asel,u,,,4
esize,,1
type,1
mat,1
vext,all,,,0,0,c
asel,s,,,4
type,2
mat,1
esize,,1
vext,all,,,0,0,c
asel,s,loc,z,0
aclear,all
etdele,11
vsymm,x,all
vsymm,y,all
nummrg,all
alls
nsel,s,loc,x,-d-dpml
nsel,a,loc,x,d+dpml
d,all,pres,0 ! zero velocity potential on PML exterior
nsel,s,loc,y,w
sf,all,impd,z0,z0 ! impedance boundary on the top
alls
csys,1
nsel,s,loc,x,0,r
bf,all,mass,q,90 ! mass source
alls
csys,0
nsel,all
bf,all,vmen,v0,0,0, ! uniform mean flow in x-direction
alls
fini
/solu ! solution
eqslv,sparse
antype,harmic
harfrq,freq
nsub,1
solve
fini
/show,png
/post1
set,1,1
plns,pres ! nodal pressure
fini
The acoustic pressures without and with mean flow are shown in the figures below.
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
112 of ANSYS, Inc. and its subsidiaries and affiliates.
Example: Acoustic Propagation in a Lined Guide with an Impedance Boundary and
Mean Flow
Figure 13.3: Acoustic Pressure in Lined Guide without Mean Flow
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
of ANSYS, Inc. and its subsidiaries and affiliates. 113
Release 18.2 - © ANSYS, Inc. All rights reserved. - Contains proprietary and confidential information
114 of ANSYS, Inc. and its subsidiaries and affiliates.