Skip to Content
FluidsFluids
  • Editor’s Choice
  • Article
  • Open Access

1 July 2026

18 Pages

The Evolution of Wind Waves in Shallow Water over Variable Topography and a Background Current: Korteweg–de Vries Framework

and
1
Department of Mathematics, Faculty of Science, Kasetsart University, Bangkok 10900, Thailand
2
Department of Mathematics, University College London, London WC1E 6BT, UK
*
Author to whom correspondence should be addressed.

Abstract

The Korteweg–de Vries (KdV) equation is widely known as a canonical model for weakly nonlinear and weakly dispersive waves, notably and historically for water waves in shallow depths. Being integrable, it has a rich solution set of interacting solitary and periodic waves. Recently, we extended it with several forcing/friction terms to describe the evolution of wind-driven water wave packets in shallow water. The outcome is a modified KdV–Burgers equation, whose relevant solutions are principally solitary wave trains forming a soliton gas. In this article that is extended further by allowing the water depth to be slowly spatially varying, and introducing a basic horizontal current, also slowly spatially varying. The outcome is a modified KdV–Burgers equation with spatially slowly varying coefficients. We adapt the Whitham modulation theory for a slowly varying solitary wave train, allowing for the prediction of wave amplitude growth/decay due to a combination of the slowly varying background and the forcing/friction terms. Numerical simulations using a Fourier spectral method are performed to exhibit and validate the modulation theory.

1. Introduction

For weakly nonlinear long water waves in shallow depths, it is widely accepted that the basic model for their description is the Korteweg–de Vries (KdV) equation. When the bottom topography varies, this leads to a variable-coefficient KdV equation, see Grimshaw [1], Grimshaw and Liu [2], Johnson [3,4] amongst many similar papers, and Craig et al. [5] for the relatively less studied case of random bottom topography. Recently in Maleewong and Grimshaw [6] (hereafter denoted as MG24) we extended this model to shallow water waves forced by wind, leading to a KdV–Burgers type of equation. In Maleewong and Grimshaw [7] this was further extended to the well-known Kadometsev–Petviashvili (KP) equation to account for horizontal two-dimensional dispersion. It is a bit surprising that applications of KdV dynamics to wind-driven waves are relatively sparse, but we note the important recent exception by Costa et al. [8] who used multi-soliton dynamics to analyse wind wave data in a shallow bay. That analysis was based on the theory of a soliton gas, see El [9] for a recent review which touches on the water wave application.
However, often wind waves propagate through regions of horizontally variable hydrology, background currents and over variable bottom topography. Hence, a variable-coefficient Korteweg–de Vries (vKdV) equation is needed to model these waves. For water and internal waves a detailed derivation was given by Grimshaw [1], Zhou and Grimshaw [10], see Section 2 for a brief outline. The outcome when wind forcing is included is, a variable-coefficient KdV–Burgers (vKdV) equation,
η t + c η x + c Q x 2 Q η + υ η η x + δ η x x x + σ η = Φ ,
Φ = − υ 1 η x x − υ 2 ( η 3 ) x x − υ 3 η .
Here η ( x , t ) is the amplitude of the wave at the free surface, x , t are space and time variables, c ( x ) is the linear long wave speed, and Q ( x ) is the linear magnification factor, defined so that Q η 2 is proportional to the wave action flux density for linear long waves. The coefficients c , Q , μ , δ , σ are slowly-varying functions of x, determined by the waveguide properties. The three terms in Φ are wave growth due to a critical level instability in the wind shear profile, introduced by Miles [11], a representation of wind-induced turbulent wave stress, and a representation of turbulent bottom stress, see MG24 for the derivation, and expressions for the coefficients υ 1 , 2 , 3 ; these are presented here at the end of Section 2 in Equation (33).
The vKdV Equation (1) (without wind forcing) was originally derived by Grimshaw [1] for a density-stratified fluid; for convenience, there is a brief summary here in Section 2. This derivation uses the usual KdV balance that the amplitude has the same small order as the long wave dispersion. That is η η x has the same order of magnitude as η x x x , and in addition assumes that the waveguide properties (the coefficients c , Q , μ , δ , σ ) vary slowly so that, for instance, η Q x / Q and σ η have the same order of magnitude. The first two terms in (1) are the dominant terms, and hence we make the transformation,
A ˜ = Q η , τ = ∫ 0 x d x c , X = τ − t .
Substitution into (1) yields, to the same order of asymptotic approximation as in the derivation of (1),
A ˜ τ + ν A ˜ A ˜ X + λ A ˜ X X X + σ A ˜ = Φ ˜ ,
ν = υ c Q , λ = δ c 3 , Φ ˜ = Q Φ .
The coefficients ν , λ , σ are functions of the time-like variable τ . Since we can assume that δ > 0 without loss of generality, we make a further transformation yielding the canonical form,
A ˜ T + 6 α ˜ A ˜ A ˜ X + A ˜ X X X + β A ˜ = F ˜ ,
T = ∫ 0 τ λ d τ = ∫ 0 x δ c 4 d x , α ˜ = ν 6 λ , β = σ λ , F ˜ = Φ ˜ λ .
A further transformation yields the final form suitable for modulation analysis and numerical simulation,
A T + 6 α A A X + A X X X = F ,
A ˜ = R A , R = exp ( − ∫ 0 T β d T ) ,
α = R α ˜ = R c 2 υ 6 δ Q ,
F = F ˜ R = − μ 1 A X X − μ 2 ( A 3 ) X X − μ 3 A .
The scaling factor R depends only on T and is a cumulative measure of the coefficient β . The forcing coefficients are given by μ i = υ i / ( λ c 2 ) , i = 1 , 3 , μ 2 = υ 2 R 2 / ( Q λ c 2 ) . Each μ i is a small parameter, facilitating the asymptotic analysis of Section 3.
There are two conservation equations, that for mass is (8) and that for wave action,
( A 2 2 ) T + 2 α ( A 3 ) X + ( [ A 2 2 ] X X − [ 3 A X 2 2 ] ) X = A F .
These lead to the global laws, assuming that A ˜ → 0 as x → ± ∞ ,
M = ∫ − ∞ ∞ A d X , M T = − μ 3 M ,
P = ∫ − ∞ ∞ A 2 2 d X , P T = μ 1 ∫ − ∞ ∞ A X 2 d X + 3 μ 2 ∫ − ∞ ∞ A X 2 A 2 d X − μ 3 ∫ − ∞ ∞ A 2 d X .
for mass and wave action flux respectively. μ 1 , μ 2 > 0 cause growth and μ 3 > 0 causes decay.
In Section 2, we review the derivation of the vKdV equation, given in Grimshaw [1] for a density stratified fluid, and applied here for wind-generated water waves. In Section 3, we present a theory for modulated waves, first for cnoidal waves in Section 3.1, and then emphasising the solitary wave train limit in Section 3.2. Our numerical simulations are presented in Section 4 using initial conditions similar to those in MG24. Three initial conditions are considered. In Section 4.1, the initial condition is a solitary wave, and the simulations explore how this deforms in a variable background and under wind forcing and bottom stress. Section 4.2 examines the transition of a long-wave perturbation to a deforming solitary wave train. The stability of this is examined in Section 4.3. We conclude in Section 5 with a summary and discussion.

2. Variable-Coefficient Korteweg–de Vries Equation

The KdV equation for water waves on a constant depth and X-independent shear flow, in the absence of wind forcing was first derived by Freeman and Johnson [12] and then by many others. The derivation of the vKdV Equation (1) (again without wind forcing) was given for a density stratified fluid by Grimshaw [1], see also Grimshaw and Liu [2], Liu et al. [13,14], and is briefly reproduced here when the water density ρ w is a constant. We assume a basic state defined in − ∞ < x < ∞ , − h ( x ) < z < η 0 ( x ) . The undisturbed depth h = h ( x ) , and the free surface displacement is η 0 ( x ) . The background horizontal current is u 0 ( z ; x ) with a vertical velocity field w 0 ( z ; x ) , and a corresponding pressure field p 0 ( z ; x ) which absorbs the constant water density. This basic state satisfies the full steady-state Euler equations, where the momentum equations have body forces F 0 ( z ; x ) , G 0 ( z ; x ) .
u 0 u 0 x + w 0 u 0 z + p 0 x = F 0 ,
[ u 0 w 0 x + w 0 w 0 z ] + p 0 z + g = [ G 0 ] ,
u 0 x + w 0 z = 0 .
each holding in the fluid domain − h < z < η 0 . The boundary conditions are
w 0 + u 0 h x = 0 at z = − h ( x ) ,
u 0 η 0 x = w 0 , at z = η 0 ( x ) ,
p 0 = 0 , at z = η 0 ( x ) .
An important issue here is that the specified horizontal variation of these basic fields may not be contained within the inviscid Euler equations. Hence the terms F 0 ( z ; x ) , G 0 ( z ; x ) are then needed to support this basic state. They may arise inter alia from diabatic and dissipative effects, or Coriolis effects. Because the x-dependence is slow, technically ∂ / ∂ x ∼ ϵ 3 , w 0 ∼ ϵ 3 , F 0 ∼ ϵ 3 , and G 0 ∼ ϵ 6 . Thus, the dominant balance in the vertical momentum equation is hydrostatic and the terms in [ · ] can be omitted, so that p 0 = − g ( z − η 0 ) . Note that a transverse velocity field and Coriolis term are not included on the left-hand side of (15) and if present, have been absorbed into the body force term F 0 , see Grimshaw [1], Liu et al. [13,14]. It is useful to introduce a stream function Ψ 0 ( x , z ) , u 0 = Ψ 0 z , w 0 = − Ψ 0 x , Ψ ( x , − h ( x ) ) = 0 so that (17) and (18) are automatically satisfied. The boundary condition (19) becomes Ψ ( x , η 0 ( x ) ) = constant , which then indirectly determines η 0 .
This basic state is then perturbed by the wave field, where at the leading order, the perturbation vertical particle displacement is given by
ζ ∼ η ( x , t ) ϕ ( z ; x ) .
The modal function ϕ ( z ; x ) together with the linear long wave speed c ( x ) is defined by the boundary-value problem,
{ ( c − u 0 ) 2 ϕ z } z = 0 , for − h < z < η 0 ,
ϕ = 0 at z = − h , ( c − u 0 ) 2 ϕ z = g ϕ at z = η 0 .
The modal Equation (22) with the boundary condition (23) can now be explicitly solved, as in Freeman and Johnson [12],
ϕ ( z ) = ψ ( Z ) = ψ m ∫ − H Z d Z ( c − u 0 ) 2 , Z = z − η 0 , H = h + η 0 ,
1 = g ∫ − H 0 d Z ( c − u 0 ) 2 .
ψ m is chosen so that ψ ( Z = 0 ) = 1 ; the parametric x-dependence is omitted here. The boundary condition (25) determines the linear long wave speed c, Freeman and Johnson [12], Burns [15]. If u 0 ( z ) is zero, the solution of (24), (25) is
ψ ( Z ) = ψ m ( Z + H ) / H , c = ± C , C = ( g H ) 1 / 2 .
In general, we assume that U m ≤ u 0 ( Z ) ≤ U M and that there are no critical levels in the water, so that c is real-valued and either c > U M or c < U m . Denoting the right-hand side of (25) by R , R c ≶ 0 according as c > U M or c < U m . It follows that there is just one solution for c > U M and just one solution for c < U m . Further, we assume, without loss of generality, that c > 0 . A simple example, which we shall use in numerical simulations is the linear shear profile,
u 0 ( Z ) = S ( Z + H ) , S = U H , Ψ 0 ( Z ) = S ( Z + H ) 2 2 , S H 2 = U H = constant . F 0 z = u 0 u 0 x z = u 0 S x = u 0 S T δ c 4 , ψ ( Z ) = ψ m ( Z + H ) c ( c − S ( Z + H ) ) , ψ m = c ( c − U ) H , 1 = C 2 c ( c − U ) , c = U 2 ± ( C 2 + U 2 4 ) 1 / 2 , C 2 = g H .
A KdV equation for this shear profile was derived by Kharif and Abid [16] for constant depth H and constant shear S. In (27) the T-dependence is not displayed. U = S H is the surface current and H , U can all depend on T, subject to the mass constraint U H = constant . The requirement that c be real-valued and positive implies that either U ≥ 0 , C 2 > U 2 / 4 , or if U < 0 , then C 2 > U 2 / 2 .
The KdV coefficients are given by,
I υ = 3 ∫ − H 0 ( c − u 0 ) 2 ψ Z 3 d Z ,
I δ = ∫ − H 0 ( c − u 0 ) 2 ψ 2 d Z ,
I = 2 ∫ − H 0 ( c − u 0 ) ψ Z 2 d Z , Q = c 2 I ,
I σ = − δ c 4 ∫ − H 0 ψ ψ Z u 0 u 0 T Z d Z .
Assuming, without loss of generality, that ψ m > 0 , so that ψ , ψ Z > 0 , it follows that μ , δ , I , Q > 0 when c > U M and vice versa when c < U m . In the sequel, we consider only that mode with c > U M . Although ψ is given explicitly by (24), evaluation of the coefficients requires specification of u 0 ( Z ) . When u 0 = 0 , (28)–(31) become the well-known expressions υ = 3 C / 2 H , δ = C H 2 / 6 , I = 2 C / H , Q = C , σ = 0 , from which we find that α = 3 C 3 / 2 / 2 H 3 . The linear shear flow (27) leads to the following expressions,
I υ = c 3 − ( c − U ) 3 U H 2 , I δ = ( c − U ) 2 H 3 , I = c 2 − ( c − U ) 2 U H , Q = c 2 I , α = R c 2 υ 6 δ Q = R c 2 ( c 3 − ( c − U ) 3 ) 2 U H 3 ( c − U ) 2 Q > 0 , I σ = − δ c 4 ∫ − H 0 ψ ψ Z u 0 u 0 T Z = − S S T δ 2 c 4 { H − ∫ − H 0 ψ 2 d Z } , β = σ c 3 δ ≈ − S S T H 2 3 C 2 = − U U T 3 C 2 + U 2 H T 3 H C 2 .
Because σ is a small quantity, the pre-factors of S S T have been evaluated for simplicity in the limit S → 0 . β is positive/negative according to whether S 2 decreases/increases.
Expressions for υ 1 , 2 , 3 and hence μ 1 , 2 , 3 in the forcing term (11) were given in MG24 for a constant depth and when there is no background current, but are assumed to hold here when H ( T ) is slowly varying. For simplicity, the remaining parameters in υ 1 , 2 , 3 are assumed to be constants. Our main concern here is how μ 1 , 2 , 3 might vary with depth H and a background current. With some adjustments for the present scaling,
υ 1 = 3 ρ a ρ w β M W r 2 C 2 , υ 2 = 2 α 2 R 2 ρ a ρ w c d U a 2 A 0 C 2 , υ 3 = 2 C D A 0 . μ 1 = υ 1 λ c 2 , μ 2 = υ 2 R 2 Q λ c 2 , μ 3 = υ 3 λ c 2 , λ c 2 = δ c .
ρ a , w are the air/water density, W r , U a are scaling velocities for a turbulent air flow, c d , C D are dimensionless drag coefficients for the surface air flow and the water bottom respectively, and A 0 is a dimensionless wave amplitude. β M is a dimensionless parameter introduced by Miles [11] to measure wave growth/decay due to a critical level in the air flow, and is positive/negative According to whether the air flow is convex/concave at the critical level, indicating wave growth/decay respectively. The depth dependence of υ 1 , 2 , 3 is through C 2 = g H , | υ 1 | , υ 2 increase as the depth decreases, and υ 3 is constant, but the behaviour of μ 1 , 2 , 3 is more complicated and depends on the depth and on the background current. In the numerical simulations, the depth dependence is represented by (61).

3. Modulated Waves

In the absence of forcing, and with a constant coefficient α , (8) reduces to the KdV equation with well-known periodic and solitary wave solutions. The modulation theory presented here follows the Whitham averaging approach, described in Whitham [17], applied to undular bores by Grimshaw and Yuan [18,19] and to surface and internal solitary waves by Grimshaw and Liu [2], Liu et al. [13,14], and extended for wind forcing by MG24. Here, that is extended further to the vKdV Equation (8) with an emphasis on the solitary wave train limit.
For a modulated periodic wave with a phase θ ( x , t ) , the local wavenumber k and frequency ω are defined by
θ X = k , θ T = − ω = − k V ,
where V is the phase speed. Cross-differentiation of (34) yields the equation for conservation of waves,
k T + ( k V ) X = 0 .
The modulated wave has the form A = A ( θ , X , T ) which is periodic in θ with period 2 π and the dependence on X , T is slowly varying and expressed through the available wave parameters. The spatial period for a single wave is 2 π / k and the full spatial domain is ( − ∞ , ∞ ) . Next, we define a wave average for a single wave
< [ ⋯ ] > = ∫ − π π [ ⋯ ] d θ 2 π .
We suppose that
A = B ( θ , X , T ) + D ( X , T ) , < B > = 0 , D ( X , T ) = < A > .
D is the mean level and is a slowly varying function of X , T . The averaged wave action density is
E = < B 2 2 > .
and is likewise a slowly varying function of X , T .

3.1. Cnoidal Waves

On expressing the fast dependence on θ and the slow dependence on X , T , the vKdV Equation (8) becomes at leading order
− ( V − 6 α D ) B θ + 3 α ( B 2 ) θ + k 2 B θ θ θ = ⋯ ,
where the omitted terms [ ⋯ ] contain the slowly varying X , T terms and the forcing/friction terms. Two integrations with respect to θ yield
− ( V − 6 α D ) B + 3 α B 2 + k 2 B θ θ = 6 α E ,
− ( V − 6 α D ) B 2 + 2 α B 3 + k 2 B θ 2 = 12 α E B + L ,
where L is the wave average of the left-hand side of (41). The solution is the cnoidal wave,
B = a { b + c n 2 ( γ θ ; m ) } , b = − < c n 2 > = 1 − m m − E ( m ) m K ( m ) ,
α a = 2 m Γ 2 , V − 6 α D = 4 Γ 2 2 − m − 3 E ( m ) K ( m ) , Γ = γ k .
c n ( ξ ; m ) is the Jacobi elliptic function of modulus m ( 0 ≤ m ≤ 1 ) and K ( m ) , E ( m ) are the elliptic integrals of the first and second kind respectively, all defined by,
c n ( ξ ; m ) = cos ( ϕ ) , ξ = ∫ 0 ϕ d ϕ ′ ( 1 − m sin 2 ϕ ′ ) 1 / 2 , 0 ≤ ϕ ≤ π 2 ,
K ( m ) = ∫ 0 π / 2 d ϕ ( 1 − m sin 2 ϕ ) 1 / 2 , E ( m ) = ∫ 0 π / 2 ( 1 − m sin 2 ϕ ) 1 / 2 d ϕ .
The cnoidal wave (42) is periodic in θ with a period 2 π = 2 K ( m ) / γ , which defines γ = K ( m ) / π . The corresponding spatial period is 2 π / k = 2 K ( m ) / Γ , V is the wave phase speed and a is the wave amplitude. The averaged wave action density is
E = < B 2 2 > = a 2 2 ( C 4 − b 2 ) , C 4 = < c n 4 > , C 4 = 1 3 m 2 K ( m ) 3 m 2 K ( m ) − 5 m K ( m ) + 4 m E ( m ) + 2 K ( m ) − 2 E ( m ) .
As the modulus m → 0 , c n ( ξ ; m ) → cos ( ξ ) , γ → 1 / 2 , b → − 1 / 2 and then the cnoidal wave (42) collapses to a linear sinusoidal wave,
B = a 2 cos ( θ ) , V − 6 α D = − k 2 , E = a 2 8 .
In this limit a → 0 , but a / m = 2 Γ 2 stays finite.
As the modulus m → 1 , c n ( ξ ; m ) → sech ( ξ ) , K ( m ) , E ( m ) → ∞ , 1 and b → 0 . The cnoidal wave (42) becomes a solitary wave train, defined on a periodic lattice, and riding on a background level D.
B = a sech 2 ( γ θ ) , α a = 2 Γ 2 , V − 6 α D = 4 Γ 2 .
In this limit γ → ∞ , k → 0 but Γ = γ k stays finite, and γ θ can be replaced by Γ ( X − V T ) in integral expressions. C 4 , E → 0 but E = E / k remains finite and is given by
E = 2 a 2 3 Γ = 8 Γ 3 3 α 2 .
The modulation parameters [ a , m , k , V , D ] are determined by the conservation of waves, Equation (35), the two relations in (43) and the averaged equations for conservation of mass and wave action, respectively given by
D T + 6 α ( D D X + E X ) = − μ 3 D .
E T + P X = < B F > , P = < 2 α B 3 − 3 k 2 B θ 2 2 > + α ( 12 E D + 2 D 3 ) , < B F > = μ 1 k 2 < B θ 2 > + μ 2 3 k 2 < B θ 2 ( B + D ) 2 > − 2 μ 3 E .
These form two coupled equations for D , E and in general are quite complicated. In the absence of forcing, and together with the equation for conservation of waves (35), they form three nonlinear hyperbolic equations often referred to as the Whitham equations, Whitham [17]. Of particular interest here is the similarity solution, see Grimshaw and Yuan [18,19], El et al. [20]
X T ′ = 2 M 1 + m − 2 m ( 1 − m ) K ( m ) E ( m ) − ( 1 − m ) K ( m ) , − 6 M < X T ′ < 4 M , a = 2 M m , D = M m − 1 + 2 E ( m ) K ( m ) , Γ 2 = α M , T ′ = ∫ 0 T α d T .
This describes an undular bore, an expanding wave train connecting a zero level at the front X = 4 M T ′ , D = 0 where m → 1 to the rear X = − 6 M T ′ , and D = M > 0 where m → 0 . At the front, the leading wave is a solitary wave of amplitude 2 M moving in the positive X-direction, and at the rear, the waves are linear sinusoidal waves moving in the negative X-direction. This solution has been widely used as a model for nonlinear wave trains in shallow water, Grimshaw and Yuan [18,19], El et al. [20], for instance. With the forcing/friction term F ( η ) ≠ 0 , the system (35), (50), and (51) is difficult to handle analytically, and so we simplify it using the solitary wave train approximation.

3.2. Solitary Wave Train

We shall make two simplifications; first, by taking the solitary wave train limit m → 1 where the solitary wave is defined by Γ , α a = 2 Γ 2 ; second, we seek solutions which depend only on T; in this case, (50) is an equation for D alone, D = D 0 exp ( − μ 3 T ) and then tends to zero. Hence we put D = 0 in the right-hand side of (51). The remaining terms in (51) are then,
E = 8 Γ 3 3 α 2 , < B F > = μ 1 64 Γ 5 15 α 2 + μ 2 2048 Γ 9 105 α 4 − μ 3 16 Γ 3 3 α 2 .
These expressions agree with those in MG24 when α = 1 . The remaining Equation (51) for Γ becomes,
8 Γ 3 3 α 2 T = μ 1 64 Γ 5 15 α 2 + μ 2 2048 Γ 9 105 α 4 − μ 3 16 Γ 3 3 α 2 .
In the absence of wind forcing, μ 1 , 2 , 3 = 0 , the solution is Γ 3 / α 2 = constant , expressing conservation of wave action flux. In terms of the amplitude a = 2 Γ 2 / α , a / α 1 / 3 = C is constant. In the absence of the basic current, u 0 = 0 , α ∝ Q 3 / 2 / H − 3 , which leads to the well-known outcome of the solitary wave amplitude in physical space η ∝ H − 1 , Johnson [3,4], Grimshaw [21].
However, as noted in MG24, the modulation of a single solitary wave generates a trailing shelf, see Grimshaw and Pudjaprasetya [22], Grimshaw [23]. The reason is that while the solitary wave deforms to conserve wave action flux (14), producing (54), there is just one available parameter ( D = 0 here). Hence, it cannot simultaneously conserve mass (13). In the absence of wind forcing, a / α 1 / 3 = C = a 0 / α 0 1 / 3 , whereas the mass is M S = 2 a / Γ = ( 8 C ) 1 / 2 α − 1 / 3 . This change in the mass drives a small-amplitude trailing shelf, Grimshaw and Pudjaprasetya [22]; briefly, we apply conservation of mass (13) with μ 1 , 2 , 3 = 0 to a combination of a solitary wave and a trailing shelf H in the region ∞ < X < X S ( T ) , where X S ( T ) is the location of the solitary wave, X S T = V ,
M = M S + ∫ − ∞ X S ( T ) H d X , M T = M S T + V H ( X = X S ( T ) ) = 0 .
Hence as α increases/decreases, M S T ≶ 0 and the trailing shelf H ≷ 0 . In both cases, the solitary wave amplitude is decreased slightly below C α 1 / 3 . H is a very slowly varying small amplitude function of X , T satisfying the vKdV Equation (8) in − ∞ < X < X S ( T ) with boundary condition (55). It initially satisfies H T = 0 and then H = H ( X ) , − ∞ < X < X S ( T ) , the functional form determined by the boundary condition (55). As described in Grimshaw and Pudjaprasetya [22], over a very long time, it evolves into a secondary solitary wave train. It is important here to distinguish between a pure solitary wave and a solitary wave train, which is essentially a useful approximation to a modulated cnoidal wave train.
When wind forcing is included (54) is a first-order ordinary differential equation containing the variable coefficient α ( T ) , and can be expressed in the form,
G T = μ 1 8 G 3 α 4 / 3 15 + μ 2 256 G 7 α 2 105 − μ 3 2 G 3 , G = Γ α 2 / 3 = a 1 / 2 ( 8 α ) 1 / 6 .
This can be solved if only one of μ 1 , 2 , 3 ≠ 0 . Thus, first suppose that μ 1 > 0 , μ 2 , 3 = 0 , then the solution is,
1 G 2 = 1 G 2 ( T = 0 ) − ∫ 0 T μ 1 16 α 4 / 3 15 d T , α 0 α 1 / 3 a a 0 = 1 1 − a 0 α 0 1 / 3 ∫ 0 T μ 1 8 α 4 / 3 15 d T , a 0 = a ( t = 0 ) , α 0 = α ( T = 0 ) .
We suppose that α ≥ α m > 0 , a minimum constant value. Then a , Γ → ∞ in finite time, a singularity noted by Zdyrski and Feddersen [24] when the background is constant; but we emphasise it is only a singularity in the modulation equations, and is not a singularity in the full vKdV Equation (8) where it is just indicative of large growth. Second, suppose that μ 2 > 0 , μ 1 , 3 = 0 , when the solution is
1 G 6 = 1 G 6 ( T = 0 ) − ∫ 0 T μ 2 512 α 2 35 d T , α 0 α 1 / 3 a a 0 = 1 ( 1 − a 0 3 α 0 ∫ 0 T μ 2 64 α 2 35 d T ) 1 / 3 ,
Again Γ → ∞ in finite time. Third, μ 3 > 0 , μ 1 , 2 = 0 , when the solution is
G = G ( T = 0 ) exp ( − ∫ 0 T 2 μ 3 3 d T ) , α 0 α 1 / 3 a a 0 = exp ( − ∫ 0 T 2 μ 3 3 d T ) .
a , Γ → 0 exponentially fast as T → ∞ .

4. Numerical Simulations

The forced vKdV Equation (8) is solved numerically using a similar pseudo-spectral scheme as that in MG24; a brief description is given in the Appendix A. For the displayed simulations, we set
H ( T ) = h 0 + h 1 tanh ( T / L H ) , L H ≫ 1 .
The depth increases or decreases according as h 1 ≷ 0 , | h 1 | < h 0 . We set u 0 ( T ) to be the linear shear current (27), with the mass constraint U H = constant , keeping c ≫ U > 0 (current in the wind direction). When instead U < 0 (opposing current), α is smaller, and so the nonlinear term in (8) is less effective; indicate that similar features emerge to those shown here for U > 0 . The evaluation of the wind forcing in MG24 assumes that the air flow vanishes at the water surface, and hence, here, there is a potential Kelvin–Helmholtz instability at the water surface; but this is a high wavenumber and can be ignored in the present long-wave KdV theory, or better assume that the wind speed equals U at the water surface and use a Galilean transformation to recover the wind forcing terms. The coefficients μ 1 , 2 , 3 are constant in MG24, but here vary with T. Based on (33), the main dependence is through H and hence we set
μ 1 = μ 10 H 0 3 H 3 , μ 2 = μ 20 H 0 7 / 2 H 7 / 2 , μ 3 = μ 30 H 0 2 H 2 .
The initial conditions are similar to those in MG24,
Case A : Solitary wave . A ( T = 0 ) = a 0 sech 2 ( Γ 0 X ) , α 0 a 0 = 2 Γ 0 2 , α 0 = α ( T = 0 ) , Case B : Long wave perturbation . A ( T = 0 ) = E N V ( X ) = M sech ( X / L E ) , Case C : Stability of solitary wave train . A ( T = 0 ) = E N V ( X ) ( 1 + ϵ 0 cos ( k 0 X ) ) .
Case A examines how a solitary wave will evolve under variable depth, a background current and wind forcing. Case B examines the generation of solitary wave trains, again under a variable background and wind forcing. Case C with 0 < ϵ 0 ≪ 1 is to examine the stability of a solitary wave train.

4.1. Case A

4.1.1. A: Increasing Depth

The initial solitary wave amplitude a 0 = 0.5 and the linear shear flow (27) satisfies the mass constraint, set as U H = 1 . First, we consider a case when the depth H ( T ) (60) increases; we set h 0 = 1.5 , h 1 = 0.5 , L H = 10 . The results are shown in Figure 1, Figure 2 and Figure 3. In Figure 1a,b, the solitary wave decreases in amplitude as H ( T ) increases and α ( T ) decreases, see Figure 2a. A slowly varying trailing shelf H is generated from the initial solitary wave, consistent with the mass-balance condition (55); the solitary wave propagates with constant speed when the depth transition is complete, T > 30 . In Figure 2b, we confirm the relation ( max A ) 3 ∼ k α (54), where k is a proportional constant fitted from T = 0 . Figure 3a shows a wind-forced case with μ 10 = 0.001 . Overall, the modulation analysis (57) agrees well with the simulation, but slightly underestimates the rapid initial drop in amplitude caused by the variable depth H ( T ) , but agrees with the long-term trend. Figure 3b shows the simulation restarted at T = 80 . The modulation analysis and simulation now agree very well, with wave growth due to the wind forcing as expected.
Figure 4 shows the same initial condition case for a weakly increasing depth h 0 = 1 ,   h 1 = 0.1 ,   L H = 10 . Now the solitary wave is essentially unchanged. Panel (a) shows that ( max A ) 3 is very close to the modulation theory result k α ( T ) . Panel (b) compares the simulation with modulation theory for all three forcing types; in each case, the agreement is very good. The bottom boundary layer term μ 3 produces significant wave amplitude decay, as expected.
Figure 1. Case A: h 0 = 1.5 , h 1 = 0.5 , L H = 10 , U H = 1 , μ i = 0 .
Figure 2. Case A: h 0 = 1.5 , h 1 = 0.5 , L H = 10 , U H = 1 , μ i = 0 .
Figure 3. Case A: h 0 = 1.5 , h 1 = 0.5 , L H = 10 , U H = 1 , μ 10 = 0.001 , μ 2 , 3 = 0 , modulation analysis from Equation (57).
Figure 4. Case A: h 0 = 1.0 , h 1 = 0.1 , L H = 10 , U H = 1 , (a) μ i = 0 , (b) μ i ≠ 0 , modulation analysis from Equations (57)–(59).

4.1.2. A: Decreasing Depth

We choose the same initial condition and basic current as in Section 4.1.1, but now set h 0 = 1.5 , h 1 = − 0.5 , L H = 10 . The results are shown in Figure 5 and Figure 6. In Figure 5a,b, the solitary wave now increases in amplitude as H ( T ) decreases and α ( T ) increases, see Figure 6a. A small trailing shelf H develops behind the initial solitary wave, consistent with the mass-balance condition (55). Figure 6a shows that ( max A ) 3 ∼ k α is again confirmed. In Figure 6b, we show the solitary wave amplitude evolution and wind forcing effect with μ 1 > 0 . The simulation with μ i = 0 shows the purely adiabatic deformation due to the changing depth. When there is a small wind forcing term with μ 10 = 0.001 , the wave amplitude grows as expected and agrees well with modulation analysis (57).
Figure 7 shows the same initial condition case for a weakly decreasing depth. h 0 = 1 , h 1 = − 0.1 , L H = 10 . Panel (a) shows that ( max A ) 3 is very close to the modulation theory prediction k α ( T ) . Panel (b) compares the simulation with modulation theory for all three forcing types, with good agreement in each case. For the same forcing magnitudes μ 10 , μ 20 , the critical level instability in the air now produces a stronger effect of wave growth than the wave stress from the air as the solitary wave moves into shallower water, consistent with the expressions (61).
Figure 5. Case A: h 0 = 1.5 , h 1 = − 0.5 , L H = 10 , U H = 1 , μ i = 0 .
Figure 6. Case A: h 0 = 1.5 , h 1 = − 0.5 , L H = 10 , U H = 1 , (a) μ i = 0 , (b) μ 10 = 0.001 , μ 2 , 3 = 0 .
Figure 7. Case A: h 0 = 1.0 , h 1 = − 0.1 , L H = 10 , U H = 1 , (a) μ i = 0 , and (b) μ i ≠ 0 with modulation analysis from Equations (57)–(59).

4.2. Case B

4.2.1. B: Increasing Depth

For Case B with an increasing depth, we set h 0 = 1.0 , h 1 = 0.1 , L H = 12 , U H = 0.5 for the background flow, and M = 0.2 , L E = 20 for the initial condition. Figure 8a for an unforced case, μ i = 0 , shows solitary waves initially exhibiting a short initial stage, when the linear dispersive term A X X X is very small, and the solution obeys a Hopf equation, preserving the maximum amplitude, with steepening on the front face, and formation of an expansion fan on the rear face; a stable solitary wave train then forms, adjusting to the deeper depth transition, and then reaching a steady maximum amplitude of 0.376 at T ≈ 100 , consistent with the modulation theory (52). When the forcing terms are separately introduced in Figure 8b, the wind growth term μ 1 produces an increase in the maximum amplitude, the nonlinear wave stress term μ 2 produces a slower growth, and the bottom stress term μ 3 leads to decay. After starting the comparison at T = 80 , the modulation analysis (57)–(59) agree very well with the simulation for all three forcing cases.
Figure 8. Case B: h 0 = 1.0 , h 1 = 0.1 , L H = 12 , U H = 0.5 . (a) Contour plot of A when μ i = 0 , (b) maximum of A versus T: solid-simulation, dash-modulation analysis from Equations (57)–(59), comparison starts at T = 80 .

4.2.2. B: Decreasing Depth

For Case B with a decreasing depth, we set h 0 = 1.0 , h 1 = − 0.1 , L H = 12 , U H = 0.5 , and again set M = 0.2 , L E = 20 for the initial condition. Figure 9a shows that in the unforced case ( μ i = 0 ), the behaviour is similar to that for the case in Section 4.2.1 shown in Figure 8a, the final steady maximum amplitude is 0.385 at T ≈ 100 when the depth is constant. In Figure 9b, the effects of the individual forcing terms are again consistent with the modulation theory; μ 1 produces a slow increase in the maximum amplitude, μ 2 shows a long-term growth, μ 3 leads to wave decay. After starting the comparison at T = 50 , the modulation analysis (57)–(59) agrees very well with the simulation for all forcing cases.
Figure 9. Case B: h 0 = 1.0 , h 1 = − 0.1 , L H = 12 , U H = 0.5 . (a) Contour of A when μ i = 0 , (b) maximum of A versus T: solid-simulation, dash-modulation analysis from Equations (57)–(59), comparison starts at T = 50 .

4.3. Case C

4.3.1. C: Decreasing Depth

The initial condition is A ( T = 0 ) = E N V ( X ) ( 1 + 0.2 cos ( X ) ) with M = 0.2 , L E = 20 . Figure 10a shows that in the unforced situation ( μ i = 0 ), the perturbed envelope adjusts rapidly to the decreasing depth H ( T ) = 1 − 0.1 tanh ( T / 12 ) and background flow with U H = 0.5 . The initial envelope wave is periodically perturbed with a magnitude ϵ = 0.2 ; the solitary wave train settles after the initial transient and remains stable under this small initial perturbation. Figure 10b compares the maximum amplitude with the modulation theory; with the comparison starting at T = 40 , the modulation analysis agrees very well with the simulation for all forcing cases.
Figure 10. Case C: H ( T ) = 1 − 0.1 tanh ( T / 12 ) , U H = 0.5 . (a) Contour plot of A when μ i = 0 , (b) maximum of A versus T: solid-simulation, dash-modulation analysis from Equations (57)–(59), the comparison starts at T = 40 .

4.3.2. C: Increasing Depth

The initial condition is the same as in Section 4.3.1, with a small periodic perturbation, but here the water depth variation is delayed with H ( T ) = 1 + 0.1 tanh ( T − 150 ) / 12 so that a fully developed solitary wave train forms before encountering the depth transition. The background flow satisfies U H = 0.5 . For the unforced case, μ i = 0 , Figure 11a shows the solitary wave train propagating over constant depth H ( T ) = 1 , stable over 50 < T < 120 , with small oscillations in the maximum amplitude due to the perturbation. When the depth transition begins for approximately T > 120 , the leading solitary wave accelerates and a trailing shelf becomes clearly visible. Figure 11b compares the maximum amplitude with the modulation theory starting at T = 150 , when the solitary wave train is already well established. The agreement is very good for all three forcing mechanisms, confirming that once the solitary wave train reaches its asymptotic form, the modulation theory captures the effects of the depth transition and all three types of forcing.
Figure 11. Case C: H ( T ) = 1 + 0.1 tanh ( ( T − 150 ) / 12 ) , U H = 0.5 . (a) contour of A when μ i = 0 , (b) maximum of A versus T: solid-simulation, dash-modulation analysis from Equations (57)–(59), comparison starts at T = 150 .

5. Discussion and Summary

In this paper, we have extended our work in MG24 on the KdV–Burgers (KdVB) equation for the generation of wind waves in shallow water to allow for a slowly varying depth, and a background current. The outcome is a variable-coefficient KdVB Equation (8) where the slowly varying depth and background current are incorporated into a single slowly-varying nonlinear coefficient α ( T ) > 0 , (10), where T is a time-like variable describing the travel time of a linear long wave. The main factors determining α ( T ) are the depth H ( T ) and the surface current U ( T ) which satisfies the mass constraint U H = constant ; together, these determine the linear long wave speed c ( T ) ; see (27) for our main illustrative example of a linear shear profile for the background current. The description of the variable-coefficient KdVB equation and an outline of its derivation are in Section 1 and Section 2. In Section 3, we re-visit the well-known modulation theory for the KdV equation, with a focus on the solitary wave train limit in which the amplitude varies as α 1 / 3 subject to the effect of the wind forcing terms. Numerical simulations of (8) are presented in Section 4 using initial conditions similar to those in MG24. In Section 4.1, the initial condition is a solitary wave which, in the absence of background variation and wind forcing, would propagate steadily unchanged in form; the modulation theory prediction of growth as α 1 / 3 is confirmed, along with the modulation theory predictions of the wind-forcing terms. In Section 4.2, the initial condition is a long wave perturbation which in MG24 was found to produce a solitary wave train; here we find that also, subject to the predictions of the modulation theory. The stability of this solitary wave train was tested numerically in Section 4.3 with the addition of a small sinusoidal perturbation, and was found to be stable.
In MG24 we showed that the KdVB equation was a useful model for wind-generated waves in shallow water, with typical solutions exhibiting solitary wave trains, forming a soliton gas. Importantly, this was noted by Costa et al. [8] in an examination of ocean data in a shallow sea using just the KdV equation; more recently Zdyrski and Feddersen [24], Manna and Latifi [25] studied an unstable KdV–Burgers equation, numerically and analytically respectively. In this paper we have demonstrated that inclusion of variable depth and a background current does not change this conclusion, modulo the adiabatic amplitude variation of α 1 / 3 . A major disadvantage of the KdV–Burgers model is that is one-dimensional in the horizontal space domain. For weak two-dimensional dispersion, the KdV–Burgers equation was extended in Maleewong and Grimshaw [7] to a KP-Burgers equation; in Maleewong and Grimshaw [26] we made a further extension to a forced Benney–Luke equation, which preserves isotropy in the horizontal domain. The same extensions can be made here and will be the subject of future research.

Author Contributions

Conceptualization, R.G.; Methodology, R.G.; Software, M.M.; Validation, R.G. and M.M.; Formal analysis, R.G.; Investigation, R.G. and M.M.; Data curation, M.M.; Writing—original draft preparation, R.G. and M.M.; Writing—review and editing, R.G. and M.M.; Visualization, M.M. All authors have read and agreed to the published version of the manuscript.

Funding

This research received no external funding.

Institutional Review Board Statement

Not applicable.

Data Availability Statement

The raw data supporting the conclusions of this article will be made available by the authors on request.

Conflicts of Interest

The authors declare no conflicts of interest.

Appendix A. Numerical Scheme

The variable-coefficient KdV Equation (8) is solved numerically using a Fourier spectral method. We modify the main equation by inserting a damping term to absorb radiating waves approaching the far-field periodic boundaries,
A T + 6 α ( T ) A A X + A X X X = − μ 1 ( T ) A X X − μ 2 ( T ) ( A 3 ) X X − μ 3 ( T ) A − s ( X ) A .
Here s ( X ) denotes a sponge layer (or numerical absorber) used to prevent spurious wave reflection at the computational boundaries. It is defined by
s ( X ) = ν 2 ( 1 + tanh ( κ s ( X − X 0 ) ) ) + ( 1 − tanh ( κ s ( X + X 0 ) ) ) ,
where ν > 0 sets the damping strength, κ s > 0 controls the smoothness of the damping transition, and X 0 marks the start of the absorbing region.
We split the evolution into a dispersive linear part L and a time-dependent nonlinear part N ,
A T = L ( A ) + N ( A ; T ) , L ( A ) = A X X X ,
N ( A ; T ) = − 3 α ( T ) ( A 2 ) X − μ 1 ( T ) A X X − μ 2 ( T ) ( A 3 ) X X − μ 3 ( T ) A − s ( X ) A .
Let A ^ ( k ′ , T ) denote the Fourier transform of A ( X , T ) . Introducing an integrating factor
U ^ ( k ′ , T ) = exp ( L ( k ′ ) T ) A ^ ( k ′ , T ) , L ( k ′ ) = − i k ′ 3 .
This solves exactly the linear dispersive term and yields the system
d U ^ d T = exp ( L ( k ) T ) N ^ ( A ; T ) .
Each term in the nonlinear part is solved using the fast Fourier transform at a specific time. The sponge layer is handled in the physical space, then the nonlinear part is transformed into the Fourier space N ^ . We apply the fourth-order Runge–Kutta method to solve (A1). Finally, the unknown A is obtained by taking the inverse Fourier transform of U ^ . Most of our simulations are performed over the spatial domain − 600 π / 2 < X < 600 π / 2 with time step 5 × 10 − 4 and 2 12 Fourier modes. The sponge layer is implemented using ν = 4 , κ s = 0.1 , and X 0 = 800 .

References

  1. Grimshaw, R. Evolution equations for long nonlinear internal waves in stratified shear flows. Stud. Appl. Math. 1981, 65, 159–188. [Google Scholar] [CrossRef] [Scilit]
  2. Grimshaw, R.; Liu, Z. Nonlinear periodic and solitary water waves on currents in shallow water. Stud. Appl. Math. 2016, 139, 60–72. [Google Scholar]
  3. Johnson, R.S. Some numerical solutions of a variable-coefficient Korteweg-de Vries equation (with applications to solitary wave development on a shelf). J. Fluid Mech. 1972, 54, 81–91. [Google Scholar]
  4. Johnson, R.S. On the development of a solitary wave moving over an uneven bottom. Proc. Camb. Phil. Soc. 1973, 73, 183–203. [Google Scholar] [CrossRef] [Scilit]
  5. Craig, W.; Guyenne, P.; Sulem, C. Water waves over a random bottom. J. Fluid Mech. 2009, 640, 79–107. [Google Scholar] [CrossRef] [Scilit]
  6. Maleewong, M.; Grimshaw, R. Evolution of water wave packets by wind in shallow water. J. Fluid Mech. 2024, 996, A4. [Google Scholar] [CrossRef] [Scilit]
  7. Maleewong, M.; Grimshaw, R. Evolution of wind-generated shallow water waves in the framework of a modified Kadomtsev-Petviashvili equation. Fluids 2025, 10, 61. [Google Scholar]
  8. Costa, A.; Osborne, A.R.; Resio, D.T.; Alessio, S.; Chrivì, E.; Saggese, E.; Bellomo, K.; Long, C.E. Soliton turbulence in shallow water ocean surface waves. Phys. Rev. Lett. 2014, 113, 108501. [Google Scholar] [CrossRef] [Scilit] [PubMed]
  9. El, G.A. Soliton gas in integrable dispersive hydrodynamics. J. Stat. Mech. 2021, 2021, 114001. [Google Scholar] [CrossRef] [Scilit]
  10. Zhou, X.; Grimshaw, R. The effect of variable currents on internal solitary waves. Dyn. Atmos. Oceans 1989, 14, 17–39. [Google Scholar] [CrossRef] [Scilit]
  11. Miles, J.W. On the generation of surface waves by shear flows. J. Fluid Mech. 1957, 3, 185–204. [Google Scholar] [CrossRef] [Scilit]
  12. Freeman, N.; Johnson, R.S. Shallow water waves on shear flows. J. Fluid Mech. 1970, 42, 401–409. [Google Scholar] [CrossRef] [Scilit]
  13. Liu, Z.; Grimshaw, R.; Johnson, E. Internal solitary waves propagating through variable background hydrology and currents. Ocean Model. 2017, 116, 134–145. [Google Scholar] [CrossRef] [Scilit]
  14. Liu, Z.; Grimshaw, R.; Johnson, E. The effect of variable background hydrology and currents on oceanic internal solitary waves. Fluids 2018, 3, 96–119. [Google Scholar]
  15. Burns, J.C. Long waves in running water. Proc. Camb. Phil. Soc. 1953, 49, 695–706. [Google Scholar] [CrossRef] [Scilit]
  16. Kharif, C.; Abid, M. Nonlinear water waves in shallow water in the presence of constant vorticity: A Whitham approach. Eur. J. Mech. B Fluids 2018, 72, 12–22. [Google Scholar] [CrossRef] [Scilit]
  17. Whitham, G.B. Linear and Nonlinear Waves; Wiley: Hoboken, NJ, USA, 1974. [Google Scholar]
  18. Grimshaw, R.; Yuan, C. Internal undular bores in the coastal ocean. In The Ocean in Motion; Velarde, M., Tarakanov, R., Marchenko, A., Eds.; Springer Oceanography Series; Springer: Berlin/Heidelberg, Germany, 2018; Volume 7, pp. 23–39. [Google Scholar]
  19. Grimshaw, R.; Yuan, C. The propagation of internal undular bores over variable topography. Phys. D 2016, 333, 200–207. [Google Scholar] [CrossRef] [Scilit]
  20. El, G.A.; Grimshaw, R.H.J.; Tiong, W.K. Transformation of a shoaling undular bore. J. Fluid Mech. 2012, 709, 371–395. [Google Scholar] [CrossRef] [Scilit]
  21. Grimshaw, R. The solitary wave in water of variable depth. J. Fluid Mech. 1970, 42, 639–656. [Google Scholar] [CrossRef] [Scilit]
  22. Grimshaw, R.H.J.; Pudjaprasetya, S.R. Generation of secondary solitary waves in the variable-coefficient Korteweg–de Vries equation. Stud. Appl. Math. 2004, 112, 271–279. [Google Scholar]
  23. Grimshaw, R. Slowly varying solitary waves i. Korteweg-de Vries equation. Proc. R. Soc. 1979, 368A, 359–375. [Google Scholar] [CrossRef] [Scilit]
  24. Zdyrski, T.; Feddersen, F. Wind-induced changes to surface gravity wave shape in shallow water. J. Fluid Mech. 2021, 903, A27. [Google Scholar]
  25. Manna, M.A.; Latifi, A. Korteweg de Vries—Burger equation with Jeffreys wind wave interaction: Blow-up and breaking of soliton-like solutions in finite time. Fluids 2023, 8, 231–244. [Google Scholar]
  26. Maleewong, M.; Grimshaw, R. Evolution of wind-generated shallow water waves in a Benney–Luke equation. Ocean Model. 2026, 200, 102659. [Google Scholar]
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Article Metrics

Citations

Article Access Statistics

Multiple requests from the same IP address are counted as one view.