Acoustic waves
This page derives the weak formulation for linear acoustic wave propagation and describes the available boundary conditions and couplings in Allsolve.
Linear acoustic waves
Section titled “Linear acoustic waves”Strong formulation
Section titled “Strong formulation”This formulation is derived under the linear approximation for Newtonian fluids. The governing equations are the Navier–Stokes equations for compressible flow:
For small density and pressure variations the speed of sound in the fluid is given by
We can neglect the viscosity terms in since we are interested only in the region within a few acoustic wavelengths. Considering an inviscid fluid and no external forces, rewrites as
which can, for tiny perturbations, be linearised around a mean value:
where the overlined quantities are the mean values (constant in space and time) and the terms are tiny perturbations. Since the fluid is at rest, . Injecting equations to into equations and and neglecting nonlinear perturbations gives
By algebraic manipulation (using the product rule and the continuity equation multiplied by ) and neglecting second‐order perturbations we obtain useful approximation
As a result, the two middle terms in the first relation of cancel and we obtain
Taking the divergence of the first relation and the time derivative of the second we get
which can be combined into a single equation
With the isentropic approximation the acoustic wave equation can be written as
with the speed of sound in the fluid and the pressure variation around the mean pressure.
Weak formulation
Section titled “Weak formulation”From this point, is written simply as . To form the weak formulation, multiply both sides by the test function and integrate over the domain :
We can use the Leibniz rule for a nabla operator to rewrite the Laplace term
and then apply the Divergence theorem on the divergence term to obtain the weak formulation
Interactions
Section titled “Interactions”Perfectly matched layer
Section titled “Perfectly matched layer”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 |
Constraint
Section titled “Constraint”Applies a fixed acoustic pressure 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) |
Absorbing boundary
Section titled “Absorbing boundary”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. |
Periodicity
Section titled “Periodicity”Imposes periodic boundary conditions on the acoustic pressure field 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 |
Acoustic damping
Section titled “Acoustic damping”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. |
Normal acceleration
Section titled “Normal acceleration”Applies a prescribed normal acceleration 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²) |
Continuity
Section titled “Continuity”Ensures continuity of the scalar acoustic pressure 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 |
Couplings to Other Physics
Section titled “Couplings to Other Physics”This formulation supports the following couplings:
- Acoustic structure
- Solid mechanics
- Elastic waves