Integrating-factor and exponential Runge–Kutta methods for KdV
KdV’s highest Fourier modes have linear frequencies proportional to . Treating that part exactly still leaves a nonlinear term to approximate. An exact periodic traveling wave lets us measure fourth-order time convergence, then check the phase change caused by adding a constant to the initial field. A perturbed wave gives a second test without an exact waveform. The Korteweg–de Vries equation is named for the paper that derived it in 1895 for long waves in a shallow canal. Korteweg and de Vries (1895)
Required background. Fourier products in KdV describes the dealiased quadratic projection. Use the same spatial grid and nonlinear product at every temporal refinement.
Keep the complex linear phase
Section titled “Keep the complex linear phase”Use with periodic data. In the Fourier convention write with and . On a step beginning at , satisfies . Evaluate classical RK4 on at , starting with , then multiply its output by . This is the integrating-factor scheme in the single-pulse benchmark. Kassam and Trefethen, pp. 1215–1216, equations (1.5)–(1.9), PDF · Single-pulse benchmark (ZIP)
For exponential time differencing set , , and . Define and form
With all below evaluated at , use
At the limits give and , the classical RK4 weights with the displayed factors of two. Direct subtraction in the quotient definitions of the can lose precision near zero. The companion averages the analytic coefficients at 48 equally spaced midpoints on a full unit circle about each . For imaginary KdV eigenvalues the coefficients have physical imaginary parts. Taking their real parts as one might for a real diffusion symbol changes the method. Kassam and Trefethen, §2, ETDRK4 stages and contour formula (2.6), pp. 1218–1220, PDF
Resolve time error on two initial fields
Section titled “Resolve time error on two initial fields”For , period and 96 Fourier nodes, take , . In these formulas is the elliptic parameter. The Jacobi identities give . Differentiation verifies KdV and the exact speed. Unlike cutting a line soliton off in a finite box, this profile and all its derivatives match across the seam.
At final time , use three-halves padding in every nonlinear stage. Compare discrete error relative to the reference norm. Let be the fundamental wave number. For a second test add to the initial field. Its reference uses the same spatial discretization and 2048 time steps.
| Time steps | Exact traveling wave | Perturbed field |
|---|---|---|
| 32 | ||
| 64 | ||
| 128 | ||
| 256 |
In the last refinement the error ratios are about 16 on both fields. The 1024- and 2048-step perturbed references differ by less than in maximum absolute nodal value. This comparison tests the step at fixed spatial resolution and time. Resolving a radiating solution on the line also calls for enlarging the domain and refining its modes. Run the periodic refinements (Python)
Does a constant background move the wave?
Section titled “Does a constant background move the wave?”Although fixes the mean at every step, that mean enters the product at every nonzero mode. If solves KdV, then also solves it. The extra from the time derivative cancels from the nonlinear term. Thus adding at time zero changes the phase of each nonzero coefficient by . In the coefficient-one convention of Angulo Pava, Bona and Scialom the field is and their boost parameter is . Angulo Pava, Bona and Scialom, p. 1326, equations (3.2)–(3.3), author PDF
Add to the cnoidal wave above. At the expected additional displacement is . Compare the first Fourier coefficients of the boosted and original numerical fields through their ratio . The displacement is unambiguous here because is less than half a period. At 48 nodes and 1024 steps the measured displacement is . Simply adding back to an evolved unboosted field would reproduce the mean and give zero additional displacement.
The exact boosted profile also allows a spatial refinement at fixed time step. Normalize the nodal field error by the norm of the exact wave after subtracting the added background. At 1024 steps, grids of 12, 16, 24 and 32 points give , , and . Increasing the grid to 48 points leaves the last value unchanged to three significant digits. At 48 points, doubling the time steps reduces it to . This attributes the plateau to time stepping at the stated resolution. Run the background, phase and resolution checks (Python)
Measure the displaced pulses as well as the field
Section titled “Measure the displaced pulses as well as the field”In the independent two-soliton benchmark, , and the exact solution is restricted to a periodic interval of length . At and identify the two separated peaks by their respective velocities . Refine each peak position on the Fourier interpolant and subtract the free flight between the endpoints. The 768-point, 51,200-step reference gives displacements and . Against the exact peaks at the same finite times, the errors are and in position units. Over nine checkpoints the maximum relative field error is . The first displacement still differs from its infinite-separation value by about because the slower pulse’s tail remains at the observation planes. Shrinking the numerical time step cannot remove this finite-window bias. Comparison inputs · Benchmark procedure · Recorded results
References
Section titled “References”- D. J. Korteweg and G. de Vries, “On the change of form of long waves advancing in a rectangular canal, and on a new type of long stationary waves,” The London, Edinburgh, and Dublin Philosophical Magazine and Journal of Science 39 (1895), 422–443. DOI
- Angulo Pava, J., J. L. Bona, and M. Scialom (2006). “Stability of cnoidal waves.” Advances in Differential Equations 11 (12), 1321–1374. Author PDF.
- Kassam, A.-K., and L. N. Trefethen (2005). “Fourth-order time-stepping for stiff PDEs.” SIAM Journal on Scientific Computing 26, 1214–1233. DOI.
Connected readings
- Builds on