Fourier products in KdV
Multiplying two sampled waves can create a resolved-looking wave that was absent from the continuum product. In KdV the derivative of that product feeds the false mode back into the dynamics. A carefully chosen one-mode initial condition lets us predict the erroneous forcing, then measure it after a short evolution using the same time step in both runs. 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)
A false long wave on the periodic grid
Section titled “A false long wave on the periodic grid”Use on with periodic boundaries. On equally spaced nodes the normalized Fourier coefficients are
The exact Fourier product is an ordinary convolution. The discrete product sums contributions with , so frequencies separated by become indistinguishable. For retain both signs through and discard the Nyquist bin.
Take . The true product is . A Galerkin projection onto the retained band drops mode 18, and the remaining constant has zero derivative. On the 24 nodes, however, . Raw pointwise multiplication followed by differentiation gives an erroneous in . Its spatial integral vanishes, so monitoring mass will miss the mistake. The underlying convolution with wave numbers identified modulo is the one-dimensional version of Patterson and Orszag’s formula. Patterson and Orszag, p. 2539, equations (1)–(2)
Evaluate the same projected nonlinearity with padding
Section titled “Evaluate the same projected nonlinearity with padding”Embed the normalized positive and negative coefficients in a 36-point spectrum using their signed indices, fill the added bins with zero, transform to physical space, square, transform back and keep only the original modes. True product modes extend to . On the padded grid, any wrapped mode then has and cannot contaminate . The constant mode is differentiated to zero. If using an FFT convention whose forward transform is unnormalized, restore the appropriate grid factor on each array. A mismatch in normalization can survive a test that only checks which bins are occupied.
A different option is to restrict the initial, intermediate and output spectra to on the original grid, reducing the available bandwidth. For this removes the original ninth harmonic as well. To compare aliasing on the same initial data and the same target modes, use the padded and raw versions above.
The strict cutoff matters if is divisible by three. Keeping the endpoint lets wrap onto . On 24 nodes, squaring and differentiating the raw product would therefore inject into the retained equation. For a band with , every retained triple satisfies . Consequently implies . This proves the retained product is the ordinary projected convolution.
Let the bad mode act for a finite time
Section titled “Let the bad mode act for a finite time”With the padded Galerkin rule the exact finite-system solution for this initial condition is . Translation changes its phase but keeps the product’s nonconstant modes outside the band. This is an exact solution of the projected system; an unrestricted KdV field immediately develops its eighteenth harmonic. At time after 100 equal exponential Runge–Kutta steps, the raw solver has and a maximum nodal error of . Padding gives and a maximum error below . This experiment isolates the spatial product rule. To assess time error with the rule fixed, follow the periodic traveling-wave convergence test. Reproduce both Fourier evolutions (Python)
Which integrals does the projected flow conserve?
Section titled “Which integrals does the projected flow conserve?”Let be the orthogonal projection onto Fourier modes for a real periodic field . With the product evaluated exactly on the retained band, the continuous-time Galerkin equation is
Mass is constant because a derivative integrates to zero over the period. For , periodic integration by parts gives
The second line uses and self-adjointness of the projection. Likewise . Since is retained, we can remove from this integral. The resulting integrand is and integrates to zero.
On a grid satisfying , the trapezoidal sum also integrates exactly: its Fourier modes have , so only the true zero mode can contribute to the sample mean. A time stepper can thus show tiny drift in three accurately measured integrals of a coarse projected trajectory. In the one-pulse experiment, the coarsest grid starts with an energy discrepancy of and finishes with relative field error . Conservation within a band places no accuracy requirement on the discarded modes.
References
Section titled “References”- Korteweg, D. J., 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
- Patterson, G. S., Jr., and S. A. Orszag (1971). “Spectral calculations of isotropic turbulence: efficient removal of aliasing interactions.” Physics of Fluids 14, 2538–2541. DOI.
Connected readings