Meridia Insight Science Breakthroughs Knowledge

A decade of Arctic ocean paths, calculated in hours

KELP turns ocean-model currents into reproducible particle journeys—and lets researchers track millions of virtual drifters across decades in a few hours.

7.92 million particles tracked for 63 years took just 3 h 36 min on one 128-core node.

7.92 million virtual drifters followed ocean currents for 63 years in a calculation that took 3 hours and 36 minutes on one 128-core computer node. The particles did not reveal a shortcut across the Arctic: transport from the Beaufort Gyre to Fram Strait took years to decades. But the calculation shows how much more readily ocean scientists can now ask where water—and the heat, carbon, nutrients or organisms it carries—may travel.

The software behind the experiment, KELP, is a Lagrangian particle tracker. “Lagrangian” means following the motion of individual parcels as they move through a flow, rather than watching what happens at fixed points. It turns an ocean model’s currents into millions of virtual journeys. KELP’s particular contribution is not a new law of fluid motion. It is an engine that works across several complicated grid types, can handle exceptionally large ensembles, and is designed to be operated reproducibly by coding agents: programs in which a language model writes and runs code, then checks the results.

That combination matters as ocean simulations grow finer and more varied. A model’s grid is the scaffold on which it calculates currents. Some ocean models use an unstructured mesh, with cells that can be small near coastlines and larger offshore. Others distribute output on HEALPix, a global grid of equal-area pixels. KELP tracks particles on both, helping researchers compare pathways and use model products even when the original mesh is unavailable.

The Science

Particle tracking gives researchers a way to ask questions that a map of currents alone cannot answer. Which water masses exchange between ocean basins? Where might coastal material disperse? Which regions supply the particles later found in a particular place? Earlier studies have used trajectories to investigate ocean circulation, carbon pathways, drifting objects, sediment and the dispersal of marine larvae. The same basic method can be applied to many substances and organisms, although a virtual particle is not itself a full model of their biology or chemistry.

KELP—the Kinematic Engine for Lagrangian Particles—was developed by Ivan Kuznetsov and colleagues at the Alfred Wegener Institute and the University of Bremen. The paper describes version 1.0, which handles triangular meshes, quadrilateral meshes and combinations of the two, as well as HEALPix grids. It can calculate two-dimensional surface paths or three-dimensional trajectories through the water column. The examples draw on global FESOM2 ocean-model output and coastal FESOM-C output.

A particle’s position is updated by sampling the modelled velocity around it and advancing it through time. The tracker must first determine which mesh cell contains the particle, interpolate the velocity at its location, and decide what happens if it reaches a coast or an open boundary. In three dimensions, it must also account for changing water depth and vertical layers. KELP brings established numerical approaches to these steps into one engine, without forcing quadrilateral cells to be split into triangles or regridding the model’s velocity fields.

HEALPix, originally developed for mapping the whole sky, divides a sphere into equal-area pixels. Its resolution can be increased systematically: each refinement level divides pixels into four and halves the pixel spacing. Several kilometre-scale Earth-system projects use the format to publish output from different models on a common grid. That shared representation is useful, but translating a model’s currents onto another grid can alter coastlines and the flow a particle experiences. Over time, even modest differences can send individual trajectories apart.

Figure 4: Trajectory error in a steady eddy on test meshes with a mean
node spacing of 1 km, and cell shapes of test and model meshes.
(a)–(d) Close-ups, 6 km wide and 4.5 km high, of four test meshes:
good triangles (a), distorted triangles (b), distorted quadrilaterals
(c) and the distorted mixed mesh (d). Triangles are light grey and quadrilaterals
light sand, and the dashed line is the 20-km circle. (e) The eddy: speed (colour),
the ten release circles (dotted) and exact paths over the first 12 h
(black). The red box marks the window of (a)–(d), and the red circle the
release circle of (f)–(h). (f)–(h) Positions after 30 days of four
particles released on the 20-km circle, on the meshes of (a), (b) and
(c): exact (open circles) and computed with each scheme (colour).
Circles mark the schemes that follow the particle across cell edges
(edge walk). Squares mark the plane fit over the cells around the
nearest node (two-ring search). Crosses mark the last positions of lost particles,
and insets enlarge one particle. (i) Median error of all 720 particles after
30 days against node spacing on the good (solid) and distorted (dashed)
triangles. The dotted line has slope 2. (j) Percentage of cells whose
edge ratio (longest edge divided by shortest) exceeds a given value, for
the test meshes of (a)–(d) (grey) and four model meshes (purple):
FESOM2 CORE2, FESOM2 NG5, FESOM-C southern North Sea and FESOM-C German
Bight with wind farms. The step of (a) at 0.5 % comes from half-size
cells along two edges of the test domain.
Figure 4: Trajectory error in a steady eddy on test meshes with a mean node spacing of 1 km, and cell shapes of test and model meshes. (a)–(d) Close-ups, 6 km wide and 4.5 km high, of four test meshes: good triangles (a), distorted triangles (b), distorted quadrilaterals (c) and the distorted mixed mesh (d). Triangles are light grey and quadrilaterals light sand, and the dashed line is the 20-km circle. (e) The eddy: speed (colour), the ten release circles (dotted) and exact paths over the first 12 h (black). The red box marks the window of (a)–(d), and the red circle the release circle of (f)–(h). (f)–(h) Positions after 30 days of four particles released on the 20-km circle, on the meshes of (a), (b) and (c): exact (open circles) and computed with each scheme (colour). Circles mark the schemes that follow the particle across cell edges (edge walk). Squares mark the plane fit over the cells around the nearest node (two-ring search). Crosses mark the last positions of lost particles, and insets enlarge one particle. (i) Median error of all 720 particles after 30 days against node spacing on the good (solid) and distorted (dashed) triangles. The dotted line has slope 2. (j) Percentage of cells whose edge ratio (longest edge divided by shortest) exceeds a given value, for the test meshes of (a)–(d) (grey) and four model meshes (purple): FESOM2 CORE2, FESOM2 NG5, FESOM-C southern North Sea and FESOM-C German Bight with wind farms. The step of (a) at 0.5 % comes from half-size cells along two edges of the test domain. Source: Ivan Kuznetsov, Alexey Androsov

The software also addresses a practical change in how research is done. A coding agent can read files, write a configuration, launch a run and process its output. But a plausible-looking script is not proof that a scientific calculation was set up correctly. KELP pairs its engine with documentation and seven short task guides, called “skills,” for recurring jobs such as preparing particle releases, checking configuration files, managing long campaigns, analysing crossings and making figures.

Before a run begins, KELP checks its settings and input data, and rejects configurations it cannot handle. The saved record includes the configuration, release files, references to input data, code revision and analysis scripts. That means a study can be repeated without relying on the history of a conversation with an agent. In the experiments reported here, the agent prepared and ran the calculations, while a human set tasks, approved launches and checked results.

What They Found

The first test was whether KELP could reproduce trajectories where the answer was known. The team tested idealised flows on different meshes and compared calculated positions against analytical solutions. The paper reports that computed paths agreed with the exact ones within the error expected from the time step. Additional tests examined diffusion, vertical motion, coastlines, drying and rewetting, and particles moving through mixed mesh types.

On real model fields, KELP’s results also matched those of existing trackers. In a comparison with Parcels, the reported median separation for returned three-dimensional particle positions was 1.6 metres, with a 90th-percentile separation of 12 metres. This is a comparison between two software implementations using the same fields—not a measure of how closely either one matches the real ocean. In a separate coastal wind-farm case, KELP reproduced the particle-probability patterns of an earlier tracker.

The central HEALPix result is a clear resolution story. As the pixels became finer, trajectories on HEALPix stayed closer to trajectories on the original model mesh. For two-dimensional releases, the median distance after one year fell from 15 kilometres at 102-kilometre pixel spacing to 5.0 kilometres at 51 kilometres, then to 1.6 kilometres at 25.5 kilometres. For three-dimensional releases, the corresponding reported distances were 19, 6.5 and 2.1 kilometres. At 51-kilometre spacing, the paper says ensemble dispersion agreed within 2%; it agreed more closely at 25.5 kilometres.

HEALPix trajectories move closer to mesh trajectories as pixels shrink

Median trajectory separation from the model mesh at 30 days and one year, for two- and three-dimensional releases.

HEALPix trajectories move closer to mesh trajectories as pixels shrink
LabelValue
2-D, 102 km, 30 days4.4 km
2-D, 51 km, 30 days1.4 km
2-D, 25.5 km, 30 days0.4 km
2-D, 102 km, 1 year15 km
2-D, 51 km, 1 year5 km
2-D, 25.5 km, 1 year1.6 km
3-D, 102 km, 30 days3.3 km
3-D, 51 km, 30 days1.1 km

That distinction between individual paths and ensembles is important. In a complex, changing flow, small velocity differences accumulate, and two particles representing the same release can end up far apart. Yet researchers are often interested in a broader statistic: where a cloud of particles tends to spread, or what fraction reaches a gateway. The authors’ results suggest that HEALPix data can support such ensemble studies even when researchers do not have access to the source mesh, provided they take grid resolution into account.

The Beaufort Gyre experiment demonstrates the scale of the questions KELP can handle. The researchers released 7.92 million particles over a 63-year model period and followed transport from the gyre toward Fram Strait, the deep-water passage between Greenland and Svalbard. The journey took years to decades. The paper also reports a stress test tracking 10 billion particles on a HEALPix mesh containing 35.5 million wet surface nodes. The practical limit, the authors argue, is the computing resources available rather than a fixed limit in the code.

The agent-facing tools produced a measurable improvement in preparation. In a controlled evaluation involving five language models, completeness of prepared study files rose from a range of 75–93% without the skills to 88–100% with them. The result does not mean agents became autonomous scientists; it indicates that concise, task-specific instructions helped them produce more of the expected files. Human oversight remained part of the workflow.

Task instructions improve agent-prepared study files

Completeness ranges reported for five language models, with and without KELP skills.

Task instructions improve agent-prepared study files
LabelValue
Without skills, low75 %
Without skills, high93 %
With skills, low88 %
With skills, high100 %

Why This Changes Things

The significance of KELP lies partly in making large-scale particle studies less dependent on bespoke code. A researcher can spend substantial time just getting an established tracking method to read a particular model’s file format, manage memory, survive a cluster’s job limits and save enough information for another person to reproduce the analysis. KELP’s approach—modular input readers, restartable runs and structured study records—turns much of that infrastructure into a reusable workflow.

That matters for climate and ocean science because transport is a connector between processes. Currents redistribute heat and carbon, move nutrients and contaminants, and link habitats that may be separated by great distances. Better tools do not automatically make those predictions more accurate. But they can make it feasible to test more release locations, compare decades, examine uncertainty across ensembles or analyse model output that previously sat unused because its format was inconvenient.

The HEALPix capability offers a second kind of leverage. A common grid can make output easier to exchange across modelling projects, and KELP’s tests offer evidence about what is lost when tracking on that grid rather than the original mesh. The reported one-year median separations are small relative to the pixel spacing at the finest resolution tested, but they are not zero. The authors also report that ensemble dispersion is within 2% at 51-kilometre spacing; that is encouraging for statistical questions, not a guarantee that every trajectory or coastal feature will be represented faithfully.

The agent-ready design is similarly pragmatic. Language models can help with repetitive coding and file preparation, but they can also silently make mistakes. KELP responds not by treating an agent as an authority, but by narrowing the tasks it can attempt, checking configurations, preserving the study record and asking a person to approve launches and inspect results. In that sense, the skills are less like magic prompts than operational documentation: they make a workflow legible to both people and software.

The paper’s reproducibility claim rests on more than saving code. KELP computes random diffusion increments from a particle’s identity and step, so trajectories can remain the same when work is divided among threads or processes, and after an interrupted run is restarted. That determinism is valuable for large parallel calculations: a researcher can scale a job across computer resources without changing the stochastic sequence simply because the particle distribution changed.

Figure 7: Particle distribution one year after release, computed with
(a) KELP and (b) Parcels v4. Particles were released in the area
outlined in black. Colours give the fraction of released particles per
50×50 km cell of an equal-area projection.
Figure 7: Particle distribution one year after release, computed with (a) KELP and (b) Parcels v4. Particles were released in the area outlined in black. Colours give the fraction of released particles per 50×50 km cell of an equal-area projection. Source: Ivan Kuznetsov, Alexey Androsov

What’s Next

KELP’s results should be read as a software and methods demonstration, not a direct forecast of where real-world material will go. Particle paths inherit the assumptions and errors of the ocean model’s currents. Grid spacing, time resolution, interpolation, coastlines and boundary rules all affect what a virtual drifter experiences. The study’s idealised tests and comparisons with other trackers build confidence in the implementation, but they cannot remove uncertainty in the simulated ocean itself.

Resolution also remains a trade-off. The HEALPix results show convergence as pixels are refined, but finer grids demand more input data and computation. The 25.5-kilometre comparison is one test case, not a universal threshold for useful tracking. Coastal flows, narrow straits and sharp fronts may need finer representation than open-ocean ensemble statistics. Users will need to choose resolution and tracking settings for the question they are asking.

There is also a governance question around coding agents in research. A skills-guided agent can accelerate routine setup, but the study makes clear that a user still defines the task, approves launches and checks outputs. The completeness test is promising, though it involves five language models and measures study-file completeness rather than scientific correctness. Broader evaluations will need to test more workflows and assess whether the produced analyses are right, not simply complete.

The next opportunities are practical: connect KELP to more model output formats, apply it to new regions and tracers, and test whether its reproducible workflows help research groups compare results across systems. The core promise is not that computers can replace oceanographers. It is that a well-documented tracker can make decades of simulated currents easier to interrogate—so scientists can spend less effort plumbing files together and more effort asking what connects one part of the ocean to another.

The number of particles is limited by the available computer resources rather than by the code.

Comments (0)

No comments yet. Be the first to share your thoughts.