Skip to content

Acoustic waves

This page derives the weak formulation for linear acoustic wave propagation and describes the available boundary conditions and couplings in Allsolve.

This formulation is derived under the linear approximation for Newtonian fluids. The governing equations are the Navier–Stokes equations for compressible flow:

ρ(vt+(v)v)=p+(μ(v+(v)T))+(23μv)+fρt+(ρv)=0.\begin{align*} \rho \Bigr(\frac{\partial \boldsymbol{v}}{\partial t} + (\boldsymbol{v} \cdot \nabla) \boldsymbol{v} \Bigr) &= -\nabla p + \nabla \cdot (\mu (\nabla \boldsymbol{v} + (\nabla \boldsymbol{v})^T)) + \nabla (-\tfrac{2}{3} \mu \nabla \cdot \boldsymbol{v}) + \boldsymbol{f} \tag{1} \\[10pt] \frac{\partial \rho}{\partial t} + \nabla \cdot (\rho \boldsymbol{v}) &= 0. \tag{2} \end{align*}

For small density and pressure variations the speed of sound in the fluid cc is given by

c=pρ.\begin{align*} c = \sqrt{\frac{\partial p}{\partial \rho}}. \tag{3} \end{align*}

We can neglect the viscosity terms in (1)\text{(1)} since we are interested only in the region within a few acoustic wavelengths. Considering an inviscid fluid and no external forces, (1)\text{(1)} rewrites as

ρ(vt+(v)v)=pρt+(ρv)=0,\begin{align*} \rho \Bigr(\frac{\partial \boldsymbol{v}}{\partial t} + (\boldsymbol{v} \cdot \nabla) \boldsymbol{v}\Bigr) = -\nabla p \tag{4} \\[10pt] \frac{\partial \rho}{\partial t} + \nabla \cdot (\rho \boldsymbol{v}) = 0, \tag{5} \end{align*}

which can, for tiny perturbations, be linearised around a mean value:

p=p+δp,ρ=ρ+δρ,v=v+δv=δv,\begin{align*} p = \overline{p} + \delta p, \tag{6}\\ \rho = \overline{\rho} + \delta \rho, \tag{7}\\ \boldsymbol{v} = \overline{\boldsymbol{v}} + \delta \boldsymbol{v} = \delta \boldsymbol{v}, \tag{8} \end{align*}

where the overlined quantities are the mean values (constant in space and time) and the δ\delta terms are tiny perturbations. Since the fluid is at rest, v=0\overline{\boldsymbol{v}} = 0. Injecting equations (6)\text{(6)} to (8)\text{(8)} into equations (4)\text{(4)} and (5)\text{(5)} and neglecting nonlinear perturbations gives

ρδvt+δρδvt+ρ(δv)δv=δpδρt+ρδv=0.\begin{align*} \overline{\rho} \frac{\partial \delta \boldsymbol{v}}{\partial t} + \delta \rho \displaystyle\frac{\partial \delta \boldsymbol{v}}{\partial t} + \overline{\rho} (\delta \boldsymbol{v} \cdot \nabla) \delta \boldsymbol{v} = - \nabla \delta p \tag{9} \\[10pt] \frac{\partial \delta \rho}{\partial t} + \overline{\rho} \nabla \cdot \delta \boldsymbol{v} = 0. \tag{10} \end{align*}

By algebraic manipulation (using the product rule and the continuity equation multiplied by δv\delta \boldsymbol{v}) and neglecting second‐order perturbations we obtain useful approximation

ρ(δv ⁣)δvδρδvt.\begin{align*} \overline{\rho}\,(\delta \boldsymbol{v}\!\cdot\nabla)\,\delta \boldsymbol{v} \approx - \delta \rho \frac{\partial \delta \boldsymbol{v}}{\partial t}. \tag{11} \end{align*}

As a result, the two middle terms in the first relation of (9)\text{(9)} cancel and we obtain

ρδvt+δp=0δρt+ρδv=0.\begin{align*} \overline{\rho} \frac{\partial \delta \boldsymbol{v}}{\partial t} + \nabla\,\delta p &= 0 \tag{12} \\[10pt] \frac{\partial \delta \rho}{\partial t} + \overline{\rho} \nabla \cdot \delta \boldsymbol{v} &= 0. \tag{13} \end{align*}

Taking the divergence of the first relation and the time derivative of the second we get

ρδvt+Δδp=02δρt2+ρδvt=0,\begin{align*} \overline{\rho} \nabla \cdot \frac{\partial \delta \boldsymbol{v}}{\partial t} + \Delta \delta p &= 0 \tag{14} \\[10pt] \frac{\partial^2 \delta \rho}{\partial t^2} + \overline{\rho} \nabla \cdot \frac{\partial \delta \boldsymbol{v}}{\partial t} &= 0, \tag{15} \end{align*}

which can be combined into a single equation

2δρt2Δδp=0.\begin{align*} \frac{\partial^2 \delta \rho}{\partial t^2} - \Delta \delta p = 0. \tag{16} \end{align*}

With the isentropic approximation (3)\text{(3)} the acoustic wave equation can be written as

Δδp1c22δpt2=0.\begin{align*} \Delta \delta p - \frac{1}{c^2} \frac{\partial^2 \delta p}{\partial t^2} = 0. \tag{17} \end{align*}

with cc the speed of sound in the fluid and δp\delta p the pressure variation around the mean pressure.

From this point, δp\delta p is written simply as pp. To form the weak formulation, multiply both sides by the test function pp^{\prime} and integrate over the domain Ω\Omega:

Ω (Δp1c22pt2) p dΩ=0.\begin{align*} \int_{\Omega}\ (\Delta p - \frac{1}{c^2}\frac{\partial^2 p}{\partial t^2})\ p^{\prime}\ d\Omega = 0. \tag{18} \end{align*}

We can use the Leibniz rule for a nabla operator to rewrite the Laplace term

Ω (pp) dΩΩ pp dΩΩ 1c22pt2 p dΩ=0,\begin{align*} \int_{\Omega}\ \nabla \cdot (p^{\prime} \nabla p)\ d\Omega - \int_{\Omega}\ \nabla p \cdot \nabla p^{\prime}\ d\Omega - \int_{\Omega}\ \frac{1}{c^2}\frac{\partial^2 p}{\partial t^2} \ p^{\prime}\ d\Omega = 0, \tag{19} \end{align*}

and then apply the Divergence theorem on the divergence term to obtain the weak formulation

Γ (pn) p dΓΩ pp dΩΩ 1c22pt2 p dΩ=0.\begin{align*} \int_{\Gamma}\ (\nabla p \cdot \boldsymbol{n})\ p^{\prime}\ d\Gamma - \int_{\Omega}\ \nabla p \cdot \nabla p^{\prime}\ d\Omega - \int_{\Omega}\ \frac{1}{c^2}\frac{\partial^2 p}{\partial t^2} \ p^{\prime}\ d\Omega = 0. \tag{20} \end{align*}

Implements an absorbing boundary region to simulate infinite space and prevent reflections from truncated boundaries. Placed at the outer boundary of the acoustic domain, it absorbs outgoing sound waves without reflection.

Key properties:

  • Used to simulate open boundaries for scattering acoustic structures.

Two types available:

  • AML type: Suitable for smooth boundaries.
  • Box PML: Suitable for rectangular or cornered boundaries.
  • The number of PML layers can be tuned in the Shared PML settings.
ExampleUse case for Perfectly matched layer

Applies a fixed acoustic pressure pp to a node or region, enforcing a Dirichlet boundary condition for the acoustic wave equation. Use this to define fixed-pressure boundaries, such as a driven pressure inlet.

How to useProvide a scalar pressure value in Pascals (Pa).
Example101325 applies standard atmospheric pressure to the selected node or region.
UnitAcoustic pressure in Pascals (Pa)

Applies a first-order absorbing boundary condition to truncate the computational domain, allowing outgoing acoustic waves to pass through with minimal reflection. Lighter-weight than a Perfectly matched layer — suitable when a simpler setup is acceptable and some small residual reflection is tolerable.

How to useSelect the outer boundary of the acoustic domain where waves should exit. No additional parameters are needed — the condition automatically matches the acoustic impedance of the medium.

Imposes periodic boundary conditions on the acoustic pressure field pp between two boundaries. Reduces the computational domain size for geometrically symmetric problems, avoiding the need to model the full geometry.

ExamplePeriodicity follows the same principles, regardless of which physics module it belongs to. See how periodicity is used in magnetism as a reference: Periodicity in electric motors

Applies acoustic energy dissipation within a region, modelling losses due to porous materials, viscous absorption, or other damping mechanisms. Reduces the acoustic pressure amplitude as waves propagate through the damped region.

How to useSelect the target region and set the damping value.

Applies a prescribed normal acceleration ana_n to a boundary, acting as an acoustic source. Use this to model vibrating surfaces that radiate sound into the acoustic domain — a loudspeaker cone or a vibrating plate for example.

How to useSelect the target boundary and set the normal acceleration value.
Example1.0 applies an inward normal acceleration of 1 m/s² to the boundary.
UnitAcceleration in meters per second squared (m/s²)

Ensures continuity of the scalar acoustic pressure pp across an interface between two boundaries. Used to map the acoustic field continuously across mismatched or sliding mesh interfaces.

ExampleContinuity follows the same principles, regardless of which physics module it belongs to. See how continuity is used in magnetism as a reference: Continuity in electric motors

This formulation supports the following couplings:

  • Acoustic structure
    • Solid mechanics
    • Elastic waves