The invariant preserving property is one of the guiding principles for numerical algorithms in solving wave equations, in order to minimize phase and amplitude errors after long time simulation. In this paper, we design, analyze and numerically validate a Hamiltonian preserving discontinuous Galerkin method for solving the Korteweg-de Vries (KdV) equation. For the generalized KdV equation, the semi-discrete formulation is shown to preserve both the first and the third conserved integrals, and approximately preserve the second conserved integral; for the linearized KdV equation, all the first three conserved integrals are preserved, and optimal error estimates are obtained for polynomials of even degree. The preservation properties are also maintained by the fully discrete DG scheme. Our numerical experiments demonstrate both high accuracy of convergence and preservation of all three conserved integrals for the generalized KdV equation. We also show that the shape of the solution, after long time simulation, is well preserved due to the Hamiltonian preserving property.
scite is a Brooklyn-based organization that helps researchers better discover and understand research articles through Smart Citations–citations that display the context of the citation and describe whether the article provides supporting or contrasting evidence. scite is used by students and researchers from around the world and is funded in part by the National Science Foundation and the National Institute on Drug Abuse of the National Institutes of Health.