Preprints
https://doi.org/10.5194/egusphere-2025-2109
https://doi.org/10.5194/egusphere-2025-2109
07 Jul 2025
 | 07 Jul 2025

Handling discontinuities in numerical ODE methods for Lagrangian oceanography

Jenny Margareta Mørk, Tor Nordam, and Siren Rühs

Abstract. In Lagrangian oceanography, numerical methods for Ordinary Differential Equations (ODEs) are used to model particle transport. In many common applications, the velocity field driving the particle transport is provided as output from ocean models, on a discrete grid of points. Hence, the velocity field must be interpolated. Depending on the choice of interpolation, the velocity field or its derivatives may have discontinuities. These discontinuities have implications for the accuracy of the numerical ODE methods employed.

We demonstrate that by using information about the location of the discontinuities, we can take these into account, and improve numerical accuracy over standard integration methods that do not take discontinuities into account. The commonly used combination of the fourth-order Runge-Kutta method and linear interpolation of the velocity field, in fact, only yields second-order accuracy with the standard method. By accounting for discontinuities, we can achieve several orders of magnitude better accuracy with the same timestep. The implementation makes use of a combination of known methods from the field of numerical integration of ODEs. The implementation is quite flexible, agnostic to grid layout and order of interpolation, and contributes only modestly to the code complexity. Hence, the proposed technique for handling discontinuities in interpolated velocity fields could easily be adopted to a range of applications where numerical accuracy or efficiency is of importance.

As an example where numerical accuracy is important, we run a back-tracking case for particles with known initial conditions, and show that the method with discontinuity handling is to a larger degree able to recover the correct initial positions of the particles, compared to standard fourth-order Runge-Kutta.

Publisher's note: Copernicus Publications remains neutral with regard to jurisdictional claims made in the text, published maps, institutional affiliations, or any other geographical representation in this paper. While Copernicus Publications makes every effort to include appropriate place names, the final responsibility lies with the authors. Views expressed in the text are those of the authors and do not necessarily reflect the views of the publisher.
Share
Jenny Margareta Mørk, Tor Nordam, and Siren Rühs

Status: final response (author comments only)

Comment types: AC – author | RC – referee | CC – community | EC – editor | CEC – chief editor | : Report abuse
  • RC1: 'Comment on egusphere-2025-2109', Anonymous Referee #1, 06 Aug 2025
  • RC2: 'Comment on egusphere-2025-2109', Willi Rath, 15 Aug 2025
  • AC1: 'Comment on egusphere-2025-2109', Jenny Mørk, 05 Sep 2025
Jenny Margareta Mørk, Tor Nordam, and Siren Rühs
Jenny Margareta Mørk, Tor Nordam, and Siren Rühs

Viewed

Total article views: 821 (including HTML, PDF, and XML)
HTML PDF XML Total BibTeX EndNote
774 36 11 821 12 24
  • HTML: 774
  • PDF: 36
  • XML: 11
  • Total: 821
  • BibTeX: 12
  • EndNote: 24
Views and downloads (calculated since 07 Jul 2025)
Cumulative views and downloads (calculated since 07 Jul 2025)

Viewed (geographical distribution)

Total article views: 799 (including HTML, PDF, and XML) Thereof 799 with geography defined and 0 with unknown origin.
Country # Views %
  • 1
1
 
 
 
 
Latest update: 10 Sep 2025
Download
Short summary
A common task in applied oceanography is to calculate the trajectories of floating objects in the ocean. We propose an alteration to some common numerical methods to improve their performance in such computations, and compare results with and without this alteration. This will help researchers to ensure they obtain a higher accuracy in their results without compromising on computer resources.
Share