arXiv Science⌕ Search

arXiv subjects

Xin Kai Lee

Publications and source records attributed to Xin Kai Lee.

4 recordsLinked to original sources

A conservative Runge-Kutta framework for nonlinear free-surface ocean models

We present a Runge-Kutta framework for nonlinear free-surface ocean models implemented in Oceananigans. We consider two formulations that differ in the time discretization of the coupled barotropic mode: (i) an implicit free-surface discretization and (ii) a split-explicit free-surface discretization. We test two three-stage, low-storage Runge-Kutta formulations, one of which is strong stability preserving, and a four-stage formulation. We analyze the stability of the resulting schemes in a vertical normal-mode framework by separating the coupling effects from the uncoupled evolution, and show how stability depends on the barotropic time discretization, the averaging filter, and the reconstruction of the slow forcing. We identify configurations that are stable and second-order accurate in time in the linearized analysis. By adapting exact variance-budget diagnostics to multi-stage integrators, we directly quantify the contribution of temporal discretization to numerical mixing. In a nearly linear internal tide and in an eddying re-entrant channel, the Runge-Kutta formulations produce less numerical mixing than the Adams-Bashforth time discretization with the same spatial discretization, while using timesteps 3.5 to 5.5 times larger. This reduction does not occur in a quarter-degree global simulation, where we suspect that the spatial discretization dominates the numerical mixing, although the split-explicit Runge-Kutta schemes still increase throughput by 14-25%.

math.NA↗

High-level, efficient ocean modeling at all scales with Oceananigans

We describe the user interface, governing equations, and numerical methods underpinning the ocean modeling software called "Oceananigans". Oceananigans development has been led by the Climate Modeling Alliance as part of a larger effort to build a trainable climate model with quantifiable uncertainty. Notably, Oceananigans is written in the Julia programming language, is optimized for GPUs, and can efficiently simulate all scales of ocean motion ranging from millimeter-scale turbulence in a small box to planetary-scale ocean circulation. We argue that a reusable finite-volume framework on structured staggered grids, GPU-efficient algorithms, and accessible interfaces and source code together enable efficient all-scale simulations and rapid innovation in model development. This design negotiates a dual mandate for highest-possible performance (to support state-of-the-art applications) and enhanced accessibility (to facilitate adoption and development). The dual mandate aims ultimately to accelerate the progress of Earth system science.

physics.ao-ph↗

NORi: An ML-Augmented Ocean Boundary Layer Parameterization

NORi is a machine learning (ML) parameterization of ocean boundary layer turbulence that is physics-based and augmented with neural networks. NORi stands for neural ordinary differential equations (NODEs) Richardson number (Ri) closure. The physical parameterization is controlled by a Richardson number-dependent diffusivity and viscosity. The neural ODEs are trained to capture the entrainment through the base of the boundary layer, which cannot be represented with a local diffusive closure. The parameterization is trained using large-eddy simulations in an a posteriori fashion, where parameters are calibrated with a loss function that explicitly depends on the actual time-integrated variables of interest rather than the instantaneous subgrid fluxes, which are inherently noisy. NORi conserves tracers by design, uses realistic nonlinear thermodynamics, and demonstrates excellent prediction and generalization capabilities in capturing entrainment dynamics under different convective strengths, background stratifications, rotation, and wind forcings. NORi is shown to simulate the seasonal evolution of the boundary layer at Ocean Weather Station Papa with similar performance to the state-of-the-art two-equation k-epsilon closure. When implemented in a double-gyre simulation, it is numerically stable for at least 100 years, despite only being trained on two-day horizons, and can be run with time steps as long as one hour. Combining highly expressive neural networks with a physically grounded base closure proves to be a robust paradigm for designing parameterizations for climate models: data required and training cost are drastically reduced, inference performance can be directly optimized as a primary objective, and numerical stability is implicitly promoted through training.

physics.ao-ph↗

Capturing missing physics in climate model parameterizations using neural differential equations

We explore how neural differential equations (NDEs) may be trained on highly resolved fluid-dynamical models of unresolved scales providing an ideal framework for data-driven parameterizations in climate models. NDEs overcome some of the limitations of traditional neural networks (NNs) in fluid dynamical applications in that they can readily incorporate conservation laws and boundary conditions and are stable when integrated over time. We advocate a method that employs a 'residual' approach, in which the NN is used to improve upon an existing parameterization through the representation of residual fluxes which are not captured by the base parameterization. This reduces the amount of training required and providing a method for capturing up-gradient and nonlocal fluxes. As an illustrative example, we consider the parameterization of free convection of the oceanic boundary layer triggered by buoyancy loss at the surface. We demonstrate that a simple parameterization of the process - convective adjustment - can be improved upon by training a NDE against highly resolved explicit models, to capture entrainment fluxes at the base of the well-mixed layer, fluxes that convective adjustment itself cannot represent. The augmented parameterization outperforms existing commonly used parameterizations such as the K-Profile Parameterization (KPP). We showcase that the NDE performs well independent of the time-stepper and that an online training approach using differentiable simulation via the Julia scientific machine learning software stack improves accuracy by an order-of-magnitude. We conclude that NDEs provide an exciting route forward to the development of representations of sub-grid-scale processes for climate science, opening up myriad new opportunities.

physics.ao-ph↗