arXiv:2608.24265cs.MSAug 2026

Manuscript Offprint

arXiv:2608.24265

Opal.jl: a comprehensive, composable framework for data assimilation in Julia

Nicholas Mueller

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

NICHOLAS MUELLER†

ABSTRACT. Data assimilation (DA) and inverse modelling are indispensable tools for combining physics-based models with observations, yet the software that implements them is often fragmented: sequential (Kalman and particle) filters and variational (3D/4D-Var) estimators are typically developed as separate codebases, each tied to a specific class of forward model – for example, simple time-marching schemes for ordinary differential equations (ODEs), or full finite element (FE) discretisations of partial differential equations (PDEs). In this work, we present OPAL.JL, a Julia package that overcomes this fragmentation by providing a unified environment for a wide range of DA methods and forward model backends, all accessible behind a single high-level interface. Starting from a handful of basic methods, complex inference tools can be built by composing them with advanced capabilities, such as covariance localisation/inflation, online noise covariance estimation, bias-aware correction, and kriging-based calibration of reduced-order surrogates. The package integrates natively with the SciML ecosystem for ODE-governed systems, and with Gridap/GridapROMs for both full-order and reduced-order discretisations of PDEs. Notably, the API is designed to allow a reduced-order surrogate to replace a full-order solver with no change to the code, even at the driver level. We demonstrate the library on a Lorenz-63 benchmark, on a Van der Pol oscillator problem with biased observations, on a turbulent Navier-Stokes flow past a square cavity, where the unknown Reynolds number is inferred from sparse velocity and pressure measurements, and finally on a heat equation using a reduced-order surrogate instead of a more standard full-order model.

Program summary

Program Title: Opal.jl: Open source Probabilistic & Assimilation Library in Julia

Program Version: 0.1.0

Developer's repository link: https://github.com/nichomueller/Opal.jl

Licensing provisions: MIT license

Programming language: Julia

Nature of problem: Estimating the hidden state and, where relevant, the uncertain parameters of any dynamical system from observational data that are partial, corrupted by noise, and potentially biased. Such problems are generally ill-posed and computationally demanding, since they usually rely on a forecast-and-analyse paradigm, with the forecasting step being potentially expensive. Practitioners typically lack a single and mature software environment across heterogeneous forward model backends – lightweight ODEs and full-order PDE discretisations alike – without extensive re-implementation.

Solution method: Opal.jl exposes a single, type-driven interface to both Bayesian sequential filters (Kalman, extended Kalman, unscented, ensemble Kalman variants, and particle filters) and variational methods (3D-Var, 4D-Var), all sharing the same execution, composition, and diagnostic pipeline. Advanced capabilities – covariance localisation and inflation, surrogate model calibration, and bias-aware correction – are added incrementally as composable wrappers around a common filter interface. The library integrates natively with the SciML ecosystem for ODE-governed models and with Gridap/GridapROMs for both full-order and reduced-order PDE models, thus enabling a wide range of applications to be tackled with multiple methodologies all sharing the same pipeline.

References (49)