Energy and entropy conserving compatible finite elements with upwinding for the thermal shallow water equations

Tamara A. Tambyah,David Lee,Santiago Badia
2024-11-11
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.
Fluid Dynamics,Mathematical Physics,Geophysics
What problem does this paper attempt to address?
The main problem that this paper attempts to solve is to develop a new compatible finite - element method for solving the thermal shallow - water equations, which can simultaneously preserve energy and mathematical entropy (defined by the variance of the quadratic tracer related to buoyancy). Specifically, the authors reformulate the governing equations so that thermodynamic variables can be approximated discontinuously, and introduce central fluxes and upwind fluxes in combination with variational continuous - time integration. This method can preserve discrete entropy (for central fluxes), monotonically reduce entropy (for upwind fluxes) in the semi - discrete system, and always conserve energy. The fully - discrete scheme can reflect the entropy - conservation property at the continuous level. ### Main contributions: 1. **Energy and entropy conservation**: The proposed method can conserve energy and entropy at the semi - discrete level, where the central flux conserves entropy, while the upwind flux monotonically reduces entropy. 2. **Compatible finite - element method for thermal shallow - water equations**: By reformulating the thermal shallow - water equations, thermodynamic variables can be approximated discontinuously, thereby achieving entropy conservation. 3. **Numerical stability**: By introducing upwind fluxes, spurious oscillations in numerical simulations are suppressed while energy conservation is maintained. 4. **Long - time simulation ability**: This method can stably simulate nonlinear flow fields, especially when reaching the fully - developed turbulent state, showing good conservation performance. ### Specific technical details: - **Reformulation of the governing equations**: By introducing central fluxes and upwind fluxes, the thermal shallow - water equations are reformulated so that entropy can be conserved at the semi - discrete level. - **Variational continuous - time integration**: The variational continuous - time integration method is used to ensure the entropy - conservation property in time of the fully - discrete scheme. - **Linearized Jacobian matrix**: A new linearized Jacobian matrix is proposed, which can handle a wide range of buoyancy changes, thereby stably simulating thermally - unstable flow fields. - **Lagrangian multipliers**: By introducing Lagrangian multipliers, small errors in time are corrected and exact entropy conservation is achieved. ### Application cases: - **Thermal geostrophic instability**: By including upwind fluxes, spurious oscillations are successfully suppressed while energy conservation and monotonic entropy reduction are maintained. - **Double vortices**: It is shown that the constrained fully - discrete scheme can achieve exact entropy conservation in time. ### Conclusion: This research proposes a new compatible finite - element method that can simultaneously conserve energy and entropy when solving the thermal shallow - water equations, and has good numerical stability and long - time simulation ability. This provides an effective tool for numerical solvers in atmospheric models.