Skip to content

Acoustic waves

This page describes the available boundary conditions and couplings for linear acoustic wave propagation in Allsolve. The weak formulation is stated up front; the full derivation is at the end of this page.

The weak form solved by Allsolve is

βˆ«Ξ“Β (βˆ‡pβ‹…n)Β pβ€²Β dΞ“βˆ’βˆ«Ξ©Β βˆ‡pβ‹…βˆ‡pβ€²Β dΞ©βˆ’βˆ«Ξ©Β 1c2βˆ‚2pβˆ‚t2Β 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{1} \end{align*}

where pp is the acoustic pressure, cc the speed of sound in the fluid, and pβ€²p^{\prime} the test function.

See Formulation derivation for the full strong-to-weak derivation.

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.
Example Use 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 use Provide a scalar pressure value in Pascals (Pa).
Example 101325 applies standard atmospheric pressure to the selected node or region.
Unit Acoustic 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 use Select 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.

Example Periodicity 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 use Select 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 use Select the target boundary and set the normal acceleration value.
Example 1.0 applies an inward normal acceleration of 1 m/sΒ² to the boundary.
Unit Acceleration 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.

Example Continuity 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 waves supports Harmonic, Multiharmonic, Transient, and Eigenmode analysis. Static analysis is not applicable.

See the full compatibility table in Simulations overview.

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

ρ(βˆ‚vβˆ‚t+(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{2} \\[10pt] \frac{\partial \rho}{\partial t} + \nabla \cdot (\rho \boldsymbol{v}) &= 0. \tag{3} \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{4} \end{align*}

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

ρ(βˆ‚vβˆ‚t+(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{5} \\[10pt] \frac{\partial \rho}{\partial t} + \nabla \cdot (\rho \boldsymbol{v}) = 0, \tag{6} \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{7}\\ \rho = \overline{\rho} + \delta \rho, \tag{8}\\ \boldsymbol{v} = \overline{\boldsymbol{v}} + \delta \boldsymbol{v} = \delta \boldsymbol{v}, \tag{9} \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 (7)\text{(7)} to (9)\text{(9)} into equations (5)\text{(5)} and (6)\text{(6)} and neglecting nonlinear perturbations gives

Οβ€Ύβˆ‚Ξ΄vβˆ‚t+Ξ΄Οβˆ‚Ξ΄vβˆ‚t+ρ‾(Ξ΄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{10} \\[10pt] \frac{\partial \delta \rho}{\partial t} + \overline{\rho} \nabla \cdot \delta \boldsymbol{v} = 0. \tag{11} \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β‰ˆβˆ’Ξ΄Οβˆ‚Ξ΄vβˆ‚t.\begin{align*} \overline{\rho}\,(\delta \boldsymbol{v}\!\cdot\nabla)\,\delta \boldsymbol{v} \approx - \delta \rho \frac{\partial \delta \boldsymbol{v}}{\partial t}. \tag{12} \end{align*}

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

Οβ€Ύβˆ‚Ξ΄vβˆ‚t+βˆ‡β€‰Ξ΄p=0βˆ‚Ξ΄Οβˆ‚t+Οβ€Ύβˆ‡β‹…Ξ΄v=0.\begin{align*} \overline{\rho} \frac{\partial \delta \boldsymbol{v}}{\partial t} + \nabla\,\delta p &= 0 \tag{13} \\[10pt] \frac{\partial \delta \rho}{\partial t} + \overline{\rho} \nabla \cdot \delta \boldsymbol{v} &= 0. \tag{14} \end{align*}

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

Οβ€Ύβˆ‡β‹…βˆ‚Ξ΄vβˆ‚t+Δδp=0βˆ‚2Ξ΄Οβˆ‚t2+Οβ€Ύβˆ‡β‹…βˆ‚Ξ΄vβˆ‚t=0,\begin{align*} \overline{\rho} \nabla \cdot \frac{\partial \delta \boldsymbol{v}}{\partial t} + \Delta \delta p &= 0 \tag{15} \\[10pt] \frac{\partial^2 \delta \rho}{\partial t^2} + \overline{\rho} \nabla \cdot \frac{\partial \delta \boldsymbol{v}}{\partial t} &= 0, \tag{16} \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{17} \end{align*}

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

Δδpβˆ’1c2βˆ‚2Ξ΄pβˆ‚t2=0.\begin{align*} \Delta \delta p - \frac{1}{c^2} \frac{\partial^2 \delta p}{\partial t^2} = 0. \tag{18} \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 pβ€²p^{\prime} and integrate over the domain Ξ©\Omega:

∫Ω (Ξ”pβˆ’1c2βˆ‚2pβˆ‚t2)Β 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{19} \end{align*}

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

βˆ«Ξ©Β βˆ‡β‹…(pβ€²βˆ‡p)Β dΞ©βˆ’βˆ«Ξ©Β βˆ‡pβ‹…βˆ‡pβ€²Β dΞ©βˆ’βˆ«Ξ©Β 1c2βˆ‚2pβˆ‚t2Β 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{20} \end{align*}

and then apply the Divergence theorem on the divergence term to obtain the final weak formulation stated at the top of this page.