Energy and entropy conserving compatible finite elements with upwinding for the thermal shallow water equations
Tamara A. Tambyah, David Lee, Santiago Badia
TL;DR
This paper introduces a compatible finite element discretisation for the thermal shallow water equations that preserves energy and quadratic tracer entropies through a reformulation enabling discontinuous thermodynamic variables and a Poisson time integrator. It distinguishes centred fluxes, which conserve both energy and entropy, from upwinded fluxes, which conserve energy and damp entropy, and demonstrates long-time stability in turbulent regimes via a new linearised Jacobian. To address the intrinsic temporal entropy drift of cubic Casimir invariants under the base Poisson integrator, the authors implement a constrained Lagrange-multiplier approach to enforce exact entropy conservation when needed. Numerical experiments confirm convergence under h-p refinement and show robust long-time behavior for both flux types, with the constrained formulation enabling precise entropy conservation in time. The work highlights the need for Poisson integrators capable of preserving higher-order Casimirs in non-canonical Hamiltonian systems and lays groundwork for extensions to spherical geometries and more complex atmospheric models.
Abstract
In this work, we develop a new compatible finite element formulation of the thermal shallow water equations that conserves energy and mathematical entropies given by buoyancy-related quadratic tracer variances. Our approach relies on restating the governing equations to enable discontinuous approximations of thermodynamic variables and a variational continuous time integration. A key novelty is the inclusion of centred and upwinded fluxes. The proposed semi-discrete system conserves discrete entropy for centred fluxes, monotonically damps entropy for upwinded fluxes, and conserves energy. The fully discrete scheme reflects entropy conservation at the continuous level. The ability of a new linearised Jacobian, which accounts for both centred and upwinded fluxes, to capture large variations in buoyancy and simulate thermally unstable flows for long periods of time is demonstrated for two different transient case studies. The first involves a thermogeostrophic instability where including upwinded fluxes is shown to suppress spurious oscillations while successfully conserving energy and monotonically damping entropy. The second is a double vortex where a constrained fully discrete formulation is shown to achieve exact entropy conservation in time.
