1. Introduction
The history of underwater acoustics and the understanding of sound wave propagation in the ocean have been developed through underwater explosions, primarily based on data analysis of experiments, some of which were performed during World War I under dangerous conditions, and achieved astonishing accomplishments during World War II (Muir & Bradley Reference Muir and Bradley2016). Such early research has culminated in cutting-edge technology such as ‘Herald’, an anchored acoustic buoy system that uses hydrophones to detect and track submarines and alerts via a radio transmitter. Subsequent developments include the discovery of the deep-ocean sound channel (the SOFAR channel, where the sound speed is minimum), which allows long-range sound propagation through acoustic lensing and makes location tracking feasible once an explosion occurs within this channel. While satellite technology overtook this technique, natural marine life still uses underwater acoustics for communication, namely, baleen whales (Schulze et al. Reference Schulze, Denkinger, Oña, Poole and Garland2022). Today, hydrophone stations are still used to detect underwater nuclear tests and submarine earthquakes by capturing the pressure and acoustic signature emanating from the source. For example, the Signal, Underwater Sound charges are still actively used to monitor ocean temperature distribution and report any anomalies that might lead to a tropical storm (Dall’Osto et al. Reference Dall’Osto, Dahl and Chapman2023), and the Global Real-time Early Assessment of Tsunamis provides real-time tsunami warnings by capturing sound waves (Kadri et al. Reference Kadri, Abdolali and Filimonov2024). The accuracy of these systems depends on how meticulously the mathematical problem is solved, so the inversion leads to an appropriate reconstruction of the initial condition (underwater explosion or movement) for better location tracking. Even though the immediate behaviour post-explosion is highly nonlinear (including cavity formation), the evolution of water pressure can be modelled accurately using linearised water wave theory after some time and space have elapsed, while accounting for mild water compressibility that includes both dynamic (due to sound wave propagation) and static (due to overlaying water-column weight) components.
The ocean compressibility plays a pivotal role in the evolution of the wave field through the generation of acoustic-gravity waves (AGWs), which are low-frequency hydro-acoustic waves modulated by gravity. While the mathematical foundation of such waves has a long history (Longuet-Higgins Reference Longuet-Higgins1950; Miyoshi Reference Miyoshi1954; Sells Reference Sells1965; Yamamoto Reference Yamamoto1982), a series of more recent works by Nosov et al. demonstrated that modelling using ocean compressibility enhances the accuracy of pressure estimates by matching with the observed data (Nosov Reference Nosov1999; Nosov & Skachko Reference Nosov and Skachko2001; Nosov & Kolesov Reference Nosov and Kolesov2007). With the growing interest in studying AGWs, Stiassnie (Reference Stiassnie2010) and Hendin & Stiassnie (Reference Hendin and Stiassnie2013) provided far-field wave profiles, including the pressure signature, in two and three dimensions, respectively. Further developments focus on different properties of AGWs (namely, triad resonances (Kadri Reference Kadri2016; Kadri & Akylas Reference Kadri and Akylas2016) and the analogous quantum-tunnelling effect (Kadri et al. Reference Kadri, Abdolali and Kirby2025)), interactions with gravity modes (Kadri & Stiassnie Reference Kadri and Stiassnie2013) and sea ice (Abdolali et al. Reference Abdolali, Kadri, Parsons and Kirby2018; Das & Meylan Reference Das and Meylan2022), deep-water transport (Kadri Reference Kadri2014), ice shelf breaking (Kadri & Stiassnie Reference Kadri and Stiassnie2012), wave dissipation due to sea ice (Chen et al. Reference Chen, Gilbert and Guyenne2019) and their response to different seafloor characteristics (Chierici et al. Reference Chierici, Pignagnoli and Embriaco2010; Eyov et al. Reference Eyov, Klar, Kadri and Stiassnie2013; Abdolali et al. Reference Abdolali, Kirby and Bellotti2015), density stratification (Auclair et al. Reference Auclair, Debreu, Emilie, Hilt, Marchesiello, Blayo, Dumas and Morel2021; Dubois et al. Reference Dubois, Imperiale, Mangeney, Bouchut and Sainte-Marie2023; Dumont et al. Reference Dumont, Auclair, Dumas, Stéphan and Debreu2024), water surface disturbance (Renzi & Dias Reference Renzi and Dias2014), etc. However, the effect of variable bathymetry is seldom captured.
In wave propagation problems with large horizontal and vertical scales, the seabed plays a pivotal role in the evolution of the wave field. Seabeds with non-uniform depth scatter waves, which can result in vastly different pressure signatures when compared with the uniform depth case. In reality, the ocean-floor topography consists of different features, such as trenches, oceanic plateaus, mid-ocean ridges, abyssal hills, seamounts and guyots, to name a few, which significantly scatter wave profiles. A limited number of works (mathematical models) in the literature address such variable bathymetry in a compressible fluid. For example, methods based on depth-integrated mild-slope equations (Sammarco et al. Reference Sammarco, Cecioni, Bellotti and Abdolali2013), Fourier-series expansion (Das & Meylan Reference Das and Meylan2023b ) and eigenfunction expansion (Das & Meylan Reference Das and Meylan2023a ), as well as step-type approximation (Das & Das Reference Das and Das2025; Pethiyagoda et al. Reference Pethiyagoda, Das and Meylan2026a ) methods are used to address a rigid but variable ocean-floor topography. With the growing interest in compressibility, the inclusion of bathymetry variation remains a challenging task, but overcoming this should yield improvements in modelling accuracy.
Static compression is inherent in the ocean due to the fluid column’s own weight and naturally introduces a density gradient across depth. The associated pressure variation is mathematically related to the sound speed (Lamb Reference Lamb1957). Accordingly, the modified equations of motion were developed (Bondi Reference Bondi1947) and were subsequently derived rigorously by Longuet-Higgins (Reference Longuet-Higgins1950), Miyoshi (Reference Miyoshi1954), and Sells (Reference Sells1965). Because static compression remains small compared with dynamic compression, despite being more pronounced at deeper ocean depths, the majority of earlier mathematical frameworks ignored it. Later, Abdolali & Kirby (Reference Abdolali and Kirby2017) demonstrated its impact on the gravity wave’s transformation over long propagation times. Part of the difficulty with static compression lies in the inherent mathematical complexity it introduces when developing an analytical solution. However, given the success in matching the Hunga Tonga–Hunga Ha‘apai volcanic eruption-induced tsunami data with a mathematical model incorporating static compression (Omira et al. Reference Omira, Ramalho, Kim, González, Kadri, Miranda, Carrilho and Baptista2022), its importance can no longer be ignored. To overcome the associated mathematical difficulty, the standard approach is to assume the speed of sound does not vary with depth, which is well accepted by the scientific community (Kadri & Stiassnie Reference Kadri and Stiassnie2013; Kadri Reference Kadri2015; Kadri Reference Kadri2016; Abdolali & Kirby Reference Abdolali and Kirby2017; Abdolali et al. Reference Abdolali, Kadri and Kirby2019). This assumption was later replaced by a variable-depth sound profile (correct up to third order) using the perturbation technique, which governs the motion of hydroacoustic waves (Michele & Renzi Reference Michele and Renzi2020). A more sophisticated technique involves linearising the compressible Euler equation using a novel Lagrangian method by Dubois et al. (Reference Dubois, Imperiale, Mangeney, Bouchut and Sainte-Marie2023), which the authors claim is a more general approach from which other models in the literature can be derived. While these developments have improved the modelling of wave propagation, tackling wave scattering, which is natural in transoceanic tsunami propagation, remains a challenging task. This is achieved by Das & Meylan (Reference Das and Meylan2023a ) for a time-dependent motion generated by an impulsive forcing from the seafloor. This method was successfully implemented to tackle step-type, trench-type and arbitrary bathymetry profiles (Das et al. Reference Das, Pethiyagoda and Meylan2024; Das & Meylan Reference Das and Meylan2024; Pethiyagoda et al. Reference Pethiyagoda, Das and Meylan2024b , Reference Pethiyagoda, Das and Meylan2026a ) and surface disturbance-induced wave propagation models to investigate phenomena such as volcanic eruptions and rogue waves (Pethiyagoda et al. Reference Pethiyagoda, Das, Bonham and Meylan2024a , Reference Pethiyagoda, Das and Meylan2025). This technique can readily be augmented to incorporate the effects of the seafloor softness (Eyov et al. Reference Eyov, Klar, Kadri and Stiassnie2013; Abdolali et al. Reference Abdolali, Kadri and Kirby2019; Kadri Reference Kadri2019; Williams & Kadri Reference Williams and Kadri2023) and a non-constant sound-speed vertical profile (Michele & Renzi Reference Michele and Renzi2020).
While the application of generalised eigenfunction expansions and spectral theory in compressible water wave scattering is a recent approach (Pethiyagoda et al. Reference Pethiyagoda, Das, Wilks and Meylan2026b
), the fundamental theory stems from casting energy-conserving linear wave problems as
$\partial _t^2 u+\mathcal{L}u=0$
, with
$\mathcal{L}$
being a positive self-adjoint operator on a Hilbert space
$(\mathcal{H},\langle \boldsymbol{\cdot },\boldsymbol{\cdot }\rangle )$
and
$u$
is the unknown variable. The canonical case involves
$\mathcal{L}=-c^2\partial _x^2$
, where
$c$
is the wave speed, leading to the classical wave equation. The natural Hilbert space for studying this problem is
$L^2(\mathbb{R})$
. The theory of generalised eigenfunction expansions for problems of this nature was first established to solve the Schrödinger equation in quantum mechanics (Povzner Reference Povzner1953; Ikebe Reference Ikebe1960). This theory generalises Fourier/Sturm–Liouville theory, which applies when
$\mathcal{L}$
has a discrete spectrum, to cases where the spectrum is continuous. Later, the theory was further translated into classical mechanics (Wilcox Reference Wilcox1975), then into incompressible hydrodynamics (Hazard & Loret Reference Hazard and Loret2007; Hazard & Meylan Reference Hazard and Meylan2008; Meylan Reference Meylan2009; Meylan & Eatock Taylor Reference Meylan and Eatock Taylor2009). The numerical implementation of the method was described in more detail by Wilks et al. (Reference Wilks, Meylan, Montiel and Wakes2024, Reference Wilks, Meylan, Montiel and Wakes2025). Recently, Pethiyagoda et al. (Reference Pethiyagoda, Das, Wilks and Meylan2026b
) extended the method to generalised eigenfunctions and spectral solutions for continuous spectra to study the underwater pressure-source-induced linear initial-value problem associated with wave propagation.
In this work, we consider the linear initial-value problem for an underwater pressure source, accounting for the free surface, the effects of static compression and incorporating a piecewise-constant ocean-floor topography which remains constant outside a bounded region. The problem is assumed invariant in one horizontal dimension, reducing it to a two-dimensional domain. As in the treatment of the constant-depth version of this problem by Pethiyagoda et al. (Reference Pethiyagoda, Das, Wilks and Meylan2026b ), our generalised eigenfunction expansion methodology relies on a special Hilbert space with an energy inner product. This work, therefore, builds on the work of Pethiyagoda et al. (Reference Pethiyagoda, Das, Wilks and Meylan2026b ) but represents a significant advance in the following ways:
-
(i) In the constant-depth setting considered by Pethiyagoda et al. (Reference Pethiyagoda, Das, Wilks and Meylan2026b ), the generalised eigenfunctions depended on the horizontal dimension
$x$
simply as
$\textrm{e}^{\textrm{i} k x}$
, where
$k$
is the wavenumber. The spectral expansion obtained was therefore a close generalisation of the one-dimensional Fourier transform that accounted for dispersion and multiple propagating acoustic-gravity modes. In contrast, the generalised eigenfunctions to be found in the variable bathymetry setting must account for scattering by the seabed, which needs to be solved for numerically. This is done by matching expansions of vertical eigenfunctions between adjacent regions of constant depth. -
(ii) An important consequence of introducing variable depth is that trapped modes can occur. These are finite-energy oscillations which remain localised over time, that mathematically represent a point spectrum embedded in the continuous spectrum. These modes do not arise in the constant-depth formulation of Pethiyagoda et al. (Reference Pethiyagoda, Das, Wilks and Meylan2026b ), and moreover, have not previously been addressed in the literature on generalised eigenfunction expansion methods for water wave problems. The expansion of the solution over the spectrum of the time-domain operator now consists of a continuous spectrum of single-frequency scattering solutions (analogous to the solution of Pethiyagoda et al. Reference Pethiyagoda, Das, Wilks and Meylan2026b ) plus possibly a discrete spectrum of trapped modes, which considerably complicates both the theoretical formulation and its numerical implementation. The treatment of trapped modes therefore represents a significant source of novelty in the present work.
The outline of this paper is as follows. In § 2, we present a mathematical formulation of the physical problem. Section 3 presents the solution method. The numerical schemes for (i) solving the frequency-domain problem, which are equivalent to the eigenfunctions of the operator
$\mathcal{L}$
, and (ii) determining the transient motion by projecting onto these eigenfunctions, are given in § 4, and time-domain simulations illustrating the motion are given in § 5. The manuscript concludes with a brief summary in § 6.
2. Mathematical formulation
We consider the problem of linear compressible water wave propagation and scattering with variable topography, in which the dynamics and bathymetry profile are assumed to be transversely invariant in one horizontal dimension, resulting in a two-dimensional coordinate system
$(x,z)$
, where
$x$
is the horizontal coordinate and
$z$
points vertically upward. The fluid is vertically bounded above by a free surface, which is situated at
$z=0$
at equilibrium, and vertically below by the arbitrary bathymetry profile, which is approximated with step-type topography (figure 1) at the locations
$x=l_i (i=0,1,\dots ,m_1)$
, with
$l_0= -\infty$
and
$l_{m_1}=\infty$
and local constant ocean depth
$h_i$
in the region
$(l_{i-1},\,l_i)$
(say region
$\mathcal{R}_i$
). The water is considered inviscid and the motion is irrotational, leading to the existence of a time-dependent velocity potential
$\varPhi (x,z,t)$
throughout the fluid domain such that
$\boldsymbol{\nabla }\varPhi (x,z,t)=(u(x,z,t),\,v(x,z,t))$
where
$u(x,z,t)$
and
$v(x,z,t)$
are the fluid velocities in the
$x$
and
$z$
directions, respectively.
Schematic diagram of the physical problem showing wave propagation in a compressible ocean (without including static compression) due to an underwater explosion (red star). Pressure waves generated by the explosion (red dashed lines) are reflected off the seabed and free surface (blue dashed lines) and induce propagating waves on the fluid surface (solid red lines). The variation in bathymetry is limited to the finite region (
$l_1,l_{m_1-1}$
), outside of which the ocean depth remains constant, i.e. it is constant over
$(l_0,l_1)$
and
$(l_{m_1-1},l_{m_1})$
, where
$l_0=-\infty$
and
$l_{m_1}=+\infty$
.

The governing equations are given by
subject to the initial conditions
where the subscripts of
$\varPhi$
indicate partial differentiation,
$\varPhi _n$
is the normal derivative of
$\varPhi$
with respect to the bottom
$\partial \varOmega _b$
,
$c$
is the speed of sound in the fluid,
$g$
is acceleration due to gravity,
$\rho$
is the density of the fluid, and
$\varPhi_0$
and
$P_0$
are the initial potential and hydrodynamic pressure in the fluid, respectively. The derivation of (2.1a
) is detailed in Pethiyagoda et al. (Reference Pethiyagoda, Das, Wilks and Meylan2026b
).
The governing equations can be separated into regions
where
$i=1,2,\dots ,m_1$
. The matching conditions at the interfaces where depth change occurs are specified as
where
$h_{i,m}=\text{min} (h_i,\,h_{i+1})$
, along with the no-flux condition
where
$h_{i,M}=\text{max} (h_i,\,h_{i+1})$
.
3. Solution technique
3.1. Separation of variables
We begin by seeking single-frequency solutions to (2.2), which are of the form
$\varPhi ^{(i)}(x,z,t)=\text{Re} (\phi ^{(i)}(x,z)\textrm{e}^{-\textrm{i}\omega t})$
, where
$\omega$
is the angular frequency and
$\phi ^{(i)}$
satisfies
Due to the rectangular geometry of each region, the solutions to the above are obtainable using separation of variables (as done by Pethiyagoda et al. Reference Pethiyagoda, Das and Meylan2026a
). To proceed, we suppose that
$\phi ^{(i)}(x,z)=X(x)Z(z)$
and substitute this ansatz into (3.1), yielding
where
$k^{(i)}$
describes the local horizontal wavenumber. Equations (3.2b
)–(3.2d
) form a Sturm–Liouville problem, of which the solutions are expressed as (following Das & Meylan Reference Das and Meylan2023a
)
\begin{align} Z(z)=f^{(i)}(z;\mu )=&\frac {\displaystyle \text{e}^{(\gamma z/2)}\left ( \frac {\gamma }{2\mu }\sinh {\mu (z+h_i)}-\cosh {\mu (z+h_i)} \right )}{\frac {\gamma }{2\mu }\sinh {( \mu h_i)}-\cosh {(\mu h_i)}}, \end{align}
where
$\gamma =g/c^2$
quantifies the influence of static compression and
$\mu$
satisfies
\begin{align} \frac {\omega ^2}{g}=\mu \frac {\displaystyle \left [1- \left ( \frac {\gamma }{2\mu } \right )^2 \right ]\tanh {\mu h_i}}{\displaystyle 1-\left (\frac { \gamma }{2\mu } \right )\tanh {\mu h_i}}. \end{align}
The above expression has countably infinite roots, which we denote
$\mu ^{(i)}_n(\omega )$
, or simply
$\mu ^{(i)}_n$
if the angular frequency is implied by context. The local horizontal wavenumbers
$k^{(i)}_n(\omega )$
are then recovered by
where we take
$k^{(i)}_n$
as either a negative real number (indicating a local propagating mode) or a purely imaginary number with a positive imaginary component (indicating a local evanescent mode).
Finally, separation of variables yields the following series solutions:
\begin{align} \phi ^{(i)}(x,z)&=\sum _{n=0}^{\infty } \left \{b_{i,n}\text{e}^{\textrm {i}k_n^{(i)} (x-l_{i-1})} + c_{i,n}\text{e}^{-\textrm {i}k_n^{(i)} (x-l_i)} \right \}f_n^{(i)}(z), \end{align}
where we have written
$f_n^{(i)}(z)=f^{(i)}(z;\mu _n^{(i)})$
for brevity,
$l_{0}=l_{1}$
and
$l_{m_1}=l_{m_1-1}$
.
3.2. Eigenfunction matching
Applying the matching condition (2.3) and taking the appropriate inner products in the
$z$
-direction, we construct a component of the full system of equations as
\begin{equation} \left [\begin{matrix} N_{i1} & N_{i2} & N_{i3} & N_{i4}\\ N_{i5} & N_{i6} & N_{i7} & N_{i8} \end{matrix}\right ] \left [\begin{matrix} B_{i} \\C_{i}\\B_{i+1} \\C_{i+1} \end{matrix}\right ] = \left [\begin{matrix} \textbf {0}\\ \textbf {0} \end{matrix}\right ], \end{equation}
where
$B_{i}=[b_0^{(i)},b_{1}^{(i)},\dots , b_{N}^{(i)}]^T$
,
$C_{i}=[c_{0}^{(i)},c_{1}^{(i)},\dots ,c_{N}^{(i)}]^T$
and
$N_{ij}$
are given in Appendix A. We note that
$b_{j}^{(1)}$
and
$c_{j}^{(m_1)}$
are known, where one is unity and the rest are zero to indicate a single incoming wave. Therefore, combining the equations for every interface matching gives
where
\begin{align} \mathcal{M}(\omega )=&\left [\begin{array}{cccccccccccc} N_{1\,2} & N_{1\,3} & N_{1\,4} & {\cdots} & 0_A & 0_A & 0_A & 0_A & {\cdots} & 0_A & 0_A & 0_A\\ N_{1\,6} & N_{1\,7} & N_{1\,8} & {\cdots} & 0_A & 0_A & 0_A & 0_A & {\cdots} & 0_A & 0_A & 0_A\\ \vdots & \vdots & \vdots & \ddots & \vdots & \vdots & \vdots & \vdots & \ddots & \vdots & \vdots & \vdots \\ 0_A & 0_A & 0_A & {\cdots} & N_{i1} & N_{i2} & N_{i3} & N_{i4} & {\cdots} & 0_A & 0_A & 0_A\\ 0_A & 0_A & 0_A & {\cdots} & N_{i5} & N_{i6} & N_{i7} & N_{i8} & {\cdots} & 0_A & 0_A & 0_A\\ \vdots & \vdots & \vdots & \ddots & \vdots & \vdots & \vdots & \vdots & \ddots & \vdots & \vdots & \vdots \\ 0_A & 0_A & 0_A & {\cdots} & 0_A & 0_A & 0_A & 0_A & {\cdots} & N_{m_1-1\,1} & N_{m_1-1\,2} & N_{m_1-1\,3} \\ 0_A & 0_A & 0_A & {\cdots} & 0_A & 0_A & 0_A & 0_A & {\cdots} & N_{m_1-1\,5} & N_{m_1-1\,6} & N_{m_1-1\,7} \end{array}\right ]\!, \end{align}
with
$\boldsymbol {x}= [C_{1},B_{2},C_{2},{\cdots} ,B_{i},C_{i},B_{i+1},C_{i+1},{\cdots} ,B_{m_1-1},C_{m_1-1},B_{m_1} ]^{T}$
and where
$\boldsymbol {d}$
is a column of the matrix
\begin{equation} \left [\begin{array}{cc} -N_{1\,1} & 0_A\\ -N_{1\,5} & 0_A\\ \vdots & \vdots \\ 0_A & 0_A\\ 0_A & 0_A\\ \vdots & \vdots \\ 0_A & -N_{m_1-1\,4} \\ 0_A & -N_{m_1-1\,8} \end{array}\right ]\!, \end{equation}
where the choice of column indicates which of
$b_{j}^{(1)}$
and
$c_{j}^{(m_1)}$
has been set to unity.
For an incoming wave of mode
$n$
with a given wavenumber
$k$
, that is
$b_{n}^{(1)}=1$
and
$b_{j}^{(1)}=c_{j}^{(m_1)}=c_{n}^{(m_1)}=0$
with
$j\neq n$
for a right incident wave and
$c_{n}^{(m_1)}=1$
and
$b_{j}^{(1)}=c_{j}^{(m_1)}=c_{n}^{(m_1)}=0$
with
$j\neq n$
for a left incident wave, we can calculate the frequency by rearranging (3.4) and (3.5)
where the
$\pm$
indicates a right (
$+$
) or left (
$-$
) incident wave, and
$\mu ^{(i)}_n(k)$
is now
\begin{align} \frac {c^2}{g}\left (k^2+\left (\frac {\gamma }{2}\right )^2-\big(\mu ^{(i)}_n\big)^2\right )=\mu ^{(i)}_n \frac {\displaystyle \left [1- \left ( \frac {\gamma }{2\mu ^{(i)}_n} \right )^2 \right ]\tanh {\mu ^{(i)}_n h_i}}{\displaystyle 1-\left (\frac { \gamma }{2\mu ^{(i)}_n} \right )\tanh {\mu ^{(i)}_n h_i}}\quad \mbox{for }i=1,m_1. \end{align}
After solving (3.8) for
$\omega =\omega _n^\pm$
, we can write down the single-frequency scattering solutions as
\begin{align} \phi _n^+(x,z;k)&=\begin{cases} \displaystyle \text{e}^{\textrm {i}k(x-x_1)}f_n^{(1)}(z)+\sum _{j=0}^\infty c_{jn}^{(1)+}\text{e}^{-\textrm {i}k_{jn}^{(1)+}(x-x_1)}f_{jn}^{(1)+}(z),&x\lt x_1,\nonumber\\ \displaystyle \sum _{j=0}^\infty \left [b_{jn}^{(i)+}\text{e}^{\textrm {i}k_{jn}^{(i)+}(x-x_{i-1})}+c_{jn}^{(i)+}\text{e}^{-\textrm {i}k_{jn}^{(i)+}(x-x_i)}\right ]f_{jn}^{(i)+}(z),&x_{i-1}\lt x\lt x_{i},\nonumber\\ \displaystyle \sum _{j=0}^\infty b_{jn}^{(m_1)+}\text{e}^{\textrm {i}k_{jn}^{(m_1)+}(x-x_{m_1-1})}f_{jn}^{(m_1)+}(z),&x_{m_1-1}\lt x, \end{cases} \end{align}
\begin{align} \phi _n^-(x,z;k)&=\begin{cases} \displaystyle \sum _{j=0}^\infty c_{jn}^{(1)-}\text{e}^{-\textrm {i}k_{jn}^{(1)-}(x-x_1)}f_{jn}^{(1)-}(z),&x\lt x_1,\nonumber\\ \displaystyle \sum _{j=0}^\infty \left [b_{jn}^{(i)-}\text{e}^{\textrm {i}k_{jn}^{(i)-}(x-x_{i-1})}+c_{jn}^{(i)-}\text{e}^{-\textrm {i}k_{jn}^{(i)-}(x-x_i)}\right ]f_{jn}^{(i)-}(z),&x_{i-1}\lt x\lt x_{i},\nonumber\\ \displaystyle \text{e}^{-\textrm {i}k(x-x_{m_1-1})}f_n^{(m_1)}(z)+\sum _{j=0}^\infty b_{jn}^{(m_1)-}\text{e}^{\textrm {i}k_{jn}^{(m_1)-}(x-x_{m_1-1})}f_{jn}^{(m_1)-}(z),&x_{m_1-1}\lt x, \end{cases} \end{align}
where
$k_{jn}^{(i)\pm }=k_j^{(i)}(\omega _n^\pm )$
,
$f_{jn}^{(i)\pm }(z)=f^{(i)}(z;\mu _{jn}^{(i)\pm })$
and
$\mu _{jn}^{(i)\pm }=\mu _j^{(i)}(\omega _n^\pm )$
. We note that
$k_{jn}^{(1)+}$
and
$k_{jn}^{(m_1)-}$
are real for
$j\leqslant n$
(indicating propagating modes) and purely imaginary for
$j\gt n$
(indicating evanescent modes). All other wavenumbers
$k_{jn}^{(i)\pm }$
similarly switch between propagating and evanescent modes as
$j$
increases, where the particular index
$j$
when the switch occurs depends on the relative depths between
$h_i$
and
$h_1$
or
$h_{m_1}$
for
$k_{jn}^{(i)+}$
and
$k_{jn}^{(i)-}$
, respectively.
3.3. Trapped modes
The functions
$\phi _n^\pm (x,z;k)$
are eigenfunctions of the continuous spectrum, but there may also exist a point spectrum embedded in the continuous spectrum. The eigenfunctions corresponding to the point spectrum are known as trapped modes (while the term bound modes is used for the eigenfunction associated with point spectrum not embedded in the continuous spectrum). The point spectrum is associated with the operator not being invertible. It can be found numerically by finding points where the finite approximation of the operator is singular, but care needs to be taken. They are common in wave scattering problems, although not ubiquitous. For the incompressible case, the first example of trapped modes in a problem containing a free surface was found by McIver (Reference McIver1996) (see also Callan et al. Reference Callan, Linton and Evans1991; Pagneux Reference Pagneux2013 for examples in waveguides). Numerically, trapped modes exist when
${det}(\mathcal{M}(\omega ))=0$
, which will only occur in the range
where
$k_1^{(i)}(\omega _1^{(i)})=0$
. The range (3.16) covers frequencies for which there are propagating acoustic modes within the domain but no propagating acoustic modes in the outer regions, that is, there is energy trapped within the domain. If there are
$N_b$
trapped modes where
$\textrm{det}(\mathcal{M}(\omega _q^\bullet ))=0$
, where
$\omega _q^\bullet$
is the frequency of the trapped mode, the trapped modes can be expressed as
\begin{equation} \phi _q^\bullet (x,z)=\begin{cases} \displaystyle \sum _{j=0}^\infty c_{jq}^{(1)\bullet }\text{e}^{-\textrm {i}k_{jq}^{(1)\bullet }(x-x_1)}f_{jq}^{(1)\bullet }(z),&\text{when }x\lt x_1,\\ \displaystyle \sum _{j=0}^\infty \left [b_{jq}^{(i)\bullet }\text{e}^{\textrm {i}k_{jq}^{(i)\bullet }(x-x_{i-1})}+c_{jq}^{(i)\bullet }\text{e}^{-\textrm {i}k_{jq}^{(i)\bullet }(x-x_i)}\right ]f_{jq}^{(i)\bullet }(z),&\text{when }x_{i-1}\lt x\lt x_{i}\\ \displaystyle \sum _{j=0}^\infty b_{jq}^{(m_1)\bullet }\text{e}^{\textrm {i}k_{jq}^{(m_1)\bullet }(x-x_{m_1-1})}f_{jq}^{(m_1)\bullet }(z),&\text{when }x_{m_1-1}\lt x, \end{cases} \end{equation}
for
$q=1,\ldots ,N_b$
, where
$k_{jq}^{(i)\bullet }$
and
$f_{jq}^{(i)\bullet }(z)$
are the wavenumbers and depth-dependent functions associated with the trapped mode frequency
$\omega _q^\bullet$
. The coefficients
$b_{jq}^{(i)\bullet }$
and
$c_{jq}^{(i)\bullet }$
are taken from the single basis vector of the null space of
$\mathcal{M}(\omega _q^\bullet )$
. The numerical implementation of this will be discussed in § 4.
3.4. Spectral representation of the time-domain solution
Now that we have a complete space, we can write our full solution in the time domain by summing over all
$N_b$
trapped modes, integrating over all incoming wavenumbers
$k$
and summing the integrals over every incoming mode, giving
\begin{align} \varPhi (x,z,t) = & \sum _{q=1}^{N_b}\left (\mathcal{A}_q\phi _q^\bullet \cos \omega _q^\bullet t+\mathcal{B}_q\phi _q^\bullet \frac {\sin \omega _q^\bullet t}{\omega _q^\bullet }\right )\nonumber\\ &+\sum _{n=0}^{\infty }\int _{0}^\infty \mathcal{C}_n\phi _n^-\cos (\omega ^-_n t)+ \mathcal{D}_n\phi _n^+\cos (\omega ^+_n t)\,\textrm {d}k\nonumber\\ &+\sum _{n=0}^{\infty }\int _{0}^\infty \mathcal{E}_n\phi _n^- \frac {\sin (\omega ^-_n t)}{\omega ^-_n}+ \mathcal{F}_n\phi _n^+ \frac {\sin (\omega ^+_n t)}{\omega ^+_n}\,\textrm {d}k, \end{align}
where the unknown coefficients
$\mathcal{A}_q$
and
$\mathcal{B}_q$
and unknown coefficient functions
$\mathcal{C}_n$
,
$\mathcal{D}_n$
,
$\mathcal{E}_n$
and
$\mathcal{F}_n$
must be determined by applying the initial conditions. To do this, we introduce the Hilbert space
$\mathcal{H}_{\mathcal{E}}$
to be the closure of
$\{f:\varOmega \to \mathbb{C}|\langle f,f\rangle _{\mathcal{E}}\text{ exists and is finite}\}$
, under the induced norm, where the associated inner product, which was introduced in Pethiyagoda et al. (Reference Pethiyagoda, Das, Wilks and Meylan2026b
), is defined as
where the overline denotes the complex conjugate. The subscript
$\mathcal{E}$
represents energy in the sense that
$\langle \varPhi ,\varPhi \rangle _{\mathcal{E}}$
is proportional to the potential energy of the system. In particular, the first integral over the bulk is proportional to potential energy due to compression within the fluid, whereas the second term is proportional to the gravitational potential energy due to elevation or depression of the free surface. In previous applications of this methodology to incompressible fluids, only gravitational potential energy exists, meaning the inner product was over the free surface only (e.g. Meylan Reference Meylan2009). We note that our eigenfunctions are orthogonal to each other under precisely this inner product, which allows us to project the initial conditions (2.1e
) onto the eigenfunctions. Therefore, our solution is
\begin{align} \varPhi (x,z,t) = & \sum _{q=1}^{N_b}\left (\frac {\langle \varPhi _0(x,z),\phi _q^\bullet \rangle _{\mathcal{E}}}{\langle \phi _q^\bullet ,\phi _q^\bullet \rangle _{\mathcal{E}}}\phi _q^\bullet \cos \omega _q^\bullet t-\frac {\langle P_0(x,z),\phi _q^\bullet \rangle _{\mathcal{E}}}{\rho \langle \phi _q^\bullet ,\phi _q^\bullet \rangle _{\mathcal{E}}}\phi _q^\bullet \frac {\sin \omega _q^\bullet t}{\omega _q^\bullet }\right )\nonumber\\ &+\sum _{n=0}^{\infty }\int _{0}^\infty\! \frac {\langle \varPhi _0(x,z),\phi _n^-\rangle _{\mathcal{E}}}{D^-_n} \phi _n^-\cos (\omega ^-_n t)+\frac {\langle \varPhi _0(x,z),\phi _n^+\rangle _{\mathcal{E}}}{D^+_n} \phi _n^+\cos (\omega ^+_n t)\,\textrm {d}k\nonumber\\ &-\frac {1}{\rho }\sum _{n=0}^{\infty }\int _{0}^\infty\!\! \frac {\langle P_0(x,z),\phi _n^-\rangle _{\mathcal{E}}}{D^-_n}\phi _n^- \frac {\sin (\omega ^-_n t)}{\omega ^-_n}+\frac {\langle P_0(x,z),\phi _n^+\rangle _{\mathcal{E}}}{D^+_n}\phi _n^+ \frac {\sin (\omega ^+_n t)}{\omega ^+_n}\,\textrm {d}k, \end{align}
where
$D_n^\pm$
are the normalisation coefficients given by
where
\begin{align} &\partial _k\mu _n^{(i)}=\frac {\displaystyle 2\frac {c^2}{g}\left (1-\frac {\gamma }{2}\frac {\tanh {\mu _n^{(i)} h_i}}{\mu _n^{(i)}}\right )k}{\mathcal{G}_1(\mu _n^{(i)},k)\tanh {\mu _n^{(i)} h_i} + \mathcal{G}_2(\mu ^{(i)}_n,k) \textrm{sech}^2{\mu ^{(i)}_n h_i}+2\dfrac {c^2}{g}\mu _n^{(i)}},\\ \mbox{with }& \mathcal{G}_1(\mu _n^{(i)},k)= \left (1-\frac {\gamma c^2}{2g}\right ) +\left ( \frac {\gamma }{2\mu _n^{(i)}}\right )^2-\frac {\gamma c^2}{2g} \left (\left (\frac {k}{\mu _n^{(i)}}\right )^2+\left (\frac {\gamma }{2\mu _n^{(i)}}\right )^2 \right ),\nonumber \\ &\mathcal{G}_2(\mu _n^{(i)},k) = \mu _n^{(i)}h_i\left [1- \left ( \frac {\gamma }{2\mu _n^{(i)}}\right )^2 +\frac {\gamma c^2}{2g}\left (\left (\frac {k}{\mu _n^{(i)}}\right )^2+\left (\frac {\gamma }{2\mu _n^{(i)}}\right )^2-1\right ) \right ].\nonumber \\[10pt] \nonumber \end{align}
We note that the left and right incoming waves have different normalisation constants because the incoming wave energy depends on the far-field depths
$h_1$
and
$h_{m_1}$
.
Finally, the dynamic pressure and free-surface height are given by
respectively.
4. Numerical scheme
When evaluating (3.20), (3.24a
), or (3.24b
), the infinite sum must be truncated at
$N$
modes, and the integrals must be truncated at some
$k_{\textit{max}}$
. The choice of
$N$
and
$k_{\textit{max}}$
depends heavily on the initial conditions and will be reported in § 5. Additionally, care must be taken when identifying the trapped modes and discretising the
$k$
-integrals to ensure that the full behaviour of the solution is captured.
4.1. Finding trapped modes
The coefficient matrix
$\mathcal{M}(\omega )$
is complex, and therefore
$\textrm{det}(\mathcal{M}(\omega ))=0$
for
$\omega \in \mathbb{R}$
, which is the criterion for a trapped mode, is unlikely to ever be true numerically. This differs from prior work (see Callan et al. Reference Callan, Linton and Evans1991 for example) where the constructed coefficient matrix was real valued, and hence it was possible to approach the problem by searching for locations where the determinant changes sign. We instead take advantage of the fact that trapped modes have no waves propagating out of the domain, that is
$c_{jq}^{(1)\bullet }=0$
and
$b_{jq}^{(m_1)\bullet }=0$
when
$\textrm{Im}(k_{jq}^{(1)\bullet })\neq 0$
and
$\textrm{Im}(k_{jq}^{(m_1)\bullet })\neq 0$
, respectively. We construct the reduced matrix
$\hat {\mathcal{M}}(\omega )$
by removing columns of
$\mathcal{M}(\omega )$
corresponding to when
$c_{jq}^{(1)\bullet }=0$
and
$b_{jq}^{(m_1)\bullet }=0$
. We consider the smallest singular value squared,
$\sigma ^2_{\textit{min}}$
, of
$\hat {\mathcal{M}}(\omega )$
as a function of
$\omega$
. The trapped modes
$\omega _q^\bullet$
are taken as local minima of
$\sigma ^2_{\textit{min}}(\omega )$
, where
$\sigma ^2_{\textit{min}}(\omega _q^\bullet )\lt \mathtt {tol}^\bullet$
for some tolerance. In this paper, we take
$\mathtt {tol}^\bullet =10^{-10}$
. The unknown coefficients
$b_{jq}^{(i)\bullet }$
and
$c_{jq}^{(i)\bullet }$
are then recovered from the right-singular vector associated with the smallest singular value of the matrix
$\hat {\mathcal{M}}(\omega _q^\bullet )$
. There is no way in our numerical scheme to distinguish truly trapped modes from near-trapped modes. Of course, because of our very small tolerance, the near-trapped mode would have such slow decay that it would not show up in our numerical calculations, and the two cases would be indistinguishable.
4.2. Integral discretisation
Care must be taken when evaluating the
$k$
-integrals in (3.20) as the integrands are highly oscillatory and can exhibit localised spike behaviour when the system is near resonance. Note that the spikes become sharper and narrower as the resonance becomes stronger. In the limit when the resonance becomes a trapped mode, the spikes disappear, but the trapped mode contribution must be calculated separately. The infinite sums are truncated at
$N$
modes, and each remaining integral in (3.20) is discretised separately. Beginning with some uniform mesh, we locate every
$k=k_0$
for which the modulus of the smallest eigenvalue of
$\mathcal{M}(\omega _n^\pm )$
, say
$|\lambda _1|$
, has a local minimum below some tolerance (taken as
$10^{-4}$
in this paper). We then add additional discretisation points in the range
$k\in [k_0-|\lambda _1|,k_0+|\lambda _1|]$
to better capture the spike behaviour. We then take this initial mesh and refine it using the algorithm presented in the appendix of Pethiyagoda et al. (Reference Pethiyagoda, Das and Meylan2024b
), where
$\phi _n^\pm (x_0,z_0)\text{e}^{-\textrm {i}\omega _n^\pm t_0}$
is evaluated on the initial mesh and new discretisation points are added if the function varies too rapidly. Here,
$(x_0,z_0)$
is some point in the domain and
$t_0$
is the maximum intended simulation time.
5. Results
We will present solutions for an underwater explosion modelled by an initial Gaussian pressure distribution in a stationary fluid. That is,
Compression waves caused by an initial Gaussian pressure distribution centred at
$(0,-3000)$
, within a trench of depth and width of
$4$
km, with a far-field depth of
$500$
m. Movie
$1$
shows the full animation.

where
$\hat {P}$
is the maximum pressure,
$(x_c,z_c)$
is the centre of the pressure distribution and
$\sigma$
is the characteristic width of the pressure. For the following results, we choose
$\hat {P}=10^6$
Pa,
$(x_c,z_c)=(0,-3000)$
m,
$g=9.81$
m s
$^{-2}$
,
$c=1450$
m s−1 and
$\sigma =400$
m. The numerical truncation parameters are
$N=60$
and
$k_{\textit{max}}=0.06$
. A convergence test of these truncation parameters is given in Appendix B. We also note that, for all results in this paper, the condition number of the matrix
$\mathcal{M}$
did not rise above
$O(10^9)$
for the domain of integration and increasing
$N$
did not significantly affect the condition number; this is an acceptable level of accuracy for this study.
Dynamic pressure due to the trapped modes of a Gaussian pressure distribution centred at
$(0,-3000)$
, within a trench of depth and width of
$4$
km, with a far-field depth of
$500$
m. The panels are in chronological order, read top to bottom, then left to right, where the time difference between each panel is
$0.7628$
s. Here,
$t_\infty$
is used to indicate that these pressures are from a long-time solution where all non-trapped modes have decayed to zero. The figure covers one period of the lowest-frequency trapped mode. Movie
$2$
shows the full animation.

Figure 3. Long description
A 5 by 3 grid of 15 heat maps, each showing the trapped mode dynamic pressure at equally spaced time steps over a 10.6792 s period. The x-axis ranges from −3 to 3 kilometres, and the z-axis ranges from −4 to 0 kilometres. The colour scale indicates pressure in Pascals, with yellow representing higher pressure and blue representing lower pressure. The pressure pattern changes noticeably at each time step.
The case we consider is an initial Gaussian within a trench of depth and width of
$4$
km, with the far-field depth at
$x\to \pm \infty$
being
$h_1=h_{m_1}=500$
m. We can clearly see in figure 2 that the pressure wave propagates away from its initial location before reflecting off of the trench walls and free surface, where the reflection off of the surface results in a phase change, as observed by Pethiyagoda et al. (Reference Pethiyagoda, Das and Meylan2026b
). Movie
$1$
shows a full simulation video. Our numerical method identifies
$N_b=15$
trapped modes for this particular seabed profile. By plotting only the trapped mode contribution, we can visualise the long-time solution to the problem as all integral contributions in the expansion (3.20) will decay like
$O(1/t)$
as
$t\rightarrow \infty$
following standard asymptotic theory (Stein & Murphy Reference Stein and Murphy1993). Figure 3 presents snapshots of the dynamic pressure for one period of the lowest-frequency trapped mode. Movie
$2$
shows a full simulation. The maximum absolute value of the trapped pressure is roughly 1 % of the maximum initial pressure for the dimensions of this trench. Naturally, different trench sizes (width and depth) will have a different number of calculated trapped modes and produce different patterns.
Compression waves caused by an initial Gaussian pressure distribution centred at
$(0,-3000)$
, within an asymmetric trench of maximum depth of
$4$
km, with a left far-field depth of
$2000$
m and right far-field depth of
$500$
m. Movie
$3$
shows the full animation.

We have also presented solutions of a more complicated asymmetric trench (figure 4). The asymmetric trench has a left far-field depth of
$2000$
m and a right far-field depth of
$500$
m with intermediate steps between the deepest part of the trench and the edges. The time-domain solutions show the same qualitative behaviour as the symmetric trench case, with the pressure wave reflecting off of the seabed and free surface. Computationally, the added complexity of the bathymetry results in a roughly fourfold increase in runtime over the symmetric trench example due to the increased size of the linear system needed to match all the interfaces and the loss of symmetry requiring separate coefficient matrices for left and right incident waves. The full animation is provided as Movie
$3$
a in the supplementary materials. Due to the relatively deep left far-field depth
$h_1$
, this solution only has two trapped modes, resulting in a simple long-time behaviour. Movie
$3$
b, of the time-dependent pressure fields associated with the trapped modes, is provided in the supplementary materials.
6. Discussion and conclusion
In this paper, we have considered the linear initial-value problem for the evolution of pressure waves in a compressible fluid due to excitation by an underwater disturbance, in a domain with arbitrary piecewise-constant bathymetry and a free surface. The solution is obtained as an expansion over the eigenmodes of the time evolution operator (i.e. the generalised eigenfunction expansion method) in which the continuous spectrum consists of scattering solutions for a single-frequency incident wave, which we solve using the eigenfunction matching method. For trenches, the spectrum also contains a finite number of trapped modes (which do not occur when this problem is studied for constant depth, as considered by Pethiyagoda et al. Reference Pethiyagoda, Das, Wilks and Meylan2026b ) which appear as the discrete spectrum. We remark that the existence of trapped modes for the geometries considered here is a novel finding and contrasts with the incompressible-fluid case, in which trapped modes occur only for very special geometries (McIver Reference McIver1996). We emphasise that the existence of these trapped modes does not itself imply an instability: within the present conservative linear formulation, they correspond to spatially localised oscillatory modes rather than temporally growing solutions. We have proposed a numerical scheme to identify and account for the contribution from the trapped modes, which leverages the matrix from the eigenfunction matching method. By visualising the time-domain solution, we were able to observe how the internal pressure waves propagate and reflect off of the rigid bathymetry and the free surface, behaving similarly to prior constant-depth results of Pethiyagoda et al. (Reference Pethiyagoda, Das, Wilks and Meylan2026b ).
Future work could consider the extension of this problem to three spatial dimensions and to more general bathymetries, which is a logical next step towards building a practical model of AGW propagation for tsunami detection. To do so, the question of whether trapped modes persist in three dimensions would need to be addressed. Moreover, addressing this problem in three dimensions would significantly increase the computational cost of this method, although we do not expect this to be prohibitive on modern computer infrastructure.
Supplementary movies
Supplementary movies are available at https://doi.org/10.1017/jfm.2026.12362.
Funding
B.W. and M.H.M. are supported by the Australian Research Council’s Discovery Projects funding scheme (DP240102104).
Declaration of interests
The authors report no conflict of interest.
Data availability statement
Data sharing does not apply to this article, as no new data were created or analysed in this study. The computer code used to generate the solutions is available from the corresponding author upon reasonable request.
Appendix A. Matching condition sub-matrices
The
$(j,n)$
th element of each
$N_{i\kappa }$
is defined as
\begin{align} N_{i1}&=\left \{ \begin{matrix} \displaystyle \text{e}^{\textrm {i}k_n^{(i)}(l_i-l_{i-1})}\frac {\left \langle f^{(i)}_n,\, f^{(i+1)}_j \right \rangle _{c}^{h_{i,m}}}{\left \langle f^{(i+1)}_j,\, f^{(i+1)}_j\right \rangle _{c }^{h_{i,m}}}, & \mbox{when } h_{i+1}\lt h_i,\\ \text{e}^{ \textrm {i} k_j^{(i)}(l_i-l_{i-1})} \delta _{jn}, & \mbox{when } h_{i+1}\gt h_i, \end{matrix} \right .\\[-8pt] \nonumber \end{align}
\begin{align} N_{i2}&=\left \{ \begin{matrix} \displaystyle \frac {\left \langle f^{(i)}_n,\, f^{(i+1)}_j \right \rangle _{c}^{h_{i,m}}}{\left \langle f^{(i+1)}_j,\, f^{(i+1)}_j\right \rangle _{c }^{h_{i,m}}}, & \mbox{when } h_{i+1}\lt h_i,\\ \delta _{jn}, & \mbox{when } h_{i+1}\gt h_i, \end{matrix} \right . \\[-8pt] \nonumber \end{align}
\begin{align} N_{i3}&=\left \{ \begin{matrix} -\delta _{jn}, & \mbox{when } h_{i+1}\lt h_i,\\ \displaystyle -\frac {\left \langle f^{(i+1)}_n,\, f^{(i)}_j \right \rangle _{c}^{h_{i,m}}}{\left \langle f^{(i)}_j,\, f^{(i)}_j\right \rangle _{c }^{h_{i,m}}}, & \mbox{when } h_{i+1}\gt h_i, \end{matrix} \right . \\[-8pt] \nonumber\end{align}
\begin{align} N_{i4}&=\left \{ \begin{matrix} -\text{e}^{-\textrm {i} k_j^{(i+1)}(l_i-l_{i+1})}\delta _{jn}, & \mbox{when } h_{i+1}\lt h_i,\\ -\displaystyle \text{e}^{-\textrm {i}k_n^{(i+1)}(l_i-l_{i+1})} \frac {\left \langle f^{(i+1)}_n,\, f^{(i)}_j \right \rangle _{c}^{h_{i,m}}}{\left \langle f^{(i)}_j,\, f^{(i)}_j\right \rangle _{c }^{h_{i,m}}}, & \mbox{when } h_{i+1}\gt h_i, \end{matrix} \right . \\[-8pt] \nonumber\end{align}
\begin{align} N_{i5}&=\left \{ \begin{matrix} \text{e}^{ \textrm {i} k_j^{(i)}(l_i-l_{i-1})}\delta _{jn}, & \mbox{when } h_{i+1}\lt h_i,\\ \displaystyle \frac { k_n^{(i)}\text{e}^{\textrm {i}k_n^{(i)}(l_i-l_{i-1})}}{k_j^{(i+1)}} \frac {\left \langle f^{(i)}_n,\, f^{(i+1)}_j \right \rangle _{c}^{h_{i,M}}}{\left \langle f^{(i+1)}_j,\, f^{(i+1)}_j\right \rangle _{c }^{h_{i,M}}}, & \mbox{when } h_{i+1}\gt h_i, \end{matrix} \right . \\[-8pt] \nonumber\end{align}
\begin{align} N_{i6}&=\left \{ \begin{matrix} -\delta _{jn}, & \mbox{when } h_{i+1}\lt h_i,\\ \displaystyle -\frac { k_n^{(i)}}{k_j^{(i+1)}} \frac {\left \langle f^{(i)}_n,\, f^{(i+1)}_j \right \rangle _{c}^{h_{i,M}}}{\left \langle f^{(i+1)}_j,\, f^{(i+1)}_j\right \rangle _{c }^{h_{i,M}}}, & \mbox{when } h_{i+1}\gt h_i, \end{matrix} \right . \end{align}
\begin{align} N_{i7}&=\left \{ \begin{matrix} -\displaystyle \frac { k_n^{(i+1)}}{k_j^{(i)}} \frac {\left \langle f^{(i+1)}_n,\, f^{(i)}_j \right \rangle _{c}^{h_{i,M}}}{\left \langle f^{(i)}_j,\, f^{(i)}_j \right \rangle _{c }^{h_{i,M}}}, & \mbox{when } h_{i+1}\lt h_i,\\ -\delta _{jn}, & \mbox{when } h_{i+1}\gt h_i, \end{matrix} \right .\\[-8pt] \nonumber \end{align}
\begin{align} N_{i8}&=\left \{ \begin{matrix} \displaystyle \frac { k_n^{(i+1)}\text{e}^{-\textrm {i}k_n^{(i+1)}(l_i-l_{i+1})}}{k_j^{(i)}} \frac {\left \langle f^{(i+1)}_n,\, f^{(i)}_j \right \rangle _{c}^{h_{i,M}}}{\left \langle f^{(i)}_j,\, f^{(i)}_j \right \rangle _{c }^{h_{i,M}}}, & \mbox{when } h_{i+1}\lt h_i,\\ \text{e}^{-\textrm {i} k_j^{(i+1)}(l_i-l_{i+1})}\delta _{jn}, & \mbox{when } h_{i+1}\gt h_i, \end{matrix} \right . \end{align}
for
$j,n=0,1,\dots ,N$
, where
$\delta _{jn}$
is the Kronecker delta and the
$z$
-directional inner product is defined as
and the specific realisations are given by
\begin{align} \left \langle f^{(i)}_n,\,f^{(i)}_j \right \rangle _c^{h_i}=&\frac {\displaystyle \frac { \sin {2\mu ^{(i)}_nh_i}}{4\mu ^{(i)}_n}\left (1- \frac {\gamma ^2}{4(\mu ^{(i)}_n)^2} \right )+\frac {h_i}{2}\left (1+\frac { \gamma ^2}{4(\mu ^{(i)}_n)^2}\right )+\frac {\gamma \left ( \cos {2\mu ^{(i)}_nh_i} -1\right )}{4(\mu ^{ (i)}_n)^2}}{\left [\frac {\gamma }{2\mu ^{(i)}_n} \sin {(\mu ^{(i)}_n h_i)}-\cos {(\mu ^{ (i)}_n h_i)} \right ]^2} \delta _{jn}, \end{align}
\begin{align} \hspace{-42pt}\left \langle f^{(i)}_n,\,f^{(i+1)}_j\right \rangle _{c}^{h}= &\begin{cases}\displaystyle \frac {f^{(i)}_n(-h){f^{(i+1)}_j}'(-h)\text{e}^{\gamma h}}{{\mu ^{(i)}_n}^2-{\mu ^{(i+1)}_j}^2},&\text{where }h=h_i\lt h_{i+1},\\ \displaystyle \frac {{f^{(i)}_n}'(-h){f^{(i+1)}_j}(-h)\text{e}^{\gamma h}}{{\mu ^{(i+1)}_j}^2-{\mu ^{(i)}_n}^2},&\text{where }h=h_{i+1}\lt h_i. \end{cases} \end{align}
Appendix B. Convergence
In this section, we will provide a simple convergence test on the numerical truncation parameters
$N$
and
$k_{\textit{max}}$
. We will measure the numerical method’s ability to replicate the initial condition as a proxy for the overall accuracy. Therefore, our error metric is given by
as the strength of the pressure
$\hat {P}$
acts as a linear scaling of the solution.
We computed the error for a simple step bathymetry with depths
$h_1=4000$
and
$h_2=2000$
and the depth change at
$x=2000$
. We use the initial conditions (5.1) and (5.2) with physical parameters
$\hat {P}=10^6$
Pa,
$(x_c,z_c)=(0,-3000)$
m,
$g=9.81$
m s
$^{-2}$
,
$c=1450$
m s−1 and
$\sigma =400$
m. Tables 1 and 2 show the error for different values of
$N$
and
$k_{\textit{max}}$
, respectively, with default values
$N=60$
and
$k_{\textit{max}}=0.06$
. We can see that increasing
$N$
and
$k_{\textit{max}}$
reduces the error, as expected, and that our chosen default values of
$N$
and
$k_{\textit{max}}$
offer sufficient accuracy in reconstructing the initial condition.
Initial condition reconstruction error for different
$N$
with
$k_{\textit{max}}=0.06$
.

Table 1. Long description
A table comparing error values for different N values. The table has two columns and four rows, including the header row. The columns are labeled ‘N’ and ‘Error’. The rows present the following data: Row 1: N, Error; Row 2: 30, 3.34 x 10^−2; Row 3: 60, 2.28 x 10^−4; Row 4: 120, 2.27 x 10^−4.
Initial condition reconstruction error for different
$k_{\textit{max}}$
with
$N=60$
.

Table 2. Long description
A table with two columns and three rows. The first column is labeled k max and the second column is labeled Error. The values in the table are as follows: Row 1: k max, 0.03; Error, 6.82 x 10^−3. Row 2: k max, 0.06; Error, 2.28 x 10^−4. Row 3: k max, 0.12; Error, 2.28 x 10^−4.



l1,lm1−1
(l0,l1)
(lm1−1,lm1)
l0=−∞
lm1=+∞
(0,−3000)
4
500
1
(0,−3000)
4
500
0.7628
t∞
2
(0,−3000)
4
2000
500
3
N
kmax=0.06
kmax
N=60