physics.flu-dynNov 18, 2025

Online learning of subgrid-scale models for quasi-geostrophic turbulence in planetary interiors

Authors: Hugo Frezat, Thomas Gastine, Alexandre Fournier

Organizations: Université Paris Cité, Institut de physique du globe de Paris, CNRS, F-75005 Paris, France

Abstract

Machine learning approaches to subgrid-scale (SGS) modeling are now well established in atmospheric and oceanic applications. Among these, online end-to-end learning, where the differentiable solver participates in the training, has shown particular promise. Yet existing studies are largely restricted to idealised periodic domains, with no mechanical boundaries, precluding them from addressing the dynamics of bounded rotating flows relevant to planetary interiors. Here we consider two-dimensional quasi-geostrophic turbulence in a rapidly rotating annular bounded domain. We examine three configurations varying the geometry of the container and the rotation rate. The system exhibits key features such as zonal jets, Rossby waves, and, in the spherical shell geometry, a slow quasi-periodic inward drift of the jets. The spectral properties of the zonal and non-zonal flow can be understood in the framework of zonostrophic turbulence theory. We develop a differentiable solver for this system, which allows us to train SGS models online, over a time span of one turnover time, using coarse-grained data from direct numerical simulations. In all cases, a SGS model trained on a single turnover time accurately reproduces global integrated diagnostics, energy spectra as well as long-term dynamical behaviours, such as jet migration, occurring on timescales which exceed the training window by one order of magnitude. The online-trained model further outperforms classical hyperdiffusivity and Leith closure schemes, for which reducing the radial resolution is impractical. The resulting speed-up paves the way to further investigations of long-term geophysical fluid processes beyond the reach of direct numerical simulations.

Figures & tables

Explore similar work

Jul 1, 2025

Guided Unconditional and Conditional Generative Models for Super-Resolution and Inference of Quasi-Geostrophic Turbulence

Typically, numerical simulations of Earth systems are coarse, and Earth observations are sparse and gappy. We apply four generative diffusion modeling approaches to super-resolution and inference of forced two-dimensional quasi-geostrophic turbulence on the beta-plane from coarse, sparse, and gappy observations. Two guided approaches minimally adapt a pre-trained unconditional model: SDEdit modifies the initial condition, and Diffusion Posterior Sampling (DPS) modifies the reverse diffusion process score. Two conditional approaches, a vanilla variant and classifier-free guidance, require training with paired high-resolution and observation data. We consider multiple test cases spanning: two regimes, eddy and anisotropic-jet turbulence; two Reynolds numbers, 10^3 and 10^4; and two observation types, 4x coarse-resolution fields and coarse, sparse and gappy observations. Our comprehensive skill metrics include norms of the reconstructed vorticity fields, turbulence statistical quantities, and quantifications of the super-resolved probabilistic ensembles and their errors. We also study the sensitivity to tuning parameters such as guidance strength. Results show that the generated super-resolution fields of SDEdit are unphysical, while those of DPS are reasonable but with smoothed fine-scale features; however, neither of these lower-cost models propagates observational information effectively to unobserved regions. The two conditional models require re-training, but reconstruct missing fine-scale features, are cycle-consistent with observations, and predict correct turbulence statistics, including the tails. Further, their mean errors are highly correlated with and predictable from their ensemble standard deviations. Results highlight the tradeoffs between ease of implementation, fidelity (sharpness), and cycle-consistency of the diffusion models, and offer practical guidance for deployment.
Oct 30, 2023

Gradient-free online learning of subgrid-scale dynamics with neural emulators

In this paper, we propose a generic algorithm to train machine learning-based subgrid parametrizations online, i.e., with a posteriori\textit{a posteriori} loss functions, but for non-differentiable numerical solvers. The proposed approach leverages a neural emulator to approximate the reduced state-space solver, which is then used to allow gradient propagation through temporal integration steps. We apply this methodology on a chaotic two-timescales Lorenz-96 system and a single layer quasi-geostrophic system with zonal dynamics, known to be highly unstable with offline strategies. Using our algorithm, we are able to train a parametrization that recovers most of the benefits of online strategies without having to compute the gradient of the original solver. We found that training the neural emulator and parametrization components separately with different loss quantities is necessary in order to minimize the propagation of approximation biases. Experiments on emulator architectures with different complexities also indicates that emulator performance is key in order to learn an accurate parametrization. This work is a step towards learning parametrization with online strategies for climate models.
Oct 3, 2025

oRANS: Online optimisation of RANS machine learning models with embedded high-fidelity data generation

Deep learning (DL) has shown promise for flow simulations, but progress is constrained by the scarcity of high-fidelity training data, which is costly to generate and limited to few flow conditions. Closures trained offline on such data tend to overfit and fail to generalise to new regimes. We introduce an online optimisation framework for DL-based Reynolds-averaged Navier-Stokes (RANS) closures. Training data is generated by a simulation at direct numerical simulation (DNS) resolution embedded in a subdomain of the RANS domain. The RANS solution supplies boundary conditions to the embedded simulation, which provides the mean velocity and turbulence statistics used to update the closure, which thereby adapts to the target flow without precomputed datasets. The approach is developed on the stochastically forced Burgers equation and on turbulent channel flow at Reτ=180Re_τ=180, 270, 395 and 590 with embedded domain lengths 1≤L0/L≤81\leq L_0/L\leq 8, and is then applied to spanwise-rotating channel flow at Rob=0.15Ro_b=0.15 and 0.50.5, a flow in which the Coriolis force vanishes from the equations of a linear eddy-viscosity closure. Online-optimised RANS models outperform offline-trained and literature-calibrated closures with modest embedded subdomains, and in the rotating channel recover the rotation-induced asymmetry from non-rotating inflow turbulence and a rotation-blind closure. The learned coefficients are interpretable, recovering near-wall damping and, under rotation, the collapse of the eddy viscosity on the stabilised side. Performance degrades when boundary contamination dominates or domains are too short to capture low-wavenumber modes. This framework provides a route to data-adaptive machine learning closures without large precomputed training datasets.