This paper was converted on www.awesomepapers.org from LaTeX by an anonymous user.
Want to know more? Visit the Converter page.

An interpretation of TRiSK-type schemes from a discrete exterior calculus perspective

Christopher Eldred111Center for Computing Research, Sandia National Laboratories, celdred@sandia.gov, Werner Bauer222University of Surrey, Department of Mathematics, w.bauer@surrey.ac.uk
(October 2022)
Abstract

TRiSK-type numerical schemes are widely used in both atmospheric and oceanic dynamical cores, due to their discrete analogues of important properties such as energy conservation and steady geostrophic modes. In this work, we show that these numerical methods are best understood as a discrete exterior calculus (DEC) scheme applied to a Hamiltonian formulation of the rotating shallow water equations based on split exterior calculus. This comprehensive description of the differential geometric underpinnings of TRiSK-type schemes completes the one started in [65, 23], and provides a new understanding of certain operators in TRiSK-type schemes as discrete wedge products and topological pairings from split exterior calculus. All known TRiSK-type schemes in the literature are shown to fit inside this general framework, by identifying the (implicit) choices made for various DEC operators by the different schemes. In doing so, unexplored choices and combinations are identified that might offer the possibility of fixing known issues with TRiSK-type schemes such as operator accuracy and Hollingsworth instability.

1 Introduction

The rotating shallow water equations (RSWE) are a useful simplified model in the development process of geophysical fluid dynamics models, as they possess many of the same properties: conservation laws such as total energy and potential enstrophy, a (quasi-)balanced state and waves that mediate departures from this state (inertia-gravity and Rossby waves). However, their 2D nature permits much quicker testing and development of numerical schemes, since the expense of 3D modelling can be avoided. Additionally, the numerical methods used in a shallow-water model can often be partially or fully adopted for use in a 3D model.

A prominent family of numerical methods used for the numerical modelling of the RSWE are TRiSK-type schemes. These schemes are characterized by a number of features: Arakawa C-grid staggering333Fluid height at cells centers and normal component of velocity at cell edges., no spurious vorticity production, potential vorticity (PV) compatibility/steady geostrophic modes and various conservation laws (total mass, total circulation, total energy and/or potential enstrophy). These schemes form the basis for the numerics of both atmospheric (DYNAMICO [16], LMD-Z [72], MPAS-A [58], Wavetrisk [39], ICON-IAP [26, 27]) and oceanic (MPAS-O [51]) models. TRiSK-type schemes originated near the dawn of atmospheric model development, starting with the celebrated Arakawa-Lamb scheme (AL81) [2] that conserves both total energy and potential enstrophy. Similar efforts occurred in [54], which also conserves total energy but only conserves enstrophy in the non-divergent limit, instead of potential enstrophy. AL81 was extended to incorporate higher-order advection for the vorticity term in [62]. These schemes are all restricted to uniform rectangular or lat-lon grids. This shortcoming was addressed in [68, 52], which generalized the approach of AL81 to arbitrary orthogonal grids444and gave rise to the name TRiSK, based on the initials of the authors of [52].. A partial understanding of TRiSK-type schemes in terms of discrete exterior calculus (DEC)555Discrete exterior calculus [32] is a type of structure-preserving numerical method for arbitrary polygonal grids, based on the double deRham complex [41, 30] (implemented through a straight-twisted grid structure) and split exterior calculus. appeared in [65], which provided the general framework for further work [75, 77, 76, 67] extending TRiSK-type schemes to arbitrary non-orthogonal grids and exploring some of the shortcomings of these schemes (such as operator accuracy). However, this work also did not recognize the presence of discrete versions of the wedge product and the topological pairing, which turn out to be key to a complete understanding of TRiSK-type schemes as a DEC.

In a different direction, the Hamiltonian formulation of the continuous equations was exploited in [55] to develop a quasi-Hamiltonian discrete model that generalized both [2] and [62]. This quasi-Hamiltonian formulation was used to develop a multilayer TRiSK-type shallow water model in [61]. A direct extension of AL81 to the case of logically square non-orthogonal grids, not based on either quasi-Hamiltonian formulations or DEC, is found in [73]. An important step towards a deeper understanding of TRiSK-type schemes occurred in [19, 23], which unified the quasi-Hamiltonian and DEC viewpoints but still lacked the recognition of the wedge product and topological pairing.

This paper aims to fill that gap, and will present a complete understanding of TRiSK-type schemes as a type of DEC applied to a Hamiltonian formulation of the RSWE based on split exterior calculus, building on prior work in [65, 19, 23]. Split exterior calculus is the extension of standard exterior calculus to take into account the orientation of the underlying manifold through the introduction of straight and twisted differential forms, where the latter change sign under a change of orientation. The use of split exterior calculus allows one to actually “split” the RSWE into topological and metric parts [4]. When viewed from a split exterior calculus perspective there is a 1-1 mapping between quantities and operators in the continuous and discrete settings, and TRiSK-type schemes are quite elegant. This is in contrast to the vector calculus perspective, where TRiSK-type schemes appear relatively complex, with many distinct operators.

Despite their popularity, TRiSK-type schemes suffer from several significant shortcomings. In particular, they have issues with operator accuracy on some grids [67, 23, 49, 9, 74], especially in a grid refinement context and for quasi-uniform spherical grids commonly used in atmospheric and oceanic models. Additionally, TRiSK can suffer from Hollingsworth instability [35, 42, 48, 7] (also known as Symmetric Instability of the Computational Kind, SICK), a non-cancellation error in the momentum equations which results in an unphysical loss of neutral stability of internal inertia-gravity waves. This instability can cause spurious energy exchanges in balanced motions [17] and errors in the representation of deep water renewal [59] for ocean models, along with computational instability in atmospheric models [48, 7]. A general prescription for avoiding Hollingsworth instability has yet to be found, but there are several known remedies that can alleviate it [48, 7, 27]. Efforts to fix the accuracy issues in TRiSK are detailed in [49], but the proposed fixes lose the desirable properties such as energy conservation and PV compatibility. Tantalisingly, the scheme in [73] does not suffer from any accuracy issues despite being utilized on highly distorted non-orthogonal grids (but still topologically square and periodic). It is hoped that the more complete understanding of the differential geometric underpinnings of TRiSK-type schemes presented in this paper will allow the resolution of these issues in a way that does not break the desirable properties, for arbitrary grid topologies and geometries. It is anticipated that this will heavily utilize the separation of the discrete equations into topological parts (associated with the Poisson bracket) and metric parts (associated with the Hamiltonian), and is closely related to the ideas expressed in [4, 70, 71]. By categorizing existing TRiSK-type schemes in terms of the new general DEC, unexplored operator choices are identified that do not expand the stencil beyond nearest-neighbor and offer the possibility of achieving better accuracy or alleviating Hollingsworth instability; while still keeping the desirable properties. Similar efforts in the context of split finite element methods rather than DEC are detailed in [5, 6].

The rest of this paper is structured as follows: Section 2 provides a brief review of split exterior calculus, focusing on new aspects compared to standard exterior calculus; Section 3 reviews the continuous RSWE in Hamiltonian form, using both vector calculus and split exterior calculus; Section 4 introduces a discrete exterior calculus (DEC) in 2D; Section 5 discretizes the RSWE using this DEC; Section 6 discusses properties of the scheme and it’s dependence on operator properties from DEC; Section 7 identifies specific DEC operator choices with the required properties; Section 8 explores the relationship between TRiSK-type schemes in the literature and the DEC-based scheme presented here by identifying the choices these schemes (implicitly) made for various operators in the DEC context, and includes a discussion in Section 8.3 of unexplored possibilities in choices for these operators; and finally Section 9 offers some conclusions. Appendix A proves some useful properties of the discrete exterior derivative and topological pairing, Appendix B derives some relationships between various desired properties of the PV wedge product, Appendix C derives the functional derivatives of the discrete Hamiltonian of the RSWE, and Appendix D explores the relationships between quantities and operators for split exterior calculus and vector calculus in 2D.

2 Split Exterior Calculus for n=2n=2

Split exterior calculus [4] is standard exterior calculus extended with an explicit notion of orientation for the underlying manifold. It is assumed that the reader has a basic knowledge of standard exterior calculus and differential geometry, for reference see standard textbooks on differential geometry [25, 1] or the review paper at [4]. In this section only the new concepts specific to split exterior calculus are introduced: straight and twisted differential forms, the twisted Hodge star and the topological pairing.

2.1 Manifolds, Orientations and (Twisted) Forms

Consider a Riemannian manifold 𝕄\mathbb{M} with boundary δ𝕄\delta\mathbb{M} and choice of ambient orientation OrOr, on which the space of straight kk-forms ωk{\omega}^{k} is denoted with Λk\Lambda^{k}. The opposite orientation is denoted with Or-Or. A classical example of orientation on a manifold is the choice between a right-hand or left-hand rule for the cross-product in 3\mathbb{R}^{3}.

Then the space of twisted differential kk-forms ω~k{\tilde{\omega}}^{k} is defined similarly to straight differential forms, except that twisted differential forms change sign under a change of orientation from OrOr to Or-Or, while straight forms do not.666More concretely, twisted differential forms are a type of (vector)-bundle valued differential forms (BVDFs), where the bundle is the pseudoscalar bundle Ψ\Psi. In contrast, straight differential forms are BVDFs where the bundle is \mathbb{R}. Since Ψ\Psi has the canonical trivializations ΨΨ\Psi\otimes\Psi\rightarrow\mathbb{R} and ΨΨ\Psi\otimes\mathbb{R}\rightarrow\Psi, the wedge product of two twisted forms produces a straight form and the wedge product of a straight form and a twisted form produces a twisted form. This change of sign is analogous to the situation with pseudovectors and vectors or pseudoscalars and scalars in vector calculus.

Using both straight and twisted differential forms to describe a physical system allows a formulation that is manifestly independent of the choice of ambient orientation [4]. Since the choice of orientation is (for classical physics at least) arbitrary, this is a desirable feature. These ideas are closely related to the work of Tonti [71, 70], who characterized a wide range of variables for physical theories in terms of their association with oriented geometric entities: source (twisted differential forms) and configuration (straight differential forms).

2.2 (Twisted) Hodge Star

Rather than the standard orientation-dependent Hodge star \star, an orientation independent Hodge star (~\operatorname{\tilde{\star}}, the twisted Hodge star) is defined through

ak~bk=<ak,bk>μ~n{a}^{k}\wedge\operatorname{\tilde{\star}}{b}^{k}=<{a}^{k},{b}^{k}>\tilde{\mu}^{n} (1)

where <><> is the pointwise L2L_{2} inner product that produces a straight 0-form and μ~n\tilde{\mu}^{n} is the twisted volume form, with a similar equivalent definition for a~k\tilde{a}^{k} and b~k\tilde{b}^{k}. The definition (1) is very similar to the one used for the standard Hodge star, but with the twisted volume form μ~n\tilde{\mu}^{n} instead of the straight volume form. It is clear from this definition that the twisted Hodge star ~\operatorname{\tilde{\star}} must map between straight kk-forms and twisted (nk)(n-k)-forms or twisted kk-forms and straight (nk)(n-k)-forms, since ak~bk{a}^{k}\wedge\operatorname{\tilde{\star}}{b}^{k} must produce a twisted nn-form. Additionally, it has the property ~~=(1)k(nk)\operatorname{\tilde{\star}}\operatorname{\tilde{\star}}=(-1)^{k(n-k)}, just like \star.

2.3 Vector Proxies

Consider a vector 𝐯\operatorname{\mathbf{v}} and a pseudovector 𝐯~\tilde{\operatorname{\mathbf{v}}}. Using the flat operator \flat, the interior product (contraction) i\mathrm{i} and the twisted volume form μ~n\tilde{\mu}^{n}, there are four vector proxies that can be constructed from 𝐯\operatorname{\mathbf{v}} and 𝐯~\tilde{\operatorname{\mathbf{v}}}:

v1\displaystyle{v}^{1} =\displaystyle= 𝐯,\displaystyle\operatorname{\mathbf{v}}^{\flat}, (2)
v~1\displaystyle\tilde{v}^{1} =\displaystyle= 𝐯~,\displaystyle\tilde{\operatorname{\mathbf{v}}}^{\flat}, (3)
vn1\displaystyle{v}^{n-1} =\displaystyle= i𝐯~μ~n=~v~1,\displaystyle\mathrm{i}_{\tilde{\operatorname{\mathbf{v}}}}\tilde{\mu}^{n}=\operatorname{\tilde{\star}}\tilde{v}^{1}, (4)
v~n1\displaystyle\tilde{v}^{n-1} =\displaystyle= i𝐯dV~n=~v1,\displaystyle\mathrm{i}_{\operatorname{\mathbf{v}}}\tilde{dV}^{n}=\operatorname{\tilde{\star}}{v}^{1}, (5)

where in the last two equations Hirani’s formula i𝐱α=(1)k(nk)~(~α𝐱)\mathrm{i}_{\mathbf{x}}\alpha=(-1)^{k(n-k)}\operatorname{\tilde{\star}}(\operatorname{\tilde{\star}}\alpha\wedge\mathbf{x}^{\flat}) [32] for an arbitrary kk-form α\alpha has been used. From these proxies it is clear that ~\operatorname{\tilde{\star}} transforms (straight) twisted circulations (11-forms) into (twisted) straight fluxes ((n1)(n-1)-forms), or vice versa (sometimes with a minus sign since ~~=(1)k(nk)\operatorname{\tilde{\star}}\operatorname{\tilde{\star}}=(-1)^{k(n-k)}). A direct transformation of circulations into circulations or fluxes into fluxes (i.e. between straight and twisted kk-forms) is accomplished through the use of the wedge product I~0\tilde{I}^{0}\wedge, for example xn1=I~0x~n1{x}^{n-1}=\tilde{I}^{0}\wedge\tilde{x}^{n-1}.

Remark 2.1

Note here the distinction between 11-forms (circulations) and (n1)(n-1)-forms (fluxes). In 2D (n=2n=2) they appear to be the same object since n1=1n-1=1. However, this obscures their true nature, and leads to convoluted notation (see for example [12]) that attempts to distinguish between them. In this work we will keep a clear distinction between the two.

2.4 Topological Pairing and Topological Functional Derivatives

Here we introduce new concepts that extend the existing split exterior calculus as introduced in [4], namely the topological pairing and a corresponding topological functional derivative, both crucial for this work. The first new concept in split exterior calculus is the topological pairing, which is defined by:

xk,y~nk:=𝕄xky~nk=(1)k(nk)𝕄y~nkxk=(1)k(nk)y~nk,xk.\left<\left<{{x}^{k}},{\tilde{y}^{n-k}}\right>\right>:=\int_{\mathbb{M}}{x}^{k}\wedge\tilde{y}^{n-k}=(-1)^{k(n-k)}\int_{\mathbb{M}}\tilde{y}^{n-k}\wedge{x}^{k}=(-1)^{k(n-k)}\left<\left<{\tilde{y}^{n-k}},{{x}^{k}}\right>\right>. (6)

This pairing is purely topological, since both the wedge product and integration of a differential form do not require reference to a metric. The topological pairing can be connected to the inner product (which does require a metric, for the Hodge star ~\operatorname{\tilde{\star}}) through:

ak,b~nk\displaystyle\left<\left<{{a}^{k}},{\tilde{b}^{n-k}}\right>\right> =\displaystyle= ak,bk,\displaystyle\left<{{a}^{k}},{{b}^{k}}\right>, (7)
a~k,bnk\displaystyle\left<\left<{\tilde{a}^{k}},{{b}^{n-k}}\right>\right> =\displaystyle= (1)k(nk)a~k,b~k,\displaystyle(-1)^{k(n-k)}\left<{\tilde{a}^{k}},{\tilde{b}^{k}}\right>, (8)

recalling the inner product of two straight kk-forms is defined as ak,bk:=𝕄ak~bk\left<{{a}^{k}},{{b}^{k}}\right>:=\int_{\mathbb{M}}{a}^{k}\wedge\tilde{\star}{b}^{k} (a definition that also holds for twisted forms).

Additionally, an integration by parts rule holds:

dxk1,y~nk+(1)k1xk1,dy~nk=δ𝕄tr(xk1y~nk),\displaystyle\left<\left<{\operatorname{d}{x}^{k-1}},{\tilde{y}^{n-k}}\right>\right>+(-1)^{k-1}\left<\left<{{x}^{k-1}},{\operatorname{d}\tilde{y}^{n-k}}\right>\right>=\int_{\delta\mathbb{M}}tr({x}^{k-1}\wedge\tilde{y}^{n-k}), (9)
dx~k1,ynk+(1)k1x~k1,dynk=δ𝕄tr(x~k1ynk),\displaystyle\left<\left<{\operatorname{d}\tilde{x}^{k-1}},{{y}^{n-k}}\right>\right>+(-1)^{k-1}\left<\left<{\tilde{x}^{k-1}},{\operatorname{d}{y}^{n-k}}\right>\right>=\int_{\delta\mathbb{M}}tr(\tilde{x}^{k-1}\wedge{y}^{n-k}), (10)

where trtr is the trace operator. In the case of a domain without boundaries (such as the ones we consider here), the boundary term on the right-hand side drops out.

Secondly, we define topological functional derivatives relative to this pairing, through

Definition 2.2

The topological functional derivatives of [xk,y~k]:Λk×Λ~k\operatorname{\mathcal{F}}[{x}^{k},\tilde{y}^{k}]:\Lambda^{k}\times\tilde{\Lambda}^{k}\rightarrow\mathbb{R} with respect to the straight kk-form xk{x}^{k} and twisted kk-form x~k\tilde{x}^{k} and with respect to the topological pairing ,\left<\left<{},{}\right>\right> are defined by

δ:=limϵ01ϵ([xk+ϵωk][xk])=:ωk,δ~δxk=ωkδ~δxkωkΛk,resp.δ:=limϵ01ϵ([y~k+ϵω~k][y~k])=:ω~k,δ~δy~k=ω~kδ~δy~kω~kΛ~k,\begin{split}&\delta\operatorname{\mathcal{F}}:=\lim_{\epsilon\rightarrow 0}\frac{1}{\epsilon}\big{(}\operatorname{\mathcal{F}}[{x}^{k}+\epsilon\,{\omega}^{k}]-\operatorname{\mathcal{F}}[{x}^{k}]\big{)}=:\left<\left<{{\omega}^{k}},{\frac{\tilde{\delta}\!\operatorname{\mathcal{F}}}{\delta{x}^{k}}}\right>\right>=\int_{\mathcal{M}}{\omega}^{k}\wedge\frac{\tilde{\delta}\!\operatorname{\mathcal{F}}}{\delta{x}^{k}}\quad\forall{\omega}^{k}\in\Lambda^{k},\\ \text{resp.}\ &\delta\operatorname{\mathcal{F}}:=\lim_{\epsilon\rightarrow 0}\frac{1}{\epsilon}\big{(}\operatorname{\mathcal{F}}[\tilde{y}^{k}+\epsilon\,\tilde{\omega}^{k}]-\operatorname{\mathcal{F}}[\tilde{y}^{k}]\big{)}=:\left<\left<{\tilde{\omega}^{k}},{\frac{\tilde{\delta}\!\operatorname{\mathcal{F}}}{\delta\tilde{y}^{k}}}\right>\right>=\int_{\mathcal{M}}\tilde{\omega}^{k}\wedge\frac{\tilde{\delta}\!\operatorname{\mathcal{F}}}{\delta\tilde{y}^{k}}\quad\forall\tilde{\omega}^{k}\in\tilde{\Lambda}^{k},\end{split} (11)

for arbitrary test functions ωk{\omega}^{k} (resp. ω~k\tilde{\omega}^{k}). In particular for xkΛk{x}^{k}\in\Lambda^{k} the topological functional derivative δ~δxkΛ~nk\frac{\tilde{\delta}\!\operatorname{\mathcal{F}}}{\delta{x}^{k}}\in\tilde{\Lambda}^{n-k} is a twisted (nk)(n-k)-form, while for y~kΛ~k\tilde{y}^{k}\in\tilde{\Lambda}^{k} the topological functional derivative δ~δy~kΛ(nk)\frac{\tilde{\delta}\!\operatorname{\mathcal{F}}}{\delta\tilde{y}^{k}}\in\Lambda^{(n-k)} is a straight (nk)(n-k)-form.

Note that counting the tildes reveals easily the nature of the functional derivatives: an odd number of tildes give twisted differential forms, while an even number gives straight differential forms.

3 Continuous RSWE

We will now write the rotating shallow water equations (RSWE) in Hamiltonian form using both vector calculus and split exterior calculus. The former is mostly a review of material from [55, 19]. The two subsections are structured identically to help facilitate understanding, and enable quick comparison between these two approaches. These equations apply to an arbitrary 2D manifold without boundaries (for example, the sphere or doubly periodic plane), taking into account the fact that the operators can all be defined intrinsically and the vector fields are tangent to the manifold. The coordinate system is assumed to be an arbitrary rotating Eulerian coordinate system, with rotational velocity 𝐑\operatorname{\mathbf{R}} and Coriolis parameter f=𝐑f=\nabla^{\perp}\cdot\operatorname{\mathbf{R}}. This rotation is almost always chosen to correspond with the rotation of the underlying geophysical system (for example, the rotation of the Earth).

In the vector calculus form, the physical quantities are written in terms of scalars (aa and bb) and vectors (𝐱\mathbf{x} and 𝐲\mathbf{y}), and the key operators are: the differential operators gradient a\nabla a, skew-gradient a\nabla^{\perp}a, divergence 𝐱\nabla\cdot\mathbf{x} and curl 𝐱\nabla^{\perp}\cdot\mathbf{x}; the ”product” operators vector transpose 𝐱\mathbf{x}^{\perp}, vector dot product 𝐱𝐲\mathbf{x}\cdot\mathbf{y}, scalar product abab and mixed product a𝐲a\mathbf{y} or a𝐲a\mathbf{y}^{\perp}; and the inner product ,\left<{},{}\right>, which is defined as a,b=Ωab\left<{a},{b}\right>=\int_{\Omega}ab for scalars and 𝐱,𝐲=Ω𝐱𝐲\left<{\mathbf{x}},{\mathbf{y}}\right>=\int_{\Omega}\mathbf{x}\cdot\mathbf{y} for vectors. Functional derivatives are defined relative to the appropriate inner product.

Remark 3.1

For a 2D manifold embedded in 3\mathbb{R}^{3} with unit normal vector 𝐤^\operatorname{\mathbf{\hat{k}}} (in 3\mathbb{R}^{3}), if we consider the vector 𝐱\mathbf{x} to lie in 3\mathbb{R}^{3} (recalling it is still tangent to the manifold), some of these operators take simpler forms in terms of common operators (gradient 3\nabla_{3} and curl 3×\nabla_{3}\times, along with cross product ×\times and dot product \cdot) from vector calculus in 3\mathbb{R}^{3}: 𝐱=𝐤^×𝐱\mathbf{x}^{\perp}=\operatorname{\mathbf{\hat{k}}}\times\mathbf{x}, x=𝐤^×3x\nabla^{\perp}x=\operatorname{\mathbf{\hat{k}}}\times\nabla_{3}x, 𝐱=𝐤^3×𝐱\nabla^{\perp}\cdot\mathbf{x}=\operatorname{\mathbf{\hat{k}}}\cdot\nabla_{3}\times\mathbf{x}. However, all of the 2D operators can also be defined intrinsically without requiring that the manifold is embedded in 3\mathbb{R}^{3} and without reference to a 𝐤^\operatorname{\mathbf{\hat{k}}}.

In the split exterior calculus form the physical quantities are written in terms of straight kk-forms xk{x}^{k} and twisted kk-forms x~k\tilde{x}^{k}; and the key operators are the exterior derivative d\operatorname{d}, the wedge product \wedge, the twisted Hodge star ~\operatorname{\tilde{\star}}, the metric inner product ,\left<{},{}\right> and the topological pairing ,\left<\left<{},{}\right>\right>. Compared to vector calculus, the number of operators is greatly reduced. As discussed above, for split exterior calculus we use the topological functional derivative defined relative to the topological pairing, since the topological functional derivative gives a natural splitting between topological parts of the equations (the Poisson brackets) and the metric parts of the equations (the Hamiltonian and it’s functional derivatives). This splitting is explored in more detail below.

See Appendix D for identities relating the quantities and operators of vector calculus and split exterior calculus in 2D. In particular, scalars are either 0-forms or 22-forms and vectors are either 11-forms or (n1)(n-1)-forms (recalling that we are in 2D and therefore n1=1n-1=1), the differential operators are composed of the exterior derivative d\operatorname{d} plus the Hodge star ~\operatorname{\tilde{\star}}, the product operators are composed of the wedge product \wedge plus the Hodge star ~\operatorname{\tilde{\star}}, and the inner products for scalars and vectors become either the inner product for differential forms or the topological pairing.

3.1 Vector Calculus

Consider the RSWE with fluid height hh, relative velocity 𝐮\operatorname{\mathbf{u}}, absolute velocity 𝐯=𝐮+𝐑\operatorname{\mathbf{v}}=\operatorname{\mathbf{u}}+\operatorname{\mathbf{R}}, bottom topography hsh_{s}, Coriolis parameter ff, relative vorticity ζ=𝐮\zeta=\nabla^{\perp}\cdot\operatorname{\mathbf{u}}, absolute vorticity η=𝐯=ζ+f\eta=\nabla^{\perp}\cdot\operatorname{\mathbf{v}}=\zeta+f, and potential vorticity qq (defined through hq=ηhq=\eta). The equations of motion for hh and 𝐯\operatorname{\mathbf{v}} are

𝐯t+f𝐮+ζ𝐮+(gh+ghs+𝐮𝐮2)\displaystyle\frac{\partial\operatorname{\mathbf{v}}}{\partial t}+f\operatorname{\mathbf{u}}^{\perp}+\zeta\operatorname{\mathbf{u}}^{\perp}+\nabla(gh+gh_{s}+\frac{\operatorname{\mathbf{u}}\cdot\operatorname{\mathbf{u}}}{2}) =\displaystyle= 0,\displaystyle 0, (12)
ht+(h𝐮)\displaystyle\frac{\partial h}{\partial t}+\nabla\cdot(h\operatorname{\mathbf{u}}) =\displaystyle= 0.\displaystyle 0. (13)

Their linearized form (around h=Hh=H, 𝐮=0\operatorname{\mathbf{u}}=0) is given by

𝐯t+f𝐮+(gh+ghs)\displaystyle\frac{\partial\operatorname{\mathbf{v}}}{\partial t}+f\operatorname{\mathbf{u}}^{\perp}+\nabla(gh+gh_{s}) =\displaystyle= 0,\displaystyle 0, (14)
ht+(H𝐮)\displaystyle\frac{\partial h}{\partial t}+\nabla\cdot(H\operatorname{\mathbf{u}}) =\displaystyle= 0,\displaystyle 0, (15)

where primes have been dropped for convenience. The linear equations will be useful when discretizing, to understand the behaviour of the scheme for steady geostrophic modes.

3.1.1 Hamiltonian Form

These equations can be put into Hamiltonian form (see [56]) using the Hamiltonian [𝐯,h]\operatorname{\mathcal{H}}[\operatorname{\mathbf{v}},h]:

[𝐯,h]=g2h,h+gh,hs+h,𝐮𝐮2,\mathcal{H}[\operatorname{\mathbf{v}},h]=\frac{g}{2}\left<{h},{h}\right>+g\left<{h},{h_{s}}\right>+\left<{h},{\frac{\operatorname{\mathbf{u}}\cdot\operatorname{\mathbf{u}}}{2}}\right>, (16)

and Poisson brackets {𝒜,}\{\operatorname{\mathcal{A}},\operatorname{\mathcal{B}}\} for arbitrary functionals 𝒜,\operatorname{\mathcal{A}},\operatorname{\mathcal{B}}:

{𝒜,}=δ𝒜δ𝐯,qδδ𝐯δ𝒜δ𝐯,δδhδ𝒜δh,δδ𝐯,\{\operatorname{\mathcal{A}},\operatorname{\mathcal{B}}\}=-\left<\frac{\delta\!\operatorname{\mathcal{A}}}{\delta\operatorname{\mathbf{v}}},q\frac{\delta\!\operatorname{\mathcal{B}}}{\delta\operatorname{\mathbf{v}}}^{\perp}\right>-\left<\frac{\delta\!\operatorname{\mathcal{A}}}{\delta\operatorname{\mathbf{v}}},\nabla\frac{\delta\!\operatorname{\mathcal{B}}}{\delta h}\right>-\left<\frac{\delta\!\operatorname{\mathcal{A}}}{\delta h},\nabla\cdot\frac{\delta\!\operatorname{\mathcal{B}}}{\delta\operatorname{\mathbf{v}}}\right>, (17)

recalling that qq is defined through hq=𝐯=ηhq=\nabla^{\perp}\cdot\operatorname{\mathbf{v}}=\eta. The last term in [𝐯,h]\operatorname{\mathcal{H}}[\operatorname{\mathbf{v}},h] (the kinetic energy) can also be written as 12h𝐮,𝐮\frac{1}{2}\left<{h\operatorname{\mathbf{u}}},{\operatorname{\mathbf{u}}}\right>. The functional derivatives of [𝐯,h]\operatorname{\mathcal{H}}[\operatorname{\mathbf{v}},h] are

𝐅:=δδ𝐯=h𝐮,B:=δδh=gh+ghs+𝐮𝐮2.\displaystyle\operatorname{\mathbf{F}}:=\frac{\delta\!\operatorname{\mathcal{H}}}{\delta\operatorname{\mathbf{v}}}=h\operatorname{\mathbf{u}},\quad\quad\quad B:=\frac{\delta\!\operatorname{\mathcal{H}}}{\delta h}=gh+gh_{s}+\frac{\operatorname{\mathbf{u}}\cdot\operatorname{\mathbf{u}}}{2}. (18)

Inserting the functional derivatives (18) into the Poisson brackets (17) and using =x^,x\operatorname{\mathcal{F}}=\left<\hat{x},x\right> for x(h,𝐯)x\in(h,\operatorname{\mathbf{v}}) with arbitrary test function x^(h^,𝐯^)\hat{x}\in(\hat{h},\hat{\operatorname{\mathbf{v}}}) gives the equations of motion:

𝐯t+q𝐅+B\displaystyle\frac{\partial\operatorname{\mathbf{v}}}{\partial t}+q\operatorname{\mathbf{F}}^{\perp}+\nabla B =\displaystyle= 0,\displaystyle 0, (19)
ht+𝐅\displaystyle\frac{\partial h}{\partial t}+\nabla\cdot\operatorname{\mathbf{F}} =\displaystyle= 0,\displaystyle 0, (20)

which upon substitution of the specific values of the functional derivatives reduce to (12) - (13).

Casimirs

The general expression for the RSWE Casimirs 𝒞[𝐯,h]\operatorname{\mathcal{C}}[\operatorname{\mathbf{v}},h] is given by

𝒞[𝐯,h]=hf(q),\operatorname{\mathcal{C}}[\operatorname{\mathbf{v}},h]=\int hf(q), (21)

with arbitrary function f(q)f(q), which has functional derivatives

δ𝒞δ𝐯=f(q),δ𝒞δh=f(q)qf(q),\displaystyle\frac{\delta\!\operatorname{\mathcal{C}}}{\delta\operatorname{\mathbf{v}}}=-\nabla^{\perp}f^{\prime}(q),\quad\quad\quad\frac{\delta\!\operatorname{\mathcal{C}}}{\delta h}=f(q)-qf^{\prime}(q), (22)

where we have used q=𝐯hq=\frac{\nabla^{\perp}\cdot\operatorname{\mathbf{v}}}{h} and also integrated by parts (and dropped boundary terms since we are in a domain without boundaries). Insertion of (22) into the Poisson brackets (17) confirms (after some algebra) that

{𝒞,𝒜}=0\{\operatorname{\mathcal{C}},\operatorname{\mathcal{A}}\}=0 (23)

for any 𝒜\operatorname{\mathcal{A}}. Important examples of RSWE Casimirs are total mass (f=1f=1), total mass-weighted potential vorticity (total circulation) (f=qf=q) and total potential enstrophy (f=q22f=\frac{q^{2}}{2}).

Vorticity Dynamics

The evolution equation for absolute vorticity η\eta is obtained by taking \nabla^{\perp}\cdot of (19) yielding

ηt+(q𝐅)=0.\frac{\partial\eta}{\partial t}+\nabla\cdot(q\operatorname{\mathbf{F}})=0. (24)

The last term in (24) can also be written as (q𝐅)\nabla^{\perp}\cdot(q\operatorname{\mathbf{F}}^{\perp}). Using (24) and (20) we can get an evolution equation for qq as

qt+𝐅hq=0.\frac{\partial q}{\partial t}+\frac{\operatorname{\mathbf{F}}}{h}\cdot\nabla q=0. (25)

The last term in (25) can also be written as 𝐅hq\frac{\operatorname{\mathbf{F}}^{\perp}}{h}\cdot\nabla^{\perp}q. From (25) we see that qq is materially conserved, since 𝐅h=𝐮\frac{\operatorname{\mathbf{F}}}{h}=\operatorname{\mathbf{u}} is the material velocity. Vorticity dynamics will be useful for understanding the PV compatibility behaviour of the discrete scheme.

Linearized Equations

Following standard procedures [57] the Hamiltonian form can be linearized around h=Hh=H, 𝐮=0\operatorname{\mathbf{u}}=0 to yield for arbitrary 𝒜,\operatorname{\mathcal{A}},\operatorname{\mathcal{B}}

{𝒜,}lin=δ𝒜δ𝐯,fHδδ𝐯δ𝒜δ𝐯,δδhδ𝒜δh,δδ𝐯,\{\operatorname{\mathcal{A}},\operatorname{\mathcal{B}}\}_{lin}=-\left<\frac{\delta\!\operatorname{\mathcal{A}}}{\delta\operatorname{\mathbf{v}}},\frac{f}{H}\frac{\delta\!\operatorname{\mathcal{B}}}{\delta\operatorname{\mathbf{v}}}^{\perp}\right>-\left<\frac{\delta\!\operatorname{\mathcal{A}}}{\delta\operatorname{\mathbf{v}}},\nabla\frac{\delta\!\operatorname{\mathcal{B}}}{\delta h}\right>-\left<\frac{\delta\!\operatorname{\mathcal{A}}}{\delta h},\nabla\cdot\frac{\delta\!\operatorname{\mathcal{B}}}{\delta\operatorname{\mathbf{v}}}\right>, (26)

and

lin[𝐯,h]=gh22+ghhs+H𝐮𝐮2.\mathcal{H}_{lin}[\operatorname{\mathbf{v}},h]=\int g\frac{h^{2}}{2}+ghh_{s}+H\frac{\operatorname{\mathbf{u}}\cdot\operatorname{\mathbf{u}}}{2}. (27)

The functional derivatives are thus

𝐅lin:=δlinδ𝐯=H𝐮,Blin:=δlinδh=gh+ghs,\displaystyle\operatorname{\mathbf{F}}_{lin}:=\frac{\delta\!\operatorname{\mathcal{H}}_{lin}}{\delta\operatorname{\mathbf{v}}}=H\operatorname{\mathbf{u}},\quad\quad\quad B_{lin}:=\frac{\delta\!\operatorname{\mathcal{H}}_{lin}}{\delta h}=gh+gh_{s}, (28)

with equations of motion

𝐯t+fH𝐅lin+Blin\displaystyle\frac{\partial\operatorname{\mathbf{v}}}{\partial t}+\frac{f}{H}\operatorname{\mathbf{F}}_{lin}^{\perp}+\nabla B_{lin} =\displaystyle= 0,\displaystyle 0, (29)
ht+𝐅lin\displaystyle\frac{\partial h}{\partial t}+\nabla\cdot\operatorname{\mathbf{F}}_{lin} =\displaystyle= 0.\displaystyle 0. (30)

Insertion of (28) into (29) - (30) gives (14) - (15). The linearized dynamics will be useful for understanding the linear modes behaviour of the discrete scheme.

3.2 Split Exterior Calculus

We will now present the same development using split exterior calculus instead of vector calculus. The two sections are structured the same, and it is highly instructive to compare them.

Consider the RSWE with fluid height twisted 2-form h~2\tilde{h}^{2}, relative velocity straight 1-form u1{u}^{1}, rotational velocity straight 1-form R1{R}^{1}, absolute velocity straight 1-form v1=u1+R1{v}^{1}={u}^{1}+{R}^{1}, bottom topography twisted 2-form hs~2\tilde{h_{s}}^{2}, Coriolis parameter straight 2-form f2=dR1{f}^{2}=\operatorname{d}{R}^{1}, relative vorticity straight 2-form ζ2=du1{\zeta}^{2}=\operatorname{d}{u}^{1}, absolute vorticity straight 2-form η2=dv1=ζ2+f2{\eta}^{2}=\operatorname{d}{v}^{1}={\zeta}^{2}+{f}^{2}, and potential vorticity twisted 0-form q~0\tilde{q}^{0} (defined through h~2q~0=η2\tilde{h}^{2}\wedge\tilde{q}^{0}={\eta}^{2}). The correspondence between these objects and their vector calculus analogues is given in Table 1. These choices of types and degrees of forms for the various physical quantities are motivated by the work of Tonti and collaborators [71, 70], who conclusively demonstrated the association of physical quantities with oriented geometric entities, which are nothing more than straight and twisted differential forms. The same choices were made in [4, 23, 65].

Vector Calculus Split Exterior Calculus
hh h~2\tilde{h}^{2} or h0{h}^{0}
𝐯\operatorname{\mathbf{v}} v1{v}^{1}
𝐮\operatorname{\mathbf{u}} u~n1\tilde{u}^{n-1} or u1{u}^{1}
𝐑\operatorname{\mathbf{R}} R1{R}^{1}
hsh_{s} hs~2\tilde{h_{s}}^{2} or hs0{h_{s}}^{0}
ff f2{f}^{2} or f~0\tilde{f}^{0}
η\eta η2{\eta}^{2} or η~0\tilde{\eta}^{0}
ζ\zeta ζ2{\zeta}^{2} or ζ~0\tilde{\zeta}^{0}
qq q~0\tilde{q}^{0}
𝐅\operatorname{\mathbf{F}} F~n1\tilde{F}^{n-1}
BB B0{B}^{0}
Table 1: The relationships between quantities in vector calculus and split exterior calculus forms of the RSWE. Note that many of the scalar quantities such as hh appear as both 0-forms and 22-forms. This corresponds to the fact that a standard vector calculus representation does not take into account whether a ”scalar” is actually a density, and also whether it is a normal or pseudo quantity. A similar thing happens with 𝐮\operatorname{\mathbf{u}}, which can be represented as either a circulation straight 11-form or a flux twisted (n1)(n-1)-form.

Introduce also the auxiliary quantities fluid height straight 0-form h0=~h~2{h}^{0}=\operatorname{\tilde{\star}}\tilde{h}^{2}, bottom topography straight 0-form hs0=~hs~2{h_{s}}^{0}=\operatorname{\tilde{\star}}\tilde{h_{s}}^{2}, relative velocity twisted (n1)(n\!-\!1)-form u~n1=~u1\tilde{u}^{n-1}=\operatorname{\tilde{\star}}{u}^{1}, relative vorticity twisted 0-form ζ~0=~ζ2\tilde{\zeta}^{0}=\operatorname{\tilde{\star}}{\zeta}^{2} and Coriolis parameter twisted 0-form f~0=~f2\tilde{f}^{0}=\operatorname{\tilde{\star}}{f}^{2}, which are related to the corresponding primary quantities through the Hodge star ~\operatorname{\tilde{\star}}.

The equations of motion for h~2\tilde{h}^{2} and v1{v}^{1} are given by:

v1t+f~0u~n1+ζ~0u~n1+d(gh0+ghs0+~(u1u~n1)2)=0,\displaystyle\frac{\partial{v}^{1}}{\partial t}+\tilde{f}^{0}\wedge\tilde{u}^{n-1}+\tilde{\zeta}^{0}\wedge\tilde{u}^{n-1}+\operatorname{d}(g{h}^{0}+g{h_{s}}^{0}+\operatorname{\tilde{\star}}\frac{({u}^{1}\wedge\tilde{u}^{n-1})}{2})=0, (31)
h~2t+d(h0u~n1)=0.\displaystyle\frac{\partial\tilde{h}^{2}}{\partial t}+\operatorname{d}({h}^{0}\wedge\tilde{u}^{n-1})=0. (32)

Their linearized form (around h0=H{h}^{0}=H and u1=0{u}^{1}=0) is

v1t+f~0u~n1+d(gh0+ghs0)=0,\displaystyle\frac{\partial{v}^{1}}{\partial t}+\tilde{f}^{0}\wedge\tilde{u}^{n-1}+\operatorname{d}(g{h}^{0}+g{h_{s}}^{0})=0, (33)
h~2t+d(Hu~n1)=0,\displaystyle\frac{\partial\tilde{h}^{2}}{\partial t}+\operatorname{d}(H\tilde{u}^{n-1})=0, (34)

where primes have been dropped for convenience.

The equations (31) - (34) can be obtained by applying the relationships in Appendix D to (12) - (15).777A more fundamental derivation [36] is possible by starting with an Euler-Poincaré variational formulation based on semi-direct product theory and written in terms of split exterior calculus; and then applying a Legendre transform to get a Lie-Poisson Hamiltonian formulation, and finally making a change of variables from momentum to velocity to get a curl-form Hamiltonian formulation as used here.

3.2.1 Hamiltonian Form

Equations (31) - (32) can be put into Hamiltonian form using the Hamiltonian [v1,h~2]\operatorname{\mathcal{H}}[{v}^{1},\tilde{h}^{2}]:

[v1,h~2]=g2h~2,h~2+gh~2,hs~2+h~2,u1u~n12,\operatorname{\mathcal{H}}[{v}^{1},\tilde{h}^{2}]=\frac{g}{2}\left<{\tilde{h}^{2}},{\tilde{h}^{2}}\right>+g\left<{\tilde{h}^{2}},{\tilde{h_{s}}^{2}}\right>+\left<{\tilde{h}^{2}},{\frac{{u}^{1}\wedge\tilde{u}^{n-1}}{2}}\right>, (35)

(the ordering u1u~n1{u}^{1}\wedge\tilde{u}^{n-1} is important due to anti-symmetry of the wedge product) and Poisson bracket for arbitrary 𝒜,\operatorname{\mathcal{A}},\operatorname{\mathcal{B}}:

{𝒜,}=δ~𝒜δv1,q~0δ~δv1δ~𝒜δv1,dδ~δh~2δ~𝒜δh~2,dδ~δv1,\{\operatorname{\mathcal{A}},\operatorname{\mathcal{B}}\}=-\left<\left<{\frac{\tilde{\delta}\!\operatorname{\mathcal{A}}}{\delta{v}^{1}}},{\tilde{q}^{0}\wedge\frac{\tilde{\delta}\!\operatorname{\mathcal{B}}}{\delta{v}^{1}}}\right>\right>-\left<\left<{\frac{\tilde{\delta}\!\operatorname{\mathcal{A}}}{\delta{v}^{1}}},{\operatorname{d}\frac{\tilde{\delta}\!\operatorname{\mathcal{B}}}{\delta\tilde{h}^{2}}}\right>\right>-\left<\left<{\frac{\tilde{\delta}\!\operatorname{\mathcal{A}}}{\delta\tilde{h}^{2}}},{\operatorname{d}\frac{\tilde{\delta}\!\operatorname{\mathcal{B}}}{\delta{v}^{1}}}\right>\right>, (36)

where ,\left<\left<{},{}\right>\right> is the topological pairing defined in Eqn. (6). The last term in [v1,h~2]\operatorname{\mathcal{H}}[{v}^{1},\tilde{h}^{2}] can also be written as 12u1,h0u1=12u~n1,h0u~n1\frac{1}{2}\left<{{u}^{1}},{{h}^{0}\wedge{u}^{1}}\right>=\frac{1}{2}\left<{\tilde{u}^{n-1}},{{h}^{0}\wedge\tilde{u}^{n-1}}\right> and we recall that v1=u1+R1{v}^{1}={u}^{1}+{R}^{1}.

A key point is that the Poisson brackets are purely topological: they involve only the wedge product, exterior derivative and topological pairing, all of which can be defined without using a metric. All of the metric information is present in the Hamiltonian, through the Hodge star that is part of the definition of the inner product.

The functional derivatives of [v1,h~2]\operatorname{\mathcal{H}}[{v}^{1},\tilde{h}^{2}] are

F~n1:=δ~δv1=12[h0u~n1+~(h0u1)],B0:=δ~δh~2=gh0+ghs0+~(u1u~n1)2.\tilde{F}^{n-1}:=\frac{\tilde{\delta}\!\operatorname{\mathcal{H}}}{\delta{v}^{1}}=\frac{1}{2}\left[{h}^{0}\wedge\tilde{u}^{n-1}+\operatorname{\tilde{\star}}({h}^{0}\wedge{u}^{1})\right],\quad\quad{B}^{0}:=\frac{\tilde{\delta}\!\operatorname{\mathcal{H}}}{\delta\tilde{h}^{2}}=g{h}^{0}+g{h_{s}}^{0}+\operatorname{\tilde{\star}}\frac{({u}^{1}\wedge\tilde{u}^{n-1})}{2}. (37)

In taking the first functional derivative (δ~δv1\frac{\tilde{\delta}\!\operatorname{\mathcal{H}}}{\delta{v}^{1}}), we have used the linearity of the Hodge star to write δu~n1=δ~u1=~δu1\delta\tilde{u}^{n-1}=\delta\operatorname{\tilde{\star}}{u}^{1}=\operatorname{\tilde{\star}}\delta{u}^{1}. In the continuous case, it possible to simplify F~n1\tilde{F}^{n-1} as h0u~n1{h}^{0}\wedge\tilde{u}^{n-1}. However, this simplification will be valid only for certain choices of operators in the discrete case.

Inserting the functional derivatives (37) into the Poisson brackets (36) and using =x^,x\operatorname{\mathcal{F}}=\left<\hat{x},x\right> for x(h~2,v1)x\in(\tilde{h}^{2},{v}^{1}) with arbitrary test function x^(h~2^,v1^)\hat{x}\in(\widehat{\tilde{h}^{2}},\widehat{{v}^{1}}) gives the equations of motion:

v1t+q~0F~n1+dB0=0,\displaystyle\frac{\partial{v}^{1}}{\partial t}+\tilde{q}^{0}\wedge\tilde{F}^{n-1}+\operatorname{d}{B}^{0}=0, (38)
h~2t+dF~n1=0,\displaystyle\frac{\partial\tilde{h}^{2}}{\partial t}+\operatorname{d}\tilde{F}^{n-1}=0, (39)

which upon substitution of the specific values of the functional derivatives reduce to (31) - (32).

Casimirs

The general expression for RSWE Casimirs 𝒞[v1,h~2]\operatorname{\mathcal{C}}[{v}^{1},\tilde{h}^{2}] is given by

𝒞[v1,h~2]=h0,F(q0),\operatorname{\mathcal{C}}[{v}^{1},\tilde{h}^{2}]=\left<{{h}^{0}},{F({q}^{0})}\right>, (40)

where F(q0)F({q}^{0}) is an arbitrary function of potential vorticity straight 0-form q0=I~0q~0{q}^{0}=\tilde{I}^{0}\wedge\tilde{q}^{0}. The functional derivatives of 𝒞[v1,h~2]\operatorname{\mathcal{C}}[{v}^{1},\tilde{h}^{2}] are

δ~𝒞δv1=d(I~0F),δ~𝒞δh~2=Fq0F,\displaystyle\frac{\tilde{\delta}\!\operatorname{\mathcal{C}}}{\delta{v}^{1}}=\operatorname{d}(\tilde{I}^{0}\wedge F^{\prime}),\quad\quad\frac{\tilde{\delta}\!\operatorname{\mathcal{C}}}{\delta\tilde{h}^{2}}=F-{q}^{0}\wedge F^{\prime}, (41)

where F=dFdq0F^{\prime}=\frac{dF}{d{q}^{0}}. Important cases are F=1F=1 (total mass), F=q0F={q}^{0} (total circulation) and F=q0q02F=\frac{{q}^{0}\wedge{q}^{0}}{2} (total potential enstrophy).

Vorticity Dynamics

The evolution equation for absolute vorticity η2{\eta}^{2} is obtained by taking d\operatorname{d} of (38) yielding

η2t=(q~0h~2)t=(q0h2)t=d(q~0F~n1),\frac{\partial{\eta}^{2}}{\partial t}=\frac{\partial(\tilde{q}^{0}\wedge\tilde{h}^{2})}{\partial t}=\frac{\partial({q}^{0}\wedge{h}^{2})}{\partial t}=-\operatorname{d}(\tilde{q}^{0}\wedge\tilde{F}^{n-1}),\\ (42)

and for h2=I~0h~2{h}^{2}=\tilde{I}^{0}\wedge\tilde{h}^{2} by taking I~0\tilde{I}^{0}\wedge of (39) resulting in

h2t+d(I~0F~n1)=0.\frac{\partial{h}^{2}}{\partial t}+\operatorname{d}(\tilde{I}^{0}\wedge\tilde{F}^{n-1})=0. (43)

These can be combined with (39) to yield evolution equations for q~0\tilde{q}^{0} and q0{q}^{0}:

q~0t+~(1h0F~n1dq~0)=0,\frac{\partial\tilde{q}^{0}}{\partial t}+\operatorname{\tilde{\star}}(\frac{1}{{h}^{0}}\wedge\tilde{F}^{n-1}\wedge\operatorname{d}\tilde{q}^{0})=0, (44)
q0t+~(1h0F~n1dq0)=0.\frac{\partial{q}^{0}}{\partial t}+\operatorname{\tilde{\star}}(\frac{1}{{h}^{0}}\wedge\tilde{F}^{n-1}\wedge\operatorname{d}{q}^{0})=0. (45)

Note that the right-hand sides of (44) and (45) are just Lie derviatives, since 𝐮q~0=~(1h0F~n1dq~0)\mathcal{L}_{\operatorname{\mathbf{u}}}\tilde{q}^{0}=\operatorname{\tilde{\star}}(\frac{1}{{h}^{0}}\wedge\tilde{F}^{n-1}\wedge\operatorname{d}\tilde{q}^{0}), 𝐮q0=~(1h0F~n1dq0)\mathcal{L}_{\operatorname{\mathbf{u}}}{q}^{0}=\operatorname{\tilde{\star}}(\frac{1}{{h}^{0}}\wedge\tilde{F}^{n-1}\wedge\operatorname{d}{q}^{0}) and 𝐮η2=d(I~0F~n1)\mathcal{L}_{\operatorname{\mathbf{u}}}{\eta}^{2}=\operatorname{d}(\tilde{I}^{0}\wedge\tilde{F}^{n-1}). Thus we see that q~0\tilde{q}^{0} and q0{q}^{0} are materially conserved.

Linearized Equations

Following standard procedures [57] the Hamiltonian form can be linearized around h0=H{h}^{0}=H, u1=0{u}^{1}=0 to yield for arbitrary 𝒜,\operatorname{\mathcal{A}},\operatorname{\mathcal{B}}:

{𝒜,}lin=δ~𝒜δv1,f~0Hδ~δv1δ~𝒜δv1,dδ~δh~2δ~𝒜δh~2,dδ~δv1,\{\operatorname{\mathcal{A}},\operatorname{\mathcal{B}}\}_{lin}=-\left<\left<{\frac{\tilde{\delta}\!\operatorname{\mathcal{A}}}{\delta{v}^{1}}},{\frac{\tilde{f}^{0}}{H}\wedge\frac{\tilde{\delta}\!\operatorname{\mathcal{B}}}{\delta{v}^{1}}}\right>\right>-\left<\left<{\frac{\tilde{\delta}\!\operatorname{\mathcal{A}}}{\delta{v}^{1}}},{\operatorname{d}\frac{\tilde{\delta}\!\operatorname{\mathcal{B}}}{\delta\tilde{h}^{2}}}\right>\right>-\left<\left<{\frac{\tilde{\delta}\!\operatorname{\mathcal{A}}}{\delta\tilde{h}^{2}}},{\operatorname{d}\frac{\tilde{\delta}\!\operatorname{\mathcal{B}}}{\delta{v}^{1}}}\right>\right>, (46)

and

lin[v1,h~2]=g2h~2,h~2+gh~2,hs~2+H2u1,u1.\mathcal{H}_{lin}[{v}^{1},\tilde{h}^{2}]=\frac{g}{2}\left<{\tilde{h}^{2}},{\tilde{h}^{2}}\right>+g\left<{\tilde{h}^{2}},{\tilde{h_{s}}^{2}}\right>+\frac{H}{2}\left<{{u}^{1}},{{u}^{1}}\right>. (47)

The functional derivatives are thus

F~linn1:=δ~linδv1=Hu~n1,Blin:=δ~linδh~2=gh0+ghs0,\displaystyle\tilde{F}^{n-1}_{lin}:=\frac{\tilde{\delta}\!\operatorname{\mathcal{H}}_{lin}}{\delta{v}^{1}}=H\tilde{u}^{n-1},\quad\quad\quad B_{lin}:=\frac{\tilde{\delta}\!\operatorname{\mathcal{H}}_{lin}}{\delta\tilde{h}^{2}}=g{h}^{0}+g{h_{s}}^{0}, (48)

with equations of motion

v1t+f~0HF~linn1+dBlin0\displaystyle\frac{\partial{v}^{1}}{\partial t}+\frac{\tilde{f}^{0}}{H}\wedge\tilde{F}^{n-1}_{lin}+\operatorname{d}{B}^{0}_{lin} =\displaystyle= 0,\displaystyle 0, (49)
h~2t+dF~linn1\displaystyle\frac{\partial\tilde{h}^{2}}{\partial t}+\operatorname{d}\tilde{F}^{n-1}_{lin} =\displaystyle= 0.\displaystyle 0. (50)

Insertion of (48) into (49) - (50) gives (33) - (34).

4 A Discrete Exterior Calculus in 2D

In order to discretize the split exterior calculus form of the RSWE, we now introduce a discrete exterior calculus (DEC) in 2D without boundaries. Much of this material is based on [65] and [23], with some extensions. Fundamentally, DEC is composed of discrete versions of the key elements of split exterior calculus: straight kk-forms xk{x}^{k}, twisted kk-forms x~k\tilde{x}^{k}, exterior derivative d\operatorname{d}, wedge product \wedge, Hodge star ~\operatorname{\tilde{\star}}, inner product ,\left<{},{}\right> and the topological pairing ,\left<\left<{},{}\right>\right> (along with functional derviatives associated to the topological pairing). As shown in Section 8, these operators are in fact those that underlie TRiSK-type schemes. This connection was partially explored in [65, 23], but the importance of the wedge product and topological pairing was not recognized. In particular, what was missing was the formulation of the continuous RSWE in terms of split exterior calculus, from which the full correspondence between TRiSK-type schemes and DEC can be deduced.

In this paper we will (other than in Section 7 and 8, to facilitate comparison with the more common TRiSK notation) denote the discrete exterior derivative with 𝐃k\mathbf{D}_{k} and 𝐃¯k\mathbf{\bar{D}}_{k}; the discrete Hodge star with 𝐇k\mathbf{H}_{k} and 𝐇¯k\mathbf{\bar{H}}_{k} and the discrete wedge product with h{}\boldsymbol{\wedge}_{h}{} (all explained further below). The discrete inner product ,\left<{},{}\right>, topological pairing ,\left<\left<{},{}\right>\right> and topological functional derivative δ~δ\frac{\tilde{\delta}\!}{\delta} will share the same notation as their continuous counterparts.

4.1 Grids

For DEC, a pair of related grids are used: a straight grid and a twisted grid, each composed of kk-cells (k=0,1,2k=0,1,2). A kk-cell is an oriented geometric entity of dimension kk: a 0-cell is a point (vv or v~\tilde{v}), a 11-cell is an edge (ee or e~\tilde{e}) and a 22-cell is a cell (cc or c~\tilde{c}). A collection of kk-cells for a given kk is a kk-chain.

Remark 4.1

In the DEC literature, the terminology primal (=straight) and dual (=twisted) are usually used. However, in the TRiSK-type scheme literature, this convention is flipped and primal=twisted and dual=straight. In this paper we avoid this confusion and will consistently use straight and twisted grid.

By oriented we mean that there is a value in {1,1}\{1,-1\} assigned to each of the (k1)(k-1)-cells that make up the boundary of each kk-cell, that denotes whether this boundary (k1)(k-1)-cell is oriented ”towards” or ”away” from the kk-cell. To each 11-cell (edge) we associate unit normal vectors 𝐧^𝐬\operatorname{\mathbf{\hat{n}_{s}}} (straight) and 𝐧^𝐭\operatorname{\mathbf{\hat{n}_{t}}} (twisted); and unit tangent vectors 𝐭^𝐬\operatorname{\mathbf{\hat{t}_{s}}} (straight), 𝐭^𝐭\operatorname{\mathbf{\hat{t}_{t}}} (twisted) such that 𝐧^𝐬𝐭^𝐬=0\operatorname{\mathbf{\hat{n}_{s}}}\cdot\operatorname{\mathbf{\hat{t}_{s}}}=0 and 𝐧^𝐭𝐭^𝐭=0\operatorname{\mathbf{\hat{n}_{t}}}\cdot\operatorname{\mathbf{\hat{t}_{t}}}=0. These vectors can vary across the edge, for example in the case of a curved edge. An orthogonal pair of grids will have 𝐧^𝐬=𝐭^𝐭\operatorname{\mathbf{\hat{n}_{s}}}=-\operatorname{\mathbf{\hat{t}_{t}}} and 𝐭^𝐬=𝐧^𝐭\operatorname{\mathbf{\hat{t}_{s}}}=\operatorname{\mathbf{\hat{n}_{t}}}, while a non-orthogonal pair of grids will not. An excellent description of the grid topology and orientation in DEC can be found in [71].

From these unit vectors we can define the orientation elements necn_{ec}, tevt_{ev} n~e~c~\tilde{n}_{\tilde{e}\tilde{c}} and t~e~v~\tilde{t}_{\tilde{e}\tilde{v}}, which all take values in {1,1}\{-1,1\}. Following exterior calculus conventions, the straight grid will be inner-oriented, and the twisted grid will be outer-oriented. An inner-oriented grid requires only the elements of the grid to orient itself, while an outer-oriented grid requires a notion of embedding in a larger space; or of duality with another grid. In fact, given an orientation for the straight grid, the twisted grid orientation is induced by simply setting t~e~v~=nec\tilde{t}_{\tilde{e}\tilde{v}}=n_{ec} and n~e~c~=tev\tilde{n}_{\tilde{e}\tilde{c}}=-t_{ev} (where duality between straight kk-cells and twisted (nk)(n-k)-cells has been used, see below). Using straight grid orientation to set twisted grid orientation ensures that the straight and twisted grid are consistently oriented.

These oriented kk-cells are arranged into a chain complex (also known as a CW complex from algebraic topology) that can be described by a directed acyclic graph (DAG) [71]. The two grids are related through topological duality: their respective DAG’s are dual to each other in the graph theoretic sense. In particular, duality means that there is a 1-1 relationship between straight kk-cells and twisted (nk)(n-k)-cells. This relationship is a fundamental part of DEC, and is used extensively (for example, in the discrete Hodge star operator). In what follows, we use ~\tilde{} to denote the twisted grid because it will be used to represent twisted kk-forms, and as noted before the kk-cells themselves are denoted with v,e,cv,e,c (straight) or v~,e~,c~\tilde{v},\tilde{e},\tilde{c} (twisted) for k=0,1,2k=0,1,2, respectively. Topological duality means that there is duality between vv and c~\tilde{c}, ee and e~\tilde{e} and cc and v~\tilde{v}. The topology (including orientation) for an example planar grid is shown in Figure 1.

Refer to caption
Figure 1: An example straight-twisted grid without boundaries, with the straight grid in solid blue and the twisted grid in dashed red. The unit normal vectors 𝐧^𝐬\operatorname{\mathbf{\hat{n}_{s}}} (straight) and 𝐧^𝐭\operatorname{\mathbf{\hat{n}_{t}}} (twisted); and unit tangent vectors 𝐭^𝐬\operatorname{\mathbf{\hat{t}_{s}}} (straight) and 𝐭^𝐭\operatorname{\mathbf{\hat{t}_{t}}} (twisted) for edges ee and e~\tilde{e} (which are dual to each other) are also shown. The 1-1 relationship between kk-cells and (nk)(n-k)-cells is clearly visible. Some kk-cells on both the straight and twisted grid are labeled, which correspond to the discrete differential forms in Figure 3.
Remark 4.2

In the case that 𝕄3\mathbb{M}\subset\mathbb{R}^{3}, it can be useful to define a unit outward normal 𝐤^\operatorname{\mathbf{\hat{k}}} to 𝕄\mathbb{M}. This can then be used to define 𝐭^𝐬\operatorname{\mathbf{\hat{t}_{s}}} and 𝐭^𝐭\operatorname{\mathbf{\hat{t}_{t}}} using a right-hand rule as 𝐭^𝐬=𝐤^×𝐧^𝐬\operatorname{\mathbf{\hat{t}_{s}}}=\operatorname{\mathbf{\hat{k}}}\times\operatorname{\mathbf{\hat{n}_{s}}} and 𝐭^𝐭=𝐤^×𝐧^𝐭\operatorname{\mathbf{\hat{t}_{t}}}=\operatorname{\mathbf{\hat{k}}}\times\operatorname{\mathbf{\hat{n}_{t}}}. In fact, this is what is typically done for TRiSK-type schemes. This constitutes a choice of orientation for the underlying grid. However, this is not necessary and the discrete grids can be oriented without a 𝐤^\operatorname{\mathbf{\hat{k}}}, including the case when 𝕄3\mathbb{M}\not\subset\mathbb{R}^{3}.

On each grid, we can define a set of stencils that encompass the lower and higher-dimensional nearest-neighbor ll-cells that surround a given kk-cell. Specifically, for vertices vv we have CV(v)CV(v) for the nearest-neighbor cells cc and EV(v)EV(v) for the nearest-neighbor edges; for edges ee we have CE(e)CE(e) and VE(e)VE(e) and for cells cc we have EC(c)EC(c) and VC(c)VC(c). It will also be useful to introduce the stencil ECP(e)ECP(e), which denotes the set of all edges ee^{\prime} that are in EC(c)EC(c) for cells cc in CE(e)CE(e); in other words it is the composition EC(CE(e))EC(CE(e)). Examples of these stencils can be found in [65].

4.1.1 Grid Geometry

So far only the topological aspects of the straight and twisted grids have been discussed. To complete their description, geometric information must be introduced. Each geometric entity has a size associated with it: lengths AeA_{e} and Ae~A_{\tilde{e}} for edges, areas AcA_{c} and Ac~A_{\tilde{c}} for cells, and sizes for vertices AvA_{v} and Av~A_{\tilde{v}} (defined to be 11). It is also useful to introduce the extended area A~e~\tilde{A}_{\tilde{e}} and the overlap areas Ac,c~A_{c,\tilde{c}} and Ac~,e~A_{\tilde{c},\tilde{e}}. A~e~\tilde{A}_{\tilde{e}} is the extended area associated with edge e~\tilde{e}; while Ac,c~A_{c,\tilde{c}} is the overlap area between straight cell cc and twisted cell c~\tilde{c} and Ac~,e~A_{\tilde{c},\tilde{e}} is the overlap area between twisted cell c~\tilde{c} and extended edge area A~e~\tilde{A}_{\tilde{e}}. Other overlap areas and extended areas can be similarly defined, but they are not needed for the DEC so we omit them. These sizes and overlap areas are shown in Figure 2. In the same way that the topology of the twisted grid can be obtained from the topology of the straight grid through a notion of topological duality, the geometry of the twisted grid can be obtained from the straight grid through a notion of geometric duality. A commonly used approach is circumcentric/Voronoi duality, which places twisted grid vertices at the circumcenters of the straight grid cells. If the grid is optimized such that the circumcenter is also the centroid, this is a centroidal Voronoi tessellation (CVT) [43, 38, 15]. Other approaches to geometric duality and grid optimization include generalized power grids [24], spring-dynamics [69, 37], barycentric [32], Hodge-optimized triangulations [46] and tweaking [28, 29]. The choice of geometric duality is often intimately connected to the choice of discrete Hodge star operator, for example the Voronoi Hodge star is associated with circumcentric duality and the barycentric Hodge star with barycentric duality. Certain choices of geometric duality lead to orthogonality between the straight and dual grids. It is also possible to use a grid with curved instead of straight edges: the topology does not change but the geometry does. Curved edges are useful, for example, to treat complex boundaries more accurately or to define a grid as a continuous deformation applied to a regular polygonal grid, as done in [73].

Refer to caption
Figure 2: Example geometric objects for the same straight-twisted grid as in Figure 1. Specifically, the overlap areas Ac~,cA_{\tilde{c},c} (stripes) and Ac~1,e~1A_{\tilde{c}_{1},\tilde{e}_{1}} (waves) are shown, along with the extended edge area A~e~\tilde{A}_{\tilde{e}} (checkerboard). These quantities are used in the definition of metric PV and KE wedge products (see definitions below). Not illustrated are the straight kk-cells areas AvA_{v} (defined to be 1), AeA_{e} (length of edge ee) and AcA_{c} (area of cell cc) and the twisted kk-cell areas Av~A_{\tilde{v}} (defined to be 1), Ae~A_{\tilde{e}} (length of edge e~)\tilde{e}) and Ac~A_{\tilde{c}} (area of cell c~\tilde{c}), which are self-explanatory, and are used in the Voronoi Hodge star.

4.2 Discrete Differential Forms

A discrete differential kk-form (xk{x}^{k} or x~k\tilde{x}^{k})888Note that we use the same symbols for continuous and discrete quantities when there is no danger of confusion. is represented by its action through assigning a real number to each element of a kk-chain: this is a cochain. In the following we will use only the notation discrete kk-form, not kk-cochains. We will use the straight grid for straight (inner-oriented) forms and the twisted grid for twisted (outer-oriented) forms. For notation, we will use xk{x}^{k} (resp. x~k\tilde{x}^{k}) to represent the column vector of discrete straight (resp. twisted) kk-forms, and xpk{x}^{k}_{p} (resp. x~pk\tilde{x}^{k}_{p}) to represent the element of this vector at a specific geometric entity (where p{v,e,c,v~,e~,c~}p\in\{v,e,c,\tilde{v},\tilde{e},\tilde{c}\} is the appropriate kk-cell). As needed, we will denote the space of discrete straight kk-forms with Λk\Lambda^{k} and discrete twisted kk-forms with Λ~k\tilde{\Lambda}^{k}, just as in the continuous case. Some example discrete kk-forms are shown in Figure 3.

Refer to caption
Figure 3: Example discrete differential forms for the same straight-twisted grid as in Figure 1, with the straight variables in solid blue and the twisted variables in dashed red. Note the 1-1 duality between straight kk-cells and twisted (nk)(n-k)-cells, and therefore between straight kk-forms and twisted (nk)(n-k)-forms. The placement of quantities integrated over vertices (0-forms x0{x}^{0} and x~0\tilde{x}^{0}), edges (11-forms x1{x}^{1} and x~1\tilde{x}^{1} and (n1)(n-1)-forms xn1{x}^{n-1} and x~n1\tilde{x}^{n-1}) and cells (22-forms x2{x}^{2} and x~2\tilde{x}^{2}) is illustrated, for the same kk-cells labeled in Figure 1.

More specifically, a discrete kk-form can be thought of as the integration of the associated continuous quantity (either scalar field x or vector field 𝐱\mathbf{x}) from vector calculus over the relevant kk-cell:

xv0=x(v),x~v~0=x(v~),xe1=e(𝐱𝐭^𝐬dL),x~e~1=e~(𝐱𝐭^𝐭dL),xen1=e(𝐱𝐧^𝐬dL),x~e~n1=e~(𝐱𝐧^𝐭dL),xc2=c(xdA),x~c~2=c~(xdA).\begin{array}[]{rclrcl}{x}^{0}_{v}&=&x(v),&\tilde{x}^{0}_{\tilde{v}}&=&x(\tilde{v}),\\ {x}^{1}_{e}&=&\int_{e}(\mathbf{x}\cdot\operatorname{\mathbf{\hat{t}_{s}}}dL),&\tilde{x}^{1}_{\tilde{e}}&=&\int_{\tilde{e}}(\mathbf{x}\cdot\operatorname{\mathbf{\hat{t}_{t}}}dL),\\ {x}^{n-1}_{e}&=&\int_{e}(\mathbf{x}\cdot\operatorname{\mathbf{\hat{n}_{s}}}dL),&\tilde{x}^{n-1}_{\tilde{e}}&=&\int_{\tilde{e}}(\mathbf{x}\cdot\operatorname{\mathbf{\hat{n}_{t}}}dL),\\ {x}^{2}_{c}&=&\int_{c}(xdA),&\tilde{x}^{2}_{\tilde{c}}&=&\int_{\tilde{c}}(xdA).\end{array} (51)

where dLdL and dAdA are the differential line and area elements of edges ee and e~\tilde{e} and cells cc and c~\tilde{c}, respectively.

As discussed in Section 2, although we are in n=2n=2 and therefore n1=1n-1=1, using the notation x1{x}^{1} and x~1\tilde{x}^{1} to represent both 11-forms and (n1)(n-1)-forms is confusing and therefore we retain the notation xn1{x}^{n-1} and x~n1\tilde{x}^{n-1} to facilitate this distinction. Using 11 and (n1)(n-1) makes clear the difference between a circulation 11-form along an edge, and a flux (n1)(n-1)-form along an edge. This distinction is also seen in the unit vectors used for integration: 𝐭^𝐬\operatorname{\mathbf{\hat{t}_{s}}} and 𝐭^𝐭\operatorname{\mathbf{\hat{t}_{t}}} for 11-forms and 𝐧^𝐬\operatorname{\mathbf{\hat{n}_{s}}} and 𝐧^𝐭\operatorname{\mathbf{\hat{n}_{t}}} for (n1)(n-1)-forms.

4.3 Operators

The discrete operators are the discrete exterior derivative (denoted with 𝐃k\mathbf{D}_{k} and 𝐃¯k\mathbf{\bar{D}}_{k}); the discrete Hodge star (denote with 𝐇k\mathbf{H}_{k} and 𝐇¯k\mathbf{\bar{H}}_{k}) and the discrete wedge product (denoted with h{}\boldsymbol{\wedge}_{h}{}). For the first two we use matrix notation to indicate the representation of these operators as (sparse) matrices acting on a discrete kk-form to produce another discrete form. In the unary operators 𝐃¯k\mathbf{\bar{D}}_{k} and 𝐇¯k\mathbf{\bar{H}}_{k} the overline indicates that the operator acts on twisted grid quantities. The wedge product h{}\boldsymbol{\wedge}_{h}{} can be represented as a (sparse) 3-tensor, since it is a binary operation that takes a discrete kk-form and a discrete ll-form to produce a discrete (k+l)(k+l)-form.

Note that the scheme presented here is very general, and to close it specific choices for the sparse coefficients and stencils appearing in the discrete Hodge stars 𝐇k\mathbf{H}_{k} and 𝐇¯k\mathbf{\bar{H}}_{k} and wedge products h{}\boldsymbol{\wedge}_{h}{} must be made, ideally such that the properties in Section 4.6 are obtained. These choices are usually specific to a given grid topology and geometry. Some possible choices with the desired properties are discussed in Section 7, and the specific (implicit) choices that were made by TRiSK-type schemes in the literature are identified in Section 8.

4.3.1 Exterior derivative

We will use the notation

𝐃k:Λk1Λk,𝐃¯k:Λ~k1Λ~k,\mathbf{D}_{k}:\Lambda^{k-1}\rightarrow\Lambda^{k},\quad\quad\mathbf{\bar{D}}_{k}:\tilde{\Lambda}^{k-1}\rightarrow\tilde{\Lambda}^{k}, (52)

for the discrete exterior derivative. 𝐃k\mathbf{D}_{k} and 𝐃¯k\mathbf{\bar{D}}_{k} can be represented as (sparse) matrices acting on (k1)(k-1)-forms and producing a kk-forms. These forms always belong to the same grid. Note that this operator exists only for k>0k>0. More specifically, the discrete exterior derivatives are defined using the co-boundary operator [71]. This definition is a combinatorial discretization: it depends only on the topology and orientation of the underlying cell complex. Since d\operatorname{d} is a topological operator (one that does not require a metric), a combinatorial definition makes sense. In terms of grid orientations necn_{ec}, tvet_{ve}, n~e~c~\tilde{n}_{\tilde{e}\tilde{c}} and t~e~v~\tilde{t}_{\tilde{e}\tilde{v}}, the exterior derivatives are written as

(𝐃1x0)e\displaystyle(\mathbf{D}_{1}{x}^{0})_{e} =\displaystyle= vVE(e)tvexv0,\displaystyle\sum_{v\in VE(e)}t_{ve}{x}^{0}_{v}, (53)
(𝐃2x1)c\displaystyle(\mathbf{D}_{2}{x}^{1})_{c} =\displaystyle= eEC(c)necxe1,\displaystyle\sum_{e\in EC(c)}n_{ec}{x}^{1}_{e}, (54)
(𝐃¯1x~0)e~\displaystyle(\mathbf{\bar{D}}_{1}\tilde{x}^{0})_{\tilde{e}} =\displaystyle= v~VE(e~)t~v~e~x~v~0,\displaystyle\sum_{\tilde{v}\in VE(\tilde{e})}\tilde{t}_{\tilde{v}\tilde{e}}\tilde{x}^{0}_{\tilde{v}}, (55)
(𝐃¯2x~1)c~\displaystyle(\mathbf{\bar{D}}_{2}\tilde{x}^{1})_{\tilde{c}} =\displaystyle= e~EC(c~)n~e~c~x~e~1\displaystyle\sum_{\tilde{e}\in EC(\tilde{c})}\tilde{n}_{\tilde{e}\tilde{c}}\tilde{x}^{1}_{\tilde{e}} (56)

More generally, the discrete exterior derivative for a discrete kk-form is simply the weighted sum of nearest-neighbor discrete (k1)(k-1)-forms, with the weights w{1,1}w\in\{-1,1\} given by the orientation. This definition is dimension and form degree independent.

4.3.2 Wedge product

We will use the notation

xkhyl:Λk×ΛlΛk+l,\displaystyle{{x}^{k}}\boldsymbol{\wedge}_{h}{{y}^{l}}:\Lambda^{k}\times\Lambda^{l}\rightarrow\Lambda^{k+l}, (57)
x~khyl:Λ~k×ΛlΛ~k+l,\displaystyle{\tilde{x}^{k}}\boldsymbol{\wedge}_{h}{{y}^{l}}:\tilde{\Lambda}^{k}\times\Lambda^{l}\rightarrow\tilde{\Lambda}^{k+l}, (58)
xkhy~l:Λk×Λ~lΛ~k+l,\displaystyle{{x}^{k}}\boldsymbol{\wedge}_{h}{\tilde{y}^{l}}:\Lambda^{k}\times\tilde{\Lambda}^{l}\rightarrow\tilde{\Lambda}^{k+l}, (59)
x~khy~l:Λ~k×Λ~lΛk+l,\displaystyle{\tilde{x}^{k}}\boldsymbol{\wedge}_{h}{\tilde{y}^{l}}:\tilde{\Lambda}^{k}\times\tilde{\Lambda}^{l}\rightarrow\Lambda^{k+l}, (60)

to represent the discrete wedge product. This can be represented as a (sparse) 3-tensor acting on kk-forms and ll-forms to produce a (k+l)(k+l)-forms. These forms can belong to the same grid, or different grids, depending on the specific wedge product. Note that this operator exists only when k+lnk+l\leq n. In algebraic topology, this operator is known as the cup product [40]. As an example, consider z1=x~0hy~1{z}^{1}={\tilde{x}^{0}}\boldsymbol{\wedge}_{h}{\tilde{y}^{1}}. An explicit form for this wedge product is

ze1=v~e~Wev~e~x~v~0y~e~1,{z}^{1}_{e}=\sum_{\tilde{v}}\sum_{\tilde{e}}W_{e\tilde{v}\tilde{e}}\tilde{x}^{0}_{\tilde{v}}\tilde{y}^{1}_{\tilde{e}}, (61)

for some set of arbitrary (sparse) coefficients Wev~e~W_{e\tilde{v}\tilde{e}}, where the target is in the first slot, and the two sources arguments are in the second and third slots.

For TRiSK-type schemes, there are in fact only a few wedge products that must be considered. Specifically, to compute the nonlinear PV flux term and PV itself requires, respectively:

z1=x~0hy~1,z2=x~0hy~2.{z}^{1}={\tilde{x}^{0}}\boldsymbol{\wedge}_{h}{\tilde{y}^{1}},\quad\quad{z}^{2}={\tilde{x}^{0}}\boldsymbol{\wedge}_{h}{\tilde{y}^{2}}. (62)

To compute the kinetic energy part of the Hamiltonian and the associated mass flux and kinetic energy functional derivatives requires

z~2=x1hy~1,z~1=x0hy~1,z1=x0hy1,\tilde{z}^{2}={{x}^{1}}\boldsymbol{\wedge}_{h}{\tilde{y}^{1}},\quad\quad\tilde{z}^{1}={{x}^{0}}\boldsymbol{\wedge}_{h}{\tilde{y}^{1}},\quad\quad{z}^{1}={{x}^{0}}\boldsymbol{\wedge}_{h}{{y}^{1}}, (63)

These cannot be chosen independently, instead one chooses one of three possible forms for the kinetic energy part of the Hamiltonian (each of which requires one of these wedge products), and then in the process of taking functional derivatives the other two wedge products arise in terms of the adjoint (see Section 4.5 and Appendix C).

4.3.3 Hodge star

We will use the notation

𝐇k:ΛkΛ~nk,𝐇¯k:Λ~kΛnk,\mathbf{H}_{k}:\Lambda^{k}\rightarrow\tilde{\Lambda}^{n-k},\quad\quad\mathbf{\bar{H}}_{k}:\tilde{\Lambda}^{k}\rightarrow\Lambda^{n-k}, (64)

to represent the discrete Hodge star. It can be represented as a (sparse) matrix acting on a kk-form from one grid and producing a (nk)(n-k)-form on the other grid. By the duality between straight (twisted) kk-cells and twisted (straight) (nk)(n-k)-cells, these forms have the same number of degrees of freedom. As an example, consider y~n1=𝐇1x1\tilde{y}^{n-1}=\mathbf{H}_{1}{x}^{1}. This can be written as

y~e~n1=eHe~exe1\tilde{y}^{n-1}_{\tilde{e}}=\sum_{e}H_{\tilde{e}e}{x}^{1}_{e} (65)

for some set of arbitrary (sparse) coefficients He~eH_{\tilde{e}e}, where the target is in the first slot and the source is in the second slot.

For TRiSK-type schemes, only three discrete Hodge stars are needed:

y~1=𝐇1x1,y0=𝐇¯2x~2,y~0=𝐇2x2.\tilde{y}^{1}=\mathbf{H}_{1}{x}^{1},\quad\quad{y}^{0}=\mathbf{\bar{H}}_{2}\tilde{x}^{2},\quad\quad\tilde{y}^{0}=\mathbf{H}_{2}{x}^{2}. (66)

The remaining Hodge star operators can be implicitly defined in terms of these operators as

𝐇0:=𝐇¯21,𝐇¯0:=𝐇21,𝐇¯1:=𝐇11.\displaystyle\mathbf{H}_{0}:=\mathbf{\bar{H}}_{2}^{-1},\quad\quad\mathbf{\bar{H}}_{0}:=\mathbf{H}_{2}^{-1},\quad\quad\mathbf{\bar{H}}_{1}:=-\mathbf{H}_{1}^{-1}. (67)

This definition is chosen so that

𝐇¯k𝐇nk=(1)k(nk)𝐈\mathbf{\bar{H}}_{k}\mathbf{H}_{n-k}=(-1)^{k(n-k)}\mathbf{I} (68)

which is a discrete analogue of ~~=(1)k(nk)\operatorname{\tilde{\star}}\operatorname{\tilde{\star}}=(-1)^{k(n-k)}. The sign in the last definition is a slight difference from [65]. This definition requires that 𝐇1\mathbf{H}_{1}, 𝐇¯2\mathbf{\bar{H}}_{2} and 𝐇2\mathbf{H}_{2} are invertible, and for computational efficiency should also be sparse. Although 𝐇0\mathbf{H}_{0}, 𝐇¯0\mathbf{\bar{H}}_{0} and 𝐇¯1\mathbf{\bar{H}}_{1} will be dense (unless 𝐇1\mathbf{H}_{1}, 𝐇¯2\mathbf{\bar{H}}_{2} and 𝐇2\mathbf{H}_{2} are diagonal, such as in the case of the Voronoi Hodge star), this is not an issue since they are not needed in the general DEC-based TRiSK-type scheme. We could of course have started with a different set of primary Hodge stars if the scheme required it, the only requirement is that 𝐇¯k𝐇nk=(1)k(nk)𝐈\mathbf{\bar{H}}_{k}\mathbf{H}_{n-k}=(-1)^{k(n-k)}\mathbf{I} holds.

4.4 Topological Pairing, Functional Derivatives and Inner Products

It remains to define the inner product ,\left<{},{}\right>, topological pairing ,\left<\left<{},{}\right>\right> and functional derivatives (with respect to the topological pairing) δ~δ\frac{\tilde{\delta}\!}{\delta}. These definitions are done by using the discrete Hodge stars 𝐇k\mathbf{H}_{k} and 𝐇¯k\mathbf{\bar{H}}_{k}, in a way that mimics ak,bk=ak~bk\left<{{a}^{k}},{{b}^{k}}\right>=\int{a}^{k}\wedge\operatorname{\tilde{\star}}{b}^{k} and a~k,b~k=a~k~b~k\left<{\tilde{a}^{k}},{\tilde{b}^{k}}\right>=\int\tilde{a}^{k}\wedge\operatorname{\tilde{\star}}\tilde{b}^{k}. For all three operators, we will use the same notation for the discrete objects as their continuous counterparts.

Start with the inner product ,\left<{},{}\right> for straight and twisted forms:

xk,yk:=(xk)T𝐇kyk,x~k,y~k:=(1)k(nk)(x~k)T𝐇¯ky~k.\left<{{x}^{k}},{{y}^{k}}\right>:=({x}^{k})^{T}\mathbf{H}_{k}{y}^{k},\quad\quad\left<{\tilde{x}^{k}},{\tilde{y}^{k}}\right>:=(-1)^{k(n-k)}(\tilde{x}^{k})^{T}\mathbf{\bar{H}}_{k}\tilde{y}^{k}. (69)

If 𝐇k\mathbf{H}_{k} and 𝐇¯k\mathbf{\bar{H}}_{k} are positive-definite, this inner product will be positive-definitive. Some care is required with 𝐇¯1\mathbf{\bar{H}}_{1}, as it is actually negative-definite (assuming 𝐇1\mathbf{H}_{1} is positive-definite) since 𝐇¯1=𝐇11-\mathbf{\bar{H}}_{1}=\mathbf{H}_{1}^{-1}. However, the minus sign for twisted 1-forms in the above definition ensure that the resulting inner product is still positive-definite.

Additionally, if 𝐇k\mathbf{H}_{k} and 𝐇¯k\mathbf{\bar{H}}_{k} are symmetric, then

xk,yk\displaystyle\left<{{x}^{k}},{{y}^{k}}\right> =\displaystyle= yk,xk\displaystyle\left<{{y}^{k}},{{x}^{k}}\right> (70)
x~k,y~k\displaystyle\left<{\tilde{x}^{k}},{\tilde{y}^{k}}\right> =\displaystyle= y~k,x~k\displaystyle\left<{\tilde{y}^{k}},{\tilde{x}^{k}}\right> (71)

just as in the continuous case.

Now we can define the topological pairing using these inner products (similarly to  (7) - (8)) as

ak,b~nk\displaystyle\left<\left<{{a}^{k}},{\tilde{b}^{n-k}}\right>\right> :=ak,bk=(ak)T𝐇kbk=(ak)Tb~nk,\displaystyle:=\left<{{a}^{k}},{{b}^{k}}\right>=({a}^{k})^{T}\mathbf{H}_{k}{b}^{k}=({a}^{k})^{T}\tilde{b}^{n-k}, (72)
a~k,bnk\displaystyle\left<\left<{\tilde{a}^{k}},{{b}^{n-k}}\right>\right>\! :=(1)k(nk)a~k,b~k=(a~k)T𝐇¯kb~k=(a~k)T𝐇¯k𝐇nkbnk=(1)k(nk)(a~k)Tbnk,\displaystyle:=\!(-1)^{k(n-k)}\left<{\tilde{a}^{k}},{\tilde{b}^{k}}\right>=(\tilde{a}^{k})^{T}\mathbf{\bar{H}}_{k}\tilde{b}^{k}=(\tilde{a}^{k})^{T}\mathbf{\bar{H}}_{k}\mathbf{H}_{n-k}{b}^{n-k}=(-1)^{k(n-k)}(\tilde{a}^{k})^{T}{b}^{n-k}, (73)

where b~nk=𝐇kbk\tilde{b}^{n-k}=\mathbf{H}_{k}{b}^{k} and b~k=𝐇nkbnk\tilde{b}^{k}=\mathbf{H}_{n-k}{b}^{n-k}. The last definition here relied on 𝐇¯k𝐇nk=(1)k(nk)𝐈\mathbf{\bar{H}}_{k}\mathbf{H}_{n-k}=(-1)^{k(n-k)}\mathbf{I}.

This definition relies on the 1-1 relationship between straight and twisted quantities. In particular, these definitions ensure that the discrete analogues of the continuous relationships

ak,b~nk\displaystyle\left<\left<{{a}^{k}},{\tilde{b}^{n-k}}\right>\right> =(72)&(73)\displaystyle\stackrel{{\scriptstyle\eqref{discrete-topo-pairing-1}\&\eqref{discrete-topo-pairing-2}}}{{=}} (1)k(nk)b~nk,ak,\displaystyle(-1)^{k(n-k)}\left<\left<{\tilde{b}^{n-k}},{{a}^{k}}\right>\right>, (74)
ak,b~nk\displaystyle\left<\left<{{a}^{k}},{\tilde{b}^{n-k}}\right>\right> =(72)&(70)\displaystyle\stackrel{{\scriptstyle\eqref{discrete-topo-pairing-1}\&\eqref{stf-inner-symmetric}}}{{=}} bk,a~nk,\displaystyle\left<\left<{{b}^{k}},{\tilde{a}^{n-k}}\right>\right>, (75)
ak,b~nk\displaystyle\left<\left<{{a}^{k}},{\tilde{b}^{n-k}}\right>\right> =(72)\displaystyle\stackrel{{\scriptstyle\eqref{discrete-topo-pairing-1}}}{{=}} ak,bk,\displaystyle\left<{{a}^{k}},{{b}^{k}}\right>, (76)
a~k,bnk\displaystyle\left<\left<{\tilde{a}^{k}},{{b}^{n-k}}\right>\right> =(73)\displaystyle\stackrel{{\scriptstyle\eqref{discrete-topo-pairing-2}}}{{=}} (1)k(nk)a~k,b~k,\displaystyle(-1)^{k(n-k)}\left<{\tilde{a}^{k}},{\tilde{b}^{k}}\right>, (77)

hold. Additionally, the topological pairing is a topological operator, so the definition used above (which is combinatorial) also makes sense.

Finally, using this discrete topological pairing, discrete topological functional derivatives can be defined using

δ\displaystyle\delta\operatorname{\mathcal{F}} :=\displaystyle:= ωk,δ~δxk=(ωk)Tδ~δxkωkΛk,\displaystyle\left<\left<{{\omega}^{k}},{\frac{\tilde{\delta}\!\operatorname{\mathcal{F}}}{\delta{x}^{k}}}\right>\right>=({\omega}^{k})^{T}\frac{\tilde{\delta}\!\operatorname{\mathcal{F}}}{\delta{x}^{k}}\quad\forall{\omega}^{k}\in\Lambda^{k}, (78)
δ\displaystyle\delta\operatorname{\mathcal{F}} :=\displaystyle:= ω~k,δ~δy~k=(1)k(nk)(ω~k)Tδ~δy~kω~kΛk.\displaystyle\left<\left<{\tilde{\omega}^{k}},{\frac{\tilde{\delta}\!\operatorname{\mathcal{F}}}{\delta\tilde{y}^{k}}}\right>\right>=(-1)^{k(n-k)}(\tilde{\omega}^{k})^{T}\frac{\tilde{\delta}\!\operatorname{\mathcal{F}}}{\delta\tilde{y}^{k}}\quad\forall\tilde{\omega}^{k}\in\Lambda^{k}. (79)

As in the continuous case, a key point is that the functional derivatives lie in the dual space (defined through the Hodge star) to the variable they are taken with respect to, i.e.

δ~𝒜δxkΛ~nk,δ~𝒜δy~kΛnk.\frac{\tilde{\delta}\!\operatorname{\mathcal{A}}}{\delta{x}^{k}}\in\tilde{\Lambda}^{n-k},\quad\quad\frac{\tilde{\delta}\!\operatorname{\mathcal{A}}}{\delta\tilde{y}^{k}}\in\Lambda^{n-k}. (80)

Appendix C gives an example of how this definition is used to derive functional derivatives with respect to the topological pairing.

4.5 Operator Adjoints

It is also useful to consider the adjoints with respect to the topological pairing of the discrete operators defined above. The adjoints will be denoted with a superscript \star: 𝐃k\mathbf{D}_{k}^{\star}, 𝐃¯k\mathbf{\bar{D}}_{k}^{\star}, h{}\boldsymbol{\wedge}_{h}^{\star}{}, 𝐇k\mathbf{H}_{k}^{\star} and 𝐇¯k\mathbf{\bar{H}}_{k}^{\star}. Note that for the wedge product, there are actually two adjoints to consider since it is a binary operator. These adjoints are topological adjoints, in that they can be defined independently of a metric since they are with respect to the topological pairing.

In the continuous setting, the topological adjoint of a unary operator 𝐗\mathbf{X} is defined through

𝐗xk,yl:=xk,𝐗yl.\left<\left<{\mathbf{X}^{*}{x}^{k}},{{y}^{l}}\right>\right>:=\left<\left<{{x}^{k}},{\mathbf{X}{y}^{l}}\right>\right>. (81)

where kk and ll are defined such that the resulting topological pairing makes sense (yl{y}^{l} or xk{x}^{k} might even need to become twisted forms). In the discrete setting, this is written as

xk,𝐗yl=(xk)T𝐗yl=(𝐗Txk)Tyl=𝐗Txk,yl=𝐗xk,yl,\left<\left<{{x}^{k}},{\mathbf{X}{y}^{l}}\right>\right>=({x}^{k})^{T}\mathbf{X}{y}^{l}=(\mathbf{X}^{T}{x}^{k})^{T}{y}^{l}=\left<\left<{\mathbf{X}^{T}{x}^{k}},{{y}^{l}}\right>\right>=\left<\left<{\mathbf{X}^{*}{x}^{k}},{{y}^{l}}\right>\right>, (82)

and thus we see that 𝐗=𝐗T\mathbf{X}^{*}=\mathbf{X}^{T}, or in other words the coefficients that define the discrete adjoint are just the transpose of those that define the original operator. Given 𝐇1\mathbf{H}_{1}, for example, 𝐇1\mathbf{H}_{1}^{*} is defined by

Hee~=He~e.H_{e\tilde{e}}^{*}=H_{\tilde{e}e}. (83)

For a binary operator such as the wedge product, there are in fact two adjoints depending on which argument we are taking the adjoint with respect to. For example, consider the adjoint with respect to the second argument:

x~m,ykhzl=zl,ykhx~m,\left<\left<{\tilde{x}^{m}},{{{y}^{k}}\boldsymbol{\wedge}_{h}{{z}^{l}}}\right>\right>=\left<\left<{{z}^{l}},{{{y}^{k}}\boldsymbol{\wedge}_{h}^{\star}{\tilde{x}^{m}}}\right>\right>, (84)

for m=n(k+l)m=n-(k+l). In the discrete setting this is

x~m,ykhzl=mx~mmklWmklykkzll=lzllmkWlkmykkx~mm=zl,ykhx~m,\left<\left<{\tilde{x}^{m}},{{{y}^{k}}\boldsymbol{\wedge}_{h}{{z}^{l}}}\right>\right>=\sum_{m^{\prime}}\tilde{x}^{m}_{m^{\prime}}\sum_{k^{\prime}}\sum_{l^{\prime}}W_{m^{\prime}k^{\prime}l^{\prime}}{y}^{k}_{k^{\prime}}{z}^{l}_{l^{\prime}}=\sum_{l^{\prime}}{z}^{l}_{l^{\prime}}\sum_{m^{\prime}}\sum_{k^{\prime}}W_{l^{\prime}k^{\prime}m^{\prime}}^{*}{y}^{k}_{k^{\prime}}\tilde{x}^{m}_{m^{\prime}}=\left<\left<{{z}^{l}},{{{y}^{k}}\boldsymbol{\wedge}_{h}^{\star}{\tilde{x}^{m}}}\right>\right>, (85)

and thus we see that Wlkm=WmklW_{lkm}^{*}=W_{mkl}, i.e. a transposition of the relevant indices of the 3-tensor.

4.6 Operator Properties

It is important for the discrete operators to have (some of) the same properties as their continuous counterparts. These properties are required in order for the discretization of the RSWE in Section 5 to have the desirable properties discussed in Section 6.

4.6.1 Exterior Derivative and Topological Pairing

The discrete exterior derivatives 𝐃k\mathbf{D}_{k} and 𝐃¯k\mathbf{\bar{D}}_{k} for k>0k>0 (defined using the co-boundary operator) and the topological pairing ,\left<\left<{},{}\right>\right> have the following set of properties:

  • Annihilation:

    𝐃k𝐃k1=0,𝐃¯k𝐃¯k1=0;\mathbf{D}_{k}\mathbf{D}_{k-1}=0,\quad\quad\quad\mathbf{\bar{D}}_{k}\mathbf{\bar{D}}_{k-1}=0; (86)

    Equation (86) is the discrete analogue of dd=0\operatorname{d}\operatorname{d}=0.

  • Integration by parts (IBP):

    𝐃kxk1,y~nk+(1)k1xk1,𝐃¯nk+1y~nk=0,\displaystyle\left<\left<{\mathbf{D}_{k}{x}^{k-1}},{\tilde{y}^{n-k}}\right>\right>+(-1)^{k-1}\left<\left<{{x}^{k-1}},{\mathbf{\bar{D}}_{n-k+1}\tilde{y}^{n-k}}\right>\right>=0, (87)
    𝐃¯kx~k1,ynk+(1)k1x~k1,𝐃nk+1ynk=0.\displaystyle\left<\left<{\mathbf{\bar{D}}_{k}\tilde{x}^{k-1}},{{y}^{n-k}}\right>\right>+(-1)^{k-1}\left<\left<{\tilde{x}^{k-1}},{\mathbf{D}_{n-k+1}{y}^{n-k}}\right>\right>=0. (88)

    which is equivalent (for the case of n=2n=2) to

    𝐃¯2=𝐃1T,𝐃2=𝐃¯1T;\mathbf{\bar{D}}_{2}=-\mathbf{D}_{1}^{T},\quad\quad\quad\mathbf{D}_{2}=\mathbf{\bar{D}}_{1}^{T}; (89)

    Equations (87) and (88) are the discrete analogue of

    dxk1,y~nk+(1)k1xk1,dy~nk=0,\displaystyle\left<\left<{\operatorname{d}{x}^{k-1}},{\tilde{y}^{n-k}}\right>\right>+(-1)^{k-1}\left<\left<{{x}^{k-1}},{\operatorname{d}\tilde{y}^{n-k}}\right>\right>=0, (90)
    dx~k1,ynk+(1)k1x~k1,dynk=0.\displaystyle\left<\left<{\operatorname{d}\tilde{x}^{k-1}},{{y}^{n-k}}\right>\right>+(-1)^{k-1}\left<\left<{\tilde{x}^{k-1}},{\operatorname{d}{y}^{n-k}}\right>\right>=0. (91)
  • Zero exterior derivative for constants:

    𝐃1c0=0,𝐃¯1c~0=0,\mathbf{D}_{1}{c}^{0}=0,\quad\quad\quad\mathbf{\bar{D}}_{1}\tilde{c}^{0}=0, (92)

    where c0{c}^{0} and c~0\tilde{c}^{0} are constants. Equation (92) is the discrete analogue of dc0=0\operatorname{d}{c}^{0}=0 and dc~0=0\operatorname{d}\tilde{c}^{0}=0. Note these last two properties (zero exterior derivative for constants and integration by parts) imply:

    (I~0)T𝐃2x1=0,(I0)T𝐃¯2x~1=0,(\tilde{I}^{0})^{T}\mathbf{D}_{2}{x}^{1}=0,\quad\quad({I}^{0})^{T}\mathbf{\bar{D}}_{2}\tilde{x}^{1}=0, (93)

    which is the discrete analogue of Stokes theorem Ωdxk=δΩtr xk=0\int_{\Omega}\operatorname{d}{x}^{k}=\int_{\delta\Omega}\text{tr }{x}^{k}=0.

A proof of these properties for 𝐃k\mathbf{D}_{k} and 𝐃¯k\mathbf{\bar{D}}_{k} based on the coboundary operator is found in Appendix A.

4.6.2 Wedge Product

The continuous wedge product has three key properties:

  • Leibniz rule: d(xkyl)=dxkyl+(1)kxkdyl\operatorname{d}({x}^{k}\wedge{y}^{l})=\operatorname{d}{x}^{k}\wedge{y}^{l}+(-1)^{k}{x}^{k}\wedge\operatorname{d}{y}^{l} ,

  • Anti-symmetry: xkyl=(1)klylxk{x}^{k}\wedge{y}^{l}=(-1)^{kl}{y}^{l}\wedge{x}^{k} ,

  • Associative: xm(ykzl)=(xmyk)zl{x}^{m}\wedge({y}^{k}\wedge{z}^{l})=({x}^{m}\wedge{y}^{k})\wedge{z}^{l} .

Unfortunately, it has been proved using algebraic topology that it is impossible to define a discrete wedge product (i.e. a cup product) with all three properties [40]. However, since only the first two (anti-symmetry and the Leibniz rule) are actually needed for TRiSK-type schemes, this is not an impediment to practical usage of DEC in this case.

In fact, only the wedge products used to compute the nonlinear PV flux term and PV itself, namely

z1=x~0hy~1,z2=x~0hy~2,{z}^{1}={\tilde{x}^{0}}\boldsymbol{\wedge}_{h}{\tilde{y}^{1}},\quad\quad{z}^{2}={\tilde{x}^{0}}\boldsymbol{\wedge}_{h}{\tilde{y}^{2}}, (94)

respectively, are required to have these properties. Specifically, we would like

  • Anti-symmetry for x~0hy~1{\tilde{x}^{0}}\boldsymbol{\wedge}_{h}{\tilde{y}^{1}}: Namely, that

    z~1,x~0hy~1=y~1,x~0hz~1.\left<\left<{\tilde{z}^{1}},{{\tilde{x}^{0}}\boldsymbol{\wedge}_{h}{\tilde{y}^{1}}}\right>\right>=-\left<\left<{\tilde{y}^{1}},{{\tilde{x}^{0}}\boldsymbol{\wedge}_{h}{\tilde{z}^{1}}}\right>\right>. (95)

    In other words, the coefficients that define x~0hy~1{\tilde{x}^{0}}\boldsymbol{\wedge}_{h}{\tilde{y}^{1}} must be antisymmetric in the arguments corresponding to z~1\tilde{z}^{1} and y~1\tilde{y}^{1}. (95) ensures that the (nonlinear) PV flux term conserves energy (as shown later). The vector calculus analogue of this is that 𝐱𝐱=0\mathbf{x}\cdot\mathbf{x}^{\perp}=0.

  • (Partial) Leibniz rule I for d\operatorname{d} and \wedge: Namely, that

    𝐃2(I~0hy~1)=I~0h𝐃¯2y~1.\mathbf{D}_{2}({\tilde{I}^{0}}\boldsymbol{\wedge}_{h}{\tilde{y}^{1}})={\tilde{I}^{0}}\boldsymbol{\wedge}_{h}{\mathbf{\bar{D}}_{2}\tilde{y}^{1}}. (96)

    Equation (96) ensures PV compatibility and steady geostrophic modes (also shown below) The vector calculus analogue of this is that 𝐱=𝐱\nabla\cdot\mathbf{x}=\nabla^{\perp}\cdot\mathbf{x}^{\perp}.

  • (Partial) Leibniz rule II for d\operatorname{d} and \wedge II: Namely, that

    x~0h𝐃¯1x~012𝐃1(x~0hx~0)=0.{\tilde{x}^{0}}\boldsymbol{\wedge}_{h}{\mathbf{\bar{D}}_{1}\tilde{x}^{0}}-\frac{1}{2}\mathbf{D}_{1}({\tilde{x}^{0}}\boldsymbol{\wedge}_{h}^{\star}{\tilde{x}^{0}})=0. (97)

    Equation (97) ensures potential enstrophy conservation (shown below). The vector calculus analogue of this is that q(q)+q22=0q(\nabla^{\perp}q)^{\perp}+\nabla\frac{q^{2}}{2}=0.

  • The wedge product z2=x~0hy~2{z}^{2}={\tilde{x}^{0}}\boldsymbol{\wedge}_{h}{\tilde{y}^{2}} has a solvability restriction on the coefficients: they must be chosen such that given z2{z}^{2} and y~2\tilde{y}^{2} an explicit formula for x~0\tilde{x}^{0} is available, otherwise a linear system must be solved and the resulting scheme will be inefficient. An implicit formula for x~0\tilde{x}^{0} will not affect any of it’s desirable properties from Section 6, however.

An interesting question that arises is whether a connection exists between the two partial Leibniz rules (96) and (97), motivated by the fact that in [23] a discrete wedge product that satisfied (97) and (95) was found to also automatically satisfy (96). This is explored in Appendix B.

4.6.3 Hodge Star

The discrete Hodge stars 𝐇¯k\mathbf{\bar{H}}_{k} and 𝐇k\mathbf{H}_{k} should satisfy 𝐇¯nk𝐇k=(1)k(nk)𝐈\mathbf{\bar{H}}_{n-k}\mathbf{H}_{k}=(-1)^{k(n-k)}\mathbf{I}, which is ensured by the construction above in Section 4.3.3. Additionally, 𝐇k\mathbf{H}_{k} and 𝐇¯k\mathbf{\bar{H}}_{k} must be symmetric positive-definite for the inner product ,\left<{},{}\right> to have the appropriate properties to make it an inner product, i.e. a,b0\left<{a},{b}\right>\geq 0 with equality only if a=0a=0 or b=0b=0 along with a,b=b,a\left<{a},{b}\right>=\left<{b},{a}\right>. This is clearly seen in (69).

5 Discretization of RSWE with DEC

Equipped with the 2D discrete exterior calculus from Section 4, it is straightforward to spatially discretize the split exterior calculus formulation of the RSWE from Section 2. Exactly as in the continuous case, the predicted discrete variables are the absolute velocity v1{v}^{1} and fluid height h~2\tilde{h}^{2}. The discretization simply consists in replacing dd with 𝐃k\mathbf{D}_{k} or 𝐃¯k\mathbf{\bar{D}}_{k}, \wedge with h{}\boldsymbol{\wedge}_{h}{} or h{}\boldsymbol{\wedge}_{h}^{\star}{}, ~\operatorname{\tilde{\star}} with 𝐇k\mathbf{H}_{k} or 𝐇¯k\mathbf{\bar{H}}_{k} and using discrete versions of the inner product ,\left<{},{}\right> and topological pairing ,\left<\left<{},{}\right>\right>. The properties of these operators will ensure that the discretization inherits most of the key properties of the continuous equations.

5.1 Discrete Hamiltonian and Functional Derivatives

The discrete Hamiltonian [v1,h~2]\operatorname{\mathcal{H}}[{v}^{1},\tilde{h}^{2}] is

[v1,h~2]=g2h~2,h~2+gh~2,hs~2+h~2,u1hu~n12,\operatorname{\mathcal{H}}[{v}^{1},\tilde{h}^{2}]=\frac{g}{2}\left<{\tilde{h}^{2}},{\tilde{h}^{2}}\right>+g\left<{\tilde{h}^{2}},{\tilde{h_{s}}^{2}}\right>+\left<{\tilde{h}^{2}},{\frac{{{u}^{1}}\boldsymbol{\wedge}_{h}{\tilde{u}^{n-1}}}{2}}\right>, (98)

which has functional derivatives relative to the topological pairing (6)

F~n1:=δ~δv1=12h0h𝐇1u1+12𝐇1(h0hu1),B0:=δ~δh~2=12𝐇¯2(u1hu~n1)+g(h0+hs0),\tilde{F}^{n-1}:=\frac{\tilde{\delta}\!\operatorname{\mathcal{H}}}{\delta{v}^{1}}=\frac{1}{2}{{h}^{0}}\boldsymbol{\wedge}_{h}^{\star}{\mathbf{H}_{1}{u}^{1}}+\frac{1}{2}\mathbf{H}_{1}({{h}^{0}}\boldsymbol{\wedge}_{h}^{\star}{{u}^{1}}),\quad\quad{B}^{0}:=\frac{\tilde{\delta}\!\operatorname{\mathcal{H}}}{\delta\tilde{h}^{2}}=\frac{1}{2}\mathbf{\bar{H}}_{2}({{u}^{1}}\boldsymbol{\wedge}_{h}{\tilde{u}^{n-1}})+g({h}^{0}+{h_{s}}^{0}), (99)

with topography hs~2\tilde{h_{s}}^{2}, recalling hs0=𝐇¯2hs~2{h_{s}}^{0}=\mathbf{\bar{H}}_{2}\tilde{h_{s}}^{2}, h0=𝐇¯2h~2{h}^{0}=\mathbf{\bar{H}}_{2}\tilde{h}^{2} and u~n1=𝐇1u1\tilde{u}^{n-1}=\mathbf{H}_{1}{u}^{1}. The derivation of these can be found in Appendix C.

Thus we see that the discrete kinetic energy is K~2=12(u1hu~n1)\tilde{K}^{2}=\frac{1}{2}({{u}^{1}}\boldsymbol{\wedge}_{h}{\tilde{u}^{n-1}}), just as in the continuous case. The mass flux is equivalent to the continuous form 12h0u~n1+12~(h0u1)=h0u~n1\frac{1}{2}{h}^{0}\wedge\tilde{u}^{n-1}+\frac{1}{2}\operatorname{\tilde{\star}}({h}^{0}\wedge{u}^{1})={h}^{0}\wedge\tilde{u}^{n-1}. For certain choices of 𝐇1\mathbf{H}_{1} and h{}\boldsymbol{\wedge}_{h}{} this simplification is also true in the discrete setting, i.e. 𝐇1(h0hu1)=h0h𝐇1u1\mathbf{H}_{1}({{h}^{0}}\boldsymbol{\wedge}_{h}{{u}^{1}})={{h}^{0}}\boldsymbol{\wedge}_{h}{\mathbf{H}_{1}{u}^{1}} and then F~n1=h0h𝐇1u1=h0hu~n1\tilde{F}^{n-1}={{h}^{0}}\boldsymbol{\wedge}_{h}{\mathbf{H}_{1}{u}^{1}}={{h}^{0}}\boldsymbol{\wedge}_{h}{\tilde{u}^{n-1}}. This is the case for the Voronoi Hodge star and the metric or combinatorial wedge products from Section 6, as shown in Appendix C.1. However, it will not be true in general.

Just as in the continuous case, the last term in [v1,h~2]\operatorname{\mathcal{H}}[{v}^{1},\tilde{h}^{2}] (the kinetic energy) can also be written as 12u1,h0hu1\frac{1}{2}\left<{{u}^{1}},{{{h}^{0}}\boldsymbol{\wedge}_{h}{{u}^{1}}}\right> or 12u~n1,h0hu~n1\frac{1}{2}\left<{\tilde{u}^{n-1}},{{{h}^{0}}\boldsymbol{\wedge}_{h}{\tilde{u}^{n-1}}}\right>, leading respectively to slightly different functional derivatives

F~n1:=δ~δv1=12h0h𝐇1un1+12𝐇1(h0hu1),B0:=δ~δh~2=12𝐇¯2(u1hu~n1)+g(h0+hs0),\tilde{F}^{n-1}:=\frac{\tilde{\delta}\!\operatorname{\mathcal{H}}}{\delta{v}^{1}}=\frac{1}{2}{{h}^{0}}\boldsymbol{\wedge}_{h}^{\star}{\mathbf{H}_{1}{u}^{n-1}}+\frac{1}{2}\mathbf{H}_{1}({{h}^{0}}\boldsymbol{\wedge}_{h}{{u}^{1}}),\quad\quad{B}^{0}:=\frac{\tilde{\delta}\!\operatorname{\mathcal{H}}}{\delta\tilde{h}^{2}}=\frac{1}{2}\mathbf{\bar{H}}_{2}({{u}^{1}}\boldsymbol{\wedge}_{h}^{\star}{\tilde{u}^{n-1}})+g({h}^{0}+{h_{s}}^{0}), (100)

and

F~n1:=δ~δv1=12h0h𝐇1un1+12𝐇1(h0hu1),B0:=δ~δh~2=12𝐇¯2(u1hu~n1)+g(h0+hs0).\tilde{F}^{n-1}:=\frac{\tilde{\delta}\!\operatorname{\mathcal{H}}}{\delta{v}^{1}}=\frac{1}{2}{{h}^{0}}\boldsymbol{\wedge}_{h}{\mathbf{H}_{1}{u}^{n-1}}+\frac{1}{2}\mathbf{H}_{1}({{h}^{0}}\boldsymbol{\wedge}_{h}^{\star}{{u}^{1}}),\quad\quad{B}^{0}:=\frac{\tilde{\delta}\!\operatorname{\mathcal{H}}}{\delta\tilde{h}^{2}}=\frac{1}{2}\mathbf{\bar{H}}_{2}({{u}^{1}}\boldsymbol{\wedge}_{h}^{\star}{\tilde{u}^{n-1}})+g({h}^{0}+{h_{s}}^{0}). (101)

These functional derivatives have the same form as (99), the only difference is which wedge products are adjoints (h{}\boldsymbol{\wedge}_{h}^{\star}{}) and which ones are primary (h{}\boldsymbol{\wedge}_{h}{}).

5.2 Discrete Poisson Brackets

The discrete Poisson brackets are

{𝒜,}=δ~𝒜δv1,q~0hδ~δv1δ~𝒜δv1,𝐃1δ~δh~2δ~𝒜δh~2,𝐃¯2δ~δv1,\{\operatorname{\mathcal{A}},\operatorname{\mathcal{B}}\}=-\left<\left<{\frac{\tilde{\delta}\!\operatorname{\mathcal{A}}}{\delta{v}^{1}}},{{\tilde{q}^{0}}\boldsymbol{\wedge}_{h}{\frac{\tilde{\delta}\!\operatorname{\mathcal{B}}}{\delta{v}^{1}}}}\right>\right>-\left<\left<{\frac{\tilde{\delta}\!\operatorname{\mathcal{A}}}{\delta{v}^{1}}},{\mathbf{D}_{1}\frac{\tilde{\delta}\!\operatorname{\mathcal{B}}}{\delta\tilde{h}^{2}}}\right>\right>-\left<\left<{\frac{\tilde{\delta}\!\operatorname{\mathcal{A}}}{\delta\tilde{h}^{2}}},{\mathbf{\bar{D}}_{2}\frac{\tilde{\delta}\!\operatorname{\mathcal{B}}}{\delta{v}^{1}}}\right>\right>, (102)

with potential vorticity q~0\tilde{q}^{0} defined through

q~0hh~2=η2=𝐃2v1=ζ2+f2=𝐃2u1+f2.{\tilde{q}^{0}}\boldsymbol{\wedge}_{h}{\tilde{h}^{2}}={\eta}^{2}=\mathbf{D}_{2}{v}^{1}={\zeta}^{2}+{f}^{2}=\mathbf{D}_{2}{u}^{1}+{f}^{2}. (103)

The definition of q~0\tilde{q}^{0} highlights the solvability restriction on the coefficients for the h{}\boldsymbol{\wedge}_{h}{} used to compute q~0\tilde{q}^{0}, since q~0\tilde{q}^{0} should be computable without requiring a linear solve in order for the scheme to be efficient.

5.3 Semi-discrete Equations of Motion

The semi-discrete equations of motion that arise from these brackets and Hamiltonian are therefore

h~2t+𝐃¯2F~n1=0,\displaystyle\frac{\partial\tilde{h}^{2}}{\partial t}+\mathbf{\bar{D}}_{2}\tilde{F}^{n-1}=0, (104)
v1t+q~0hF~n1+𝐃1B0=0.\displaystyle\frac{\partial{v}^{1}}{\partial t}+{\tilde{q}^{0}}\boldsymbol{\wedge}_{h}{\tilde{F}^{n-1}}+\mathbf{D}_{1}{B}^{0}=0. (105)

These are obtained by using ddt={,}\frac{\operatorname{d}\!\operatorname{\mathcal{F}}}{\operatorname{d}\!t}=\{\operatorname{\mathcal{F}},\operatorname{\mathcal{H}}\} for a functional =xp\operatorname{\mathcal{F}}=x_{p}, since in this case δδxp=1\frac{\delta\!\operatorname{\mathcal{F}}}{\delta x_{p}}=1 and δδx=0\frac{\delta\!\operatorname{\mathcal{F}}}{\delta x}=0 for all other xx; and repeating this process for all xp(h~c~2,ve1)x_{p}\in(\tilde{h}^{2}_{\tilde{c}},{v}^{1}_{e}). This is the discrete analogue of letting =x^,x\operatorname{\mathcal{F}}=\left<\hat{x},x\right> for x(h~2,v1)x\in(\tilde{h}^{2},{v}^{1}) with arbitrary test function x^(h~2^,v1^)\hat{x}\in(\widehat{\tilde{h}^{2}},\widehat{{v}^{1}}). Standard time integration schemes can then be applied to obtain the fully discrete scheme, for example explicit Runge-Kutta schemes or an (implicit) energy-conserving Poisson integrator [11] that preserves properties such as energy conservation in the fully discrete case.

5.4 Linearized Equations

Similar to Eqns.(38)–(39), we linearize the above system around h0=H{h}^{0}=H and u1=0{u}^{1}=0 to get

v1t+f~0HhF~linn1+𝐃1Blin0\displaystyle\frac{\partial{v}^{1}}{\partial t}+{\frac{\tilde{f}^{0}}{H}}\boldsymbol{\wedge}_{h}{\tilde{F}^{n-1}_{lin}}+\mathbf{D}_{1}{B}^{0}_{lin} =\displaystyle= 0,\displaystyle 0, (106)
h~2t+𝐃¯2F~linn1\displaystyle\frac{\partial\tilde{h}^{2}}{\partial t}+\mathbf{\bar{D}}_{2}\tilde{F}^{n-1}_{lin} =\displaystyle= 0,\displaystyle 0, (107)

where the discrete functional derivatives read

F~linn1:=δ~linδv1=Hu~n1,Blin:=δ~linδh~2=g(h0+hs0),\displaystyle\tilde{F}^{n-1}_{lin}:=\frac{\tilde{\delta}\!\operatorname{\mathcal{H}}_{lin}}{\delta{v}^{1}}=H\tilde{u}^{n-1},\quad\quad\quad B_{lin}:=\frac{\tilde{\delta}\!\operatorname{\mathcal{H}}_{lin}}{\delta\tilde{h}^{2}}=g({h}^{0}+{h_{s}}^{0}), (108)

for the discrete linearized Hamiltonian

lin[v1,h~2]=g2h~2,h~2+gh~2,hs~2+H2u1,u1.\mathcal{H}_{lin}[{v}^{1},\tilde{h}^{2}]=\frac{g}{2}\left<{\tilde{h}^{2}},{\tilde{h}^{2}}\right>+g\left<{\tilde{h}^{2}},{\tilde{h_{s}}^{2}}\right>+\frac{H}{2}\left<{{u}^{1}},{{u}^{1}}\right>. (109)

As expected, almost all the wedge products (which give the nonlinearities) have disappeared, other than the linearized PV wedge product f~0HhF~linn1{\frac{\tilde{f}^{0}}{H}}\boldsymbol{\wedge}_{h}{\tilde{F}^{n-1}_{lin}}.

6 Scheme Properties

The scheme presented in Section 5 has, by construction, several desirable properties (see [60, 21] for more discussion of desirable properties for schemes used in atmospheric and oceanic models). These properties come from the operator properties discussed in Section 4 and are detailed below. They can broadly be divided into topological properties and metric properties (similarly to the split finite element approach taken in [6]). Topological properties are those that depend only on the properties of the topological operators (the exterior derivative, topological pairing and wedge product), or in other words the Poisson bracket. The metric properties involve the Hodge star and/or inner product, i.e. the Hamiltonian.

6.1 Topological Properties

Topological properties include structural properties such as no spurious vorticity production and PV compatibility/steady geostrophic modes; and conservation laws (total energy, mass, circulation and potential enstrophy) which arise because the discrete Poisson bracket (102) is anti-symmetric and has a subset of the continuous Casimirs. Fundamentally, all of these rely on the discrete operators having discrete analogues of the key split exterior calculus identities: integration by parts for d\operatorname{d}/,\left<\left<{},{}\right>\right>, annihilation for d\operatorname{d}, anti-symmetry for \wedge and a (partial) Leibniz rule for d\operatorname{d}/\wedge.

6.1.1 Total Energy Conservation

Consider {,𝒜}\{\operatorname{\mathcal{B}},\operatorname{\mathcal{A}}\}:

{,𝒜}=δ~δv1,q~0hδ~𝒜δv1δ~δv1,𝐃1δ~𝒜δh~2δ~δh~2,𝐃¯2δ~𝒜δv1.\{\operatorname{\mathcal{B}},\operatorname{\mathcal{A}}\}=-\left<\left<{\frac{\tilde{\delta}\!\operatorname{\mathcal{B}}}{\delta{v}^{1}}},{{\tilde{q}^{0}}\boldsymbol{\wedge}_{h}{\frac{\tilde{\delta}\!\operatorname{\mathcal{A}}}{\delta{v}^{1}}}}\right>\right>-\left<\left<{\frac{\tilde{\delta}\!\operatorname{\mathcal{B}}}{\delta{v}^{1}}},{\mathbf{D}_{1}\frac{\tilde{\delta}\!\operatorname{\mathcal{A}}}{\delta\tilde{h}^{2}}}\right>\right>-\left<\left<{\frac{\tilde{\delta}\!\operatorname{\mathcal{B}}}{\delta\tilde{h}^{2}}},{\mathbf{\bar{D}}_{2}\frac{\tilde{\delta}\!\operatorname{\mathcal{A}}}{\delta{v}^{1}}}\right>\right>. (110)

Using the anti-symmetry property (95) for h{}\boldsymbol{\wedge}_{h}{} the first term can be written as

δ~𝒜δv1,q~0hδ~δv1.\left<\left<{\frac{\tilde{\delta}\!\operatorname{\mathcal{A}}}{\delta{v}^{1}}},{{\tilde{q}^{0}}\boldsymbol{\wedge}_{h}{\frac{\tilde{\delta}\!\operatorname{\mathcal{B}}}{\delta{v}^{1}}}}\right>\right>. (111)

Using the integration by parts property (87) for 𝐃1\mathbf{D}_{1} and 𝐃¯2\mathbf{\bar{D}}_{2} the last two terms can be written as

δ~𝒜δv1,𝐃1δ~δh~2+δ~𝒜δh~2,𝐃¯2δ~δv1.\left<\left<{\frac{\tilde{\delta}\!\operatorname{\mathcal{A}}}{\delta{v}^{1}}},{\mathbf{D}_{1}\frac{\tilde{\delta}\!\operatorname{\mathcal{B}}}{\delta\tilde{h}^{2}}}\right>\right>+\left<\left<{\frac{\tilde{\delta}\!\operatorname{\mathcal{A}}}{\delta\tilde{h}^{2}}},{\mathbf{\bar{D}}_{2}\frac{\tilde{\delta}\!\operatorname{\mathcal{B}}}{\delta{v}^{1}}}\right>\right>. (112)

Therefore, combining (111) and (112) it is clear that the discrete Poisson bracket (102) is anti-symmetric:

{𝒜,}={,𝒜},\{\operatorname{\mathcal{A}},\operatorname{\mathcal{B}}\}=-\{\operatorname{\mathcal{B}},\operatorname{\mathcal{A}}\}, (113)

and total energy is conserved since

ddt={,}={,}=0.\displaystyle\frac{\operatorname{d}\!\operatorname{\mathcal{H}}}{\operatorname{d}\!t}=\{\operatorname{\mathcal{H}},\operatorname{\mathcal{H}}\}=-\{\operatorname{\mathcal{H}},\operatorname{\mathcal{H}}\}=0. (114)

6.1.2 Total Mass Conservation

Total mass is given by

=I~2,h~2,\operatorname{\mathcal{M}}=\left<{\tilde{I}^{2}},{\tilde{h}^{2}}\right>, (115)

which has functional derivatives

δ~δv1=0,δ~δh~2=I0.\frac{\tilde{\delta}\!\operatorname{\mathcal{M}}}{\delta{v}^{1}}=0,\quad\quad\quad\frac{\tilde{\delta}\!\operatorname{\mathcal{M}}}{\delta\tilde{h}^{2}}={I}^{0}. (116)

Inserting these into (102) gives

{,𝒜}=0𝒜,\{\operatorname{\mathcal{M}},\operatorname{\mathcal{A}}\}=0\quad\quad\forall\operatorname{\mathcal{A}}, (117)

provided that 𝐃1I0=0\mathbf{D}_{1}{I}^{0}=0 i.e. (92), and thus

ddt={,}=0.\displaystyle\frac{\operatorname{d}\!\operatorname{\mathcal{M}}}{\operatorname{d}\!t}=\{\operatorname{\mathcal{M}},\operatorname{\mathcal{H}}\}=0. (118)

6.1.3 Total Circulation Conservation

Total mass-weighted potential vorticity (i.e. total circulation) is given by

𝒫𝒱=I2,η2=(72)I~0,𝐃2v1=IBP𝐃¯1I~0,v1=(92)0,\operatorname{\mathcal{PV}}=\left<{{I}^{2}},{{\eta}^{2}}\right>\stackrel{{\scriptstyle\eqref{discrete-topo-pairing-1}}}{{=}}\left<\left<{\tilde{I}^{0}},{\mathbf{D}_{2}{v}^{1}}\right>\right>\stackrel{{\scriptstyle IBP}}{{=}}-\left<\left<{\mathbf{\bar{D}}_{1}\tilde{I}^{0}},{{v}^{1}}\right>\right>\stackrel{{\scriptstyle\eqref{D-const}}}{{=}}0, (119)

which has functional derivatives

δ~𝒫𝒱δv1=0,δ~𝒫𝒱δh~2=0.\frac{\tilde{\delta}\!\operatorname{\mathcal{PV}}}{\delta{v}^{1}}=0,\quad\quad\quad\frac{\tilde{\delta}\!\operatorname{\mathcal{PV}}}{\delta\tilde{h}^{2}}=0. (120)

The zero functional derivatives are just a discrete analogue of the well-known fact that the total circulation for a manifold without boundaries is zero, or that the conservation of PV occurs independently of the equations of motion (it is off-shell). Therefore

{𝒫𝒱,𝒜}=0𝒜,\{\operatorname{\mathcal{PV}},\operatorname{\mathcal{A}}\}=0\quad\quad\forall\operatorname{\mathcal{A}}, (121)

and

d𝒫𝒱dt={𝒫𝒱,}=0.\displaystyle\frac{\operatorname{d}\!\operatorname{\mathcal{PV}}}{\operatorname{d}\!t}=\{\operatorname{\mathcal{PV}},\operatorname{\mathcal{H}}\}=0. (122)

Another way to see this is to simply take 𝐃2\mathbf{D}_{2} of the v1{v}^{1} equation and then use the discrete Stokes theorem (93):

(I~0)T(𝐃2𝐯)t=0\displaystyle(\tilde{I}^{0})^{T}\frac{\partial(\mathbf{D}_{2}\operatorname{\mathbf{v}})}{\partial t}=0 (123)

6.1.4 Total Potential Enstrophy Conservation

Total potential enstrophy is given by

𝒫=12q2,η2=12𝐇¯0q~0,q~0hh~2=(72)12q~0,q~0hh~2=(95)12h~2,q~0hq~0,\operatorname{\mathcal{PE}}=\frac{1}{2}\left<{{q}^{2}},{{\eta}^{2}}\right>=\frac{1}{2}\left<{\mathbf{\bar{H}}_{0}\tilde{q}^{0}},{{\tilde{q}^{0}}\boldsymbol{\wedge}_{h}{\tilde{h}^{2}}}\right>\stackrel{{\scriptstyle\eqref{discrete-topo-pairing-1}}}{{=}}\frac{1}{2}\left<\left<{\tilde{q}^{0}},{{\tilde{q}^{0}}\boldsymbol{\wedge}_{h}{\tilde{h}^{2}}}\right>\right>\stackrel{{\scriptstyle\eqref{Q-antisymmetry}}}{{=}}-\frac{1}{2}\left<\left<{\tilde{h}^{2}},{{\tilde{q}^{0}}\boldsymbol{\wedge}_{h}{\tilde{q}^{0}}}\right>\right>, (124)

where q2=𝐇¯0q~0{q}^{2}=\mathbf{\bar{H}}_{0}\tilde{q}^{0}, which has functional derivatives

δ~𝒫δv1=𝐃¯1q~0,δ~𝒫δh~2=12(q~0hq~0).\displaystyle\frac{\tilde{\delta}\!\operatorname{\mathcal{PE}}}{\delta{v}^{1}}=-\mathbf{\bar{D}}_{1}\tilde{q}^{0},\quad\quad\frac{\tilde{\delta}\!\operatorname{\mathcal{PE}}}{\delta\tilde{h}^{2}}=-\frac{1}{2}({\tilde{q}^{0}}\boldsymbol{\wedge}_{h}{\tilde{q}^{0}}). (125)

Inserting these into (102) and using the (partial) Leibniz rule II (97) along with annihilation (86) gives

{𝒫,𝒜}=0𝒜,\{\operatorname{\mathcal{PE}},\operatorname{\mathcal{A}}\}=0\quad\quad\forall\operatorname{\mathcal{A}}, (126)

and therefore

d𝒫dt={𝒫,}=0.\displaystyle\frac{\operatorname{d}\!\operatorname{\mathcal{PE}}}{\operatorname{d}\!t}=\{\operatorname{\mathcal{PE}},\operatorname{\mathcal{H}}\}=0. (127)

It is rare that TRiSK-type schemes choose a nonlinear PV flux operator q~0hF~n1{\tilde{q}^{0}}\boldsymbol{\wedge}_{h}{\tilde{F}^{n-1}} that satisfies this. Instead, they usually opt for more sophisticated forms of PV advection with better behaviour for sharp gradients, such as upwinding, WENO or CLUST.

6.1.5 No Spurious Vorticity Production

The evolution equation for absolute vorticity η2{\eta}^{2} (obtained by 𝐃2\mathbf{D}_{2} applied to (105)) is:

η2t+𝐃2(q~0hF~1)+𝐃2𝐃1B0=0.\frac{\partial{\eta}^{2}}{\partial t}+\mathbf{D}_{2}({\tilde{q}^{0}}\boldsymbol{\wedge}_{h}{\tilde{F}^{1}})+\cancel{\mathbf{D}_{2}\mathbf{D}_{1}{B}^{0}}=0. (128)

The last term is equal to zero since 𝐃2𝐃1=0\mathbf{D}_{2}\mathbf{D}_{1}=0, i.e. (86), which means there is no spurious vorticity production.

6.1.6 PV Compatibility/Steady Geostrophic Modes

If q~0=I~0\tilde{q}^{0}=\tilde{I}^{0} (or in fact any constant), then the η2{\eta}^{2} evolution equation becomes

(I~0hh~2)t+𝐃2(I~0hF~1)=0.\frac{\partial({\tilde{I}^{0}}\boldsymbol{\wedge}_{h}{\tilde{h}^{2}})}{\partial t}+\mathbf{D}_{2}({\tilde{I}^{0}}\boldsymbol{\wedge}_{h}{\tilde{F}^{1}})=0. (129)

Now compare this to taking I~0h{\tilde{I}^{0}}\boldsymbol{\wedge}_{h}{\square} of the h~2\tilde{h}^{2} equation

(I~0hh~2)t+I~0h𝐃¯2F~1=0.\frac{\partial({\tilde{I}^{0}}\boldsymbol{\wedge}_{h}{\tilde{h}^{2}})}{\partial t}+{\tilde{I}^{0}}\boldsymbol{\wedge}_{h}{\mathbf{\bar{D}}_{2}\tilde{F}^{1}}=0. (130)

If the (partial) Leibniz rule I (96) holds, then 𝐃2(I~0hF~1)=I~0h𝐃¯2F~1\mathbf{D}_{2}({\tilde{I}^{0}}\boldsymbol{\wedge}_{h}{\tilde{F}^{1}})={\tilde{I}^{0}}\boldsymbol{\wedge}_{h}{\mathbf{\bar{D}}_{2}\tilde{F}^{1}} for arbitrary F~1\tilde{F}^{1}, and (129) and (130) are the same equation. In that case, we say that the scheme has PV compatibility (a uniform PV field remains uniform). In the linearized equations, the same requirements arise for the presence of steady geostrophic modes (see [65] for more details).

6.2 Metric Properties

The metric properties involve a combination of the topological operators along with the metric operators. They are

  • Linear modes: spurious stationary modes are avoided through the choice of grid staggering in the scheme (equivalent to an Arakawa C-grid) except for the Coriolis mode [53]. The absence or presence of spurious branches of the dispersion relationship will depend on the grid topology. For example, a grid of quadrilaterals will have no spurious branches, a grid of triangles will have spurious inertia-gravity waves and a grid of hexagons will have spurious Rossby waves [50, 47, 64]. Commonly used quasi-uniform spherical grids such as the cubed-sphere and hexagonal-pentagonal icosahedron have similar considerations, for details see [19, 68]. The actual numerical values for the dispersion relationship itself will be a function of the (metric dependent) Hodge star operators and the choice of I~0hx~1{\tilde{I}^{0}}\boldsymbol{\wedge}_{h}{\tilde{x}^{1}} (the linearized version of the operator used to compute the PV flux term).

  • Accuracy: the accuracy of the operators are determined by the exterior derivative and Hodge stars for the differential operators, and by the wedge products and Hodge stars for the product operators. This last point is especially important, since it is usually these product operators that suffer from insufficient accuracy (see Section 8 and [67, 23]).

  • Hollingsworth instability [35, 42, 48, 7]: Hollingsworth instability occurs due to a combination of wedge products, Hodge stars and exterior derivative operators. A general prescription for avoiding it has yet to be found, but there are several known remedies that can alleviate it in the literature, all based on modifying either the kinetic energy part of the Hamiltonian [35, 26] or the nonlinear PV flux term [27]. Such modifications can be done in a way that preserves the other desirable properties, except potential enstrophy conservation.

6.3 Summary of Scheme Properties

The key features of TRiSK-type discretizations are conservation laws, no spurious vorticity production and PV compatibility/steady geostrophic modes. They all arise due to the operator properties of the topological operators (exterior derivatives, topological pairing and wedge products) and are independent of the choice of Hodge stars and grid topology and geometry. The remaining desirable properties are a good representation of linear modes, accuracy and (avoidance of) Hollingsworth instability, which interestingly are also the areas where TRiSK-type schemes can have issues. These remaining properties are largely a function of the choice of Hodge stars, specific wedge product coefficients and the choice of grid topology and geometry. This highlights the possibility of changing these choices to improve the desirable metric properties while keeping the desirable topological properties intact. This is explored more in Section 8.3.

7 Specific Operator Choices

To close the general DEC presented in Section 4, choices must be made for the Hodge star and wedge product operators. Specifically, there are three choices to be made here: a choice of Hodge star, a choice of PV wedge product, and a choice of KE wedge product. These choices will determine the supported grid topologies and geometries. In this section we identify possible choices from the TRiSK, DEC and split FE literature, along with simple extensions of existing approaches to new grid topologies or geometries.

7.1 TRiSK Notation

To start, we will first establish the correspondence between the notation used in [19, 23] and the one used in this paper, to enable easier comparison with schemes in the literature in Section 8. The former notation will be used only in this section and the next one.

For the Hodge star, the correspondence is

𝐈=𝐇¯2,𝐇=𝐇1,𝐉=𝐇2.\displaystyle\operatorname{\mathbf{I}}=\mathbf{\bar{H}}_{2},\quad\quad\operatorname{\mathbf{H}}=\mathbf{H}_{1},\quad\quad\operatorname{\mathbf{J}}=\mathbf{H}_{2}. (131)

For the PV wedge products, the correspondence is

𝐑x~2=I~0hx~2,𝐖x~1=I~0hx~1,𝐐x~1=q~0hx~1,\operatorname{\mathbf{R}}\tilde{x}^{2}={\tilde{I}^{0}}\boldsymbol{\wedge}_{h}{\tilde{x}^{2}},\quad\quad\operatorname{\mathbf{W}}\tilde{x}^{1}={\tilde{I}^{0}}\boldsymbol{\wedge}_{h}{\tilde{x}^{1}},\quad\quad\operatorname{\mathbf{Q}}\tilde{x}^{1}={\tilde{q}^{0}}\boldsymbol{\wedge}_{h}{\tilde{x}^{1}}, (132)

This form of 𝐑\operatorname{\mathbf{R}} is written such that an explicit formula for x~0\tilde{x}^{0} always exists, which is true for all the wedge products discussed here. The conditions on the PV wedge product required for energy conservation (i.e. antisymmetry (95)) can be written as

𝐖=𝐖T,𝐐=𝐐T,\operatorname{\mathbf{W}}=-\operatorname{\mathbf{W}}^{T},\quad\quad\quad\operatorname{\mathbf{Q}}=-\operatorname{\mathbf{Q}}^{T}, (133)

those for PV compatibility (partial Leibnitz rule I (96)) as

𝐑𝐃¯2=𝐃2𝐖,\operatorname{\mathbf{R}}\mathbf{\bar{D}}_{2}=\mathbf{D}_{2}\operatorname{\mathbf{W}}, (134)

and those for potential enstrophy conservation (partial Leibnitz rule II (97)) as

𝐐𝐃¯1q~0𝐃1𝐑Tq~02=0.\operatorname{\mathbf{Q}}\mathbf{\bar{D}}_{1}\tilde{q}^{0}-\mathbf{D}_{1}\operatorname{\mathbf{R}}^{T}\frac{\tilde{q}^{0}}{2}=0. (135)

In the last equation, 𝐑Tq~02=q~0hq~0\operatorname{\mathbf{R}}^{T}\frac{\tilde{q}^{0}}{2}={\tilde{q}^{0}}\boldsymbol{\wedge}_{h}^{\star}{\tilde{q}^{0}}, where the adjoint is from x~0hx~2{\tilde{x}^{0}}\boldsymbol{\wedge}_{h}{\tilde{x}^{2}} i.e. 𝐑\operatorname{\mathbf{R}}. These are the same formulas given in [65, 19, 23], up to different sign conventions.

For the kinetic energy, we will use the approach of starting with a definition for K~2=x1hy~1\tilde{K}^{2}={{x}^{1}}\boldsymbol{\wedge}_{h}{\tilde{y}^{1}}, and then determining the wedge products needed for the mass flux as adjoint operators. The operator x1hy~1{{x}^{1}}\boldsymbol{\wedge}_{h}{\tilde{y}^{1}} is closely related to the TT operator in [65], but acts on x1{x}^{1} and y~1\tilde{y}^{1}, while TT acts on x1{x}^{1} and y1{y}^{1}. We do not use the ϕT\operatorname{\boldsymbol{\phi}^{T}} and ϕ\operatorname{\boldsymbol{\phi}} notation from [23], since it is not general enough to encompass the two different mass flux wedge products that arise in the case of non-diagonal 𝐇\operatorname{\mathbf{H}}.

7.2 Choices for Hodge Stars: 𝐈\operatorname{\mathbf{I}}, 𝐉\operatorname{\mathbf{J}} and 𝐇\operatorname{\mathbf{H}}

A wide range of Hodge stars exist in the literature. All of the Hodge stars discussed here are low-order (between 1st and 2nd order) accurate and geometrically inflexible: they impose some sort of restriction on the topology and/or geometry of the grids. Generally speaking, they can be categorized into three types:

  • Voronoi Hodge star999also known as the circumcentric or diagonal Hodge star. [33, 34]. This Hodge star is based on the 1-1 relationship between kk-cells and (nk)(n-k)-cells on opposite grids, and has (diagonal) stencil coefficients equal to the ratio of areas for these two geometric entities:

    Ic~,v=1Ac~,Jc,v~=1Ac,He~,e=AeAe~.I_{\tilde{c},v}=\frac{1}{A_{\tilde{c}}},\quad\quad J_{c,\tilde{v}}=\frac{1}{A_{c}},\quad\quad H_{\tilde{e},e}=\frac{A_{e}}{A_{\tilde{e}}}. (136)

    More generally, it is the ratio of measures between the target (nk)(n-k)-cell and the source kk-cell (areas for 22-cells, lengths for 11-cells) for relevant geometric entities, where the measures of 0-cells vv and v~\tilde{v} are 11 by definition. This Hodge star requires grids with circumcentric duality, which implies orthogonality. However, there has been some work to modify 𝐇\operatorname{\mathbf{H}} to support non-orthogonal grids, given in [76, 67]. Unfortunately, this operator is inconsistent on many commonly used quasi-uniform spherical grids such as the cubed sphere.

  • Barycentric Hodge star: Using a simplicial straight grid along with a barycentric twisted grid, a non-diagonal Hodge star can be defined based on nearest-neighbors. Examples of this can be found in [32, 3].

  • Galerkin Hodge star [32]: Using the mass matrices induced by a set of basis functions for discrete differential forms, a Hodge star operator can be defined. This is usually done with Whitney forms [32, 63], although alternative basis functions have been developed [10] based on energetics definitions. These approaches require a simplicial straight grid along with a barycentric twisted grid. An interesting extension of this idea to arbitrary complexes is provided in [66], based on primal-dual finite elements. Unfortunately, this Hodge star requires the solution of a linear system of equations, and is therefore computationally challenging for TRiSK-type schemes.

A comparison between the three types of Hodge stars for 2D surfaces can be found in [45, 44], while connections between various Hodge star definitions and how they make an inner product are explored in [31].

7.2.1 Alternative Hodge Stars

In addition to the Voronoi, barycentric and Galerkin Hodge stars, there are some additional alternative Hodge stars that have appeared in the literature. The GijG_{ij} Hodge star [73] is based on the metric tensor of the underlying coordinate system used to define the computational grid. It is defined around a topologically square, possibly non-orthogonal grid. In the case of an orthogonal grid it will reduce to the Voronoi Hodge star. The extension of this Hodge star to arbitrary topologies and geometries seems possible, although 𝐇\operatorname{\mathbf{H}} will likely be quite complicated. A higher-order Hodge star on uniform rectangular grids based on coefficient fitting can be found in [14]. The extension of this idea to arbitrary topologies and geometries seems to be quite intricate, however, and it is unclear if it can be generalized. Finally, a diagonal, positive-definite Hodge star for non-orthogonal grids based on constitutive relationships can be found in [18].

7.3 Choices for PV Wedge Products 𝐑\operatorname{\mathbf{R}}, 𝐖\operatorname{\mathbf{W}} and 𝐐\operatorname{\mathbf{Q}}

The major innovation of [68, 52], and indeed the basis for all TRiSK-type schemes, is an explicit formula for 𝐖\operatorname{\mathbf{W}} coefficients given a choice of 𝐑\operatorname{\mathbf{R}} coefficients with a nearest-neighbor stencil, such that all the desirable properties for 𝐖\operatorname{\mathbf{W}} are obtained (𝐖=𝐖T\operatorname{\mathbf{W}}=-\operatorname{\mathbf{W}}^{T} and 𝐑𝐃¯2=𝐃2𝐖\operatorname{\mathbf{R}}\mathbf{\bar{D}}_{2}=\mathbf{D}_{2}\operatorname{\mathbf{W}}). This is hereafter refered to as the TRSK2010 approach. Therefore, the choice of PV wedge product really amounts to a choice of 𝐑\operatorname{\mathbf{R}}, along with a choice of how to construct 𝐐\operatorname{\mathbf{Q}} given 𝐑\operatorname{\mathbf{R}} and 𝐖\operatorname{\mathbf{W}}.

7.3.1 Choice of 𝐑\operatorname{\mathbf{R}}/𝐖\operatorname{\mathbf{W}}

General nearest-neighbor stencil definitions of 𝐑\operatorname{\mathbf{R}} and 𝐖\operatorname{\mathbf{W}} are given by [32]

(𝐑x~2)c\displaystyle(\operatorname{\mathbf{R}}\tilde{x}^{2})_{c} =c~VC(c)Rc~,cx~c~2,\displaystyle=\sum_{\tilde{c}\in VC(c)}R_{\tilde{c},c}\tilde{x}^{2}_{\tilde{c}}, (137)
(𝐖x~1)e\displaystyle(\operatorname{\mathbf{W}}\tilde{x}^{1})_{e} =e~ECP(e)We~,ex~e~1.\displaystyle=\sum_{\tilde{e}\in ECP(e)}W_{\tilde{e},e}\tilde{x}^{1}_{\tilde{e}}. (138)

Using the TRSK2010 approach, the 𝐖\operatorname{\mathbf{W}} coefficients (We~,eW_{\tilde{e},e}) are uniquely determined from the 𝐑\operatorname{\mathbf{R}} coefficients (Rc~,cR_{\tilde{c},c}). Additionally, this choice of 𝐑\operatorname{\mathbf{R}} is explicitly solvable for q~0\tilde{q}^{0}. The specific choice of coefficients for 𝐑\operatorname{\mathbf{R}} follows one of two approaches:

  • Metric [23, 65]: Rc~,cR_{\tilde{c},c} is defined in terms of overlap areas Ac~,cA_{\tilde{c},c} between cc and c~\tilde{c} and the twisted cell area Ac~A_{\tilde{c}} (see Figure 2) as

    Rc~,c\displaystyle R_{\tilde{c},c} =\displaystyle= Ac~,cAc~.\displaystyle\frac{A_{\tilde{c},c}}{A_{\tilde{c}}}. (139)

    This approach is valid for arbitrary grid geometries.

  • Combinatorical [32]: Rc~,cR_{\tilde{c},c} is defined in terms of the size [CV(v)][CV(v)] (number of elements) of CV(v)CV(v) as

    Rc~,c\displaystyle R_{\tilde{c},c} =\displaystyle= 1[CV(v)],\displaystyle\frac{1}{[CV(v)]}, (140)

    where vv is the straight grid vertex dual to the dual grid cell c~\tilde{c}. This approach is valid for arbitrary grid geometries as well, although it has only been used, as far as we aware, on square topologies (with possible lat-lon singularities).

These two approaches give the same results on a uniform grid. Another option for 𝐑\operatorname{\mathbf{R}} and 𝐖\operatorname{\mathbf{W}} is to use the primal-dual FE operators from [66], since they share the same stencil as the DEC ones and have the same key properties.

7.3.2 Choice of 𝐐\operatorname{\mathbf{Q}}

Given 𝐖\operatorname{\mathbf{W}} and 𝐑\operatorname{\mathbf{R}}, there are four (non-exhaustive) possible definitions of 𝐐\operatorname{\mathbf{Q}}, differing in whether they conserve total energy (𝐐TE\operatorname{\mathbf{Q}}^{TE}), potential enstrophy (𝐐PE\operatorname{\mathbf{Q}}^{PE}), both (𝐐DBL\operatorname{\mathbf{Q}}^{DBL}) or none (𝐐accur\operatorname{\mathbf{Q}}^{accur}):

  • 𝐐TE\operatorname{\mathbf{Q}}^{TE} satifies 𝐐=𝐐T\operatorname{\mathbf{Q}}=-\operatorname{\mathbf{Q}}^{T}, and therefore conserves total energy (as shown in Section 6.1.1):

    (𝐐TEx~1)e\displaystyle(\operatorname{\mathbf{Q}}^{TE}\tilde{x}^{1})_{e} =e~ECP(e)qe+qe~2We~,ex~e~1,\displaystyle=\sum_{\tilde{e}\in ECP(e)}\frac{q^{e}+q^{\tilde{e}}}{2}W_{\tilde{e},e}\tilde{x}^{1}_{\tilde{e}}, (141)

    for an arbitrary dual edge reconstruction qeq^{e}. This definition is equivalent to

    𝐐TE=12(qe𝐖+𝐖qe),\operatorname{\mathbf{Q}}^{TE}=\frac{1}{2}(q^{e}\operatorname{\mathbf{W}}+\operatorname{\mathbf{W}}q^{e}),

    It is clear from this latter form of the definition that 𝐐=𝐐T\operatorname{\mathbf{Q}}=-\operatorname{\mathbf{Q}}^{T}, provided 𝐖=𝐖T\operatorname{\mathbf{W}}=-\operatorname{\mathbf{W}}^{T}. Oftentimes, sophisticated advection schemes (APVM, LUST, CLUST, upwinding, WENO, etc.) are used to compute qeq^{e} [75, 77], especially on hexagonal grids to control the spurious Rossby mode. A clever choice of qeq^{e} was developed in [27] to help alleviate Hollingsworth instability.

  • 𝐐PE\operatorname{\mathbf{Q}}^{PE} satisfies 𝐐𝐃¯1q~0𝐃1𝐑T(q~0)22=0\operatorname{\mathbf{Q}}\mathbf{\bar{D}}_{1}\tilde{q}^{0}-\mathbf{D}_{1}\operatorname{\mathbf{R}}^{T}\frac{(\tilde{q}^{0})^{2}}{2}=0, and therefore conserves potential enstrophy (as shown in Section 6.1.4):

    (𝐐PEx~1)e\displaystyle(\operatorname{\mathbf{Q}}^{PE}\tilde{x}^{1})_{e} =e~ECP(e)v~VE(e~)q~v~02We~,ex~e~1.\displaystyle=\sum_{\tilde{e}\in ECP(e)}\sum_{\tilde{v}\in VE(\tilde{e})}\frac{\tilde{q}^{0}_{\tilde{v}}}{2}W_{\tilde{e},e}\tilde{x}^{1}_{\tilde{e}}. (142)
  • 𝐐DBL\operatorname{\mathbf{Q}}^{DBL} satisfies both 𝐐=𝐐T\operatorname{\mathbf{Q}}=-\operatorname{\mathbf{Q}}^{T} and 𝐐𝐃¯1q~0𝐃1𝐑T(q~0)22=0\operatorname{\mathbf{Q}}\mathbf{\bar{D}}_{1}\tilde{q}^{0}-\mathbf{D}_{1}\operatorname{\mathbf{R}}^{T}\frac{(\tilde{q}^{0})^{2}}{2}=0, and therefore conserves total energy and potential enstrophy:

    (𝐐DBLx~1)e\displaystyle(\operatorname{\mathbf{Q}}^{DBL}\tilde{x}^{1})_{e} =e~ECP(e)v~VE(e~)Qe~,e,v~x~e~1q~v~0.\displaystyle=\sum_{\tilde{e}\in ECP(e)}\sum_{\tilde{v}\in VE(\tilde{e})}Q_{\tilde{e},e,\tilde{v}}\tilde{x}^{1}_{\tilde{e}}\tilde{q}^{0}_{\tilde{v}}. (143)

    The Qe~,e,v~Q_{\tilde{e},e,\tilde{v}} coefficients in 𝐐DBL\operatorname{\mathbf{Q}}^{DBL} are uniquely determined by the choice of 𝐑\operatorname{\mathbf{R}} coefficients. The first example of this appeared in [2], with an extension to higher-order accuracy in the implied vorticity advection equation in [62]. A general framework that combines [2] and [62] appears in [55], which identifies other version of 𝐐\operatorname{\mathbf{Q}} with the same doubly conservative properties. All of these approaches are restricted to logically square topologies. An extension of [55] to arbitrary grid topologies and geometries is found in [23]. However, only metric 𝐑\operatorname{\mathbf{R}} coefficients are evaluated in that work. A 𝐐\operatorname{\mathbf{Q}} with partial double conservation is found in [54]: it conserves total energy but only enstrophy in the non-divergent limit, not potential enstrophy.

  • 𝐐accur\operatorname{\mathbf{Q}}^{accur} gives up conservation in exchange for accurate advection of PV:

    (𝐐accurx~1)e\displaystyle(\operatorname{\mathbf{Q}}^{accur}\tilde{x}^{1})_{e} =e~ECP(e)qeWe~,ex~e~1.\displaystyle=\sum_{\tilde{e}\in ECP(e)}q^{e}W_{\tilde{e},e}\tilde{x}^{1}_{\tilde{e}}. (144)

recalling qeq^{e} is an arbitrary dual edge reconstruction, usually obtained from a sophisticated advection scheme such as APVM, LUST, CLUST, upwinding, WENO, etc.

For all four definitions, if q~0=I~0\tilde{q}^{0}=\tilde{I}^{0}, then 𝐐\operatorname{\mathbf{Q}} becomes equal to the 𝐖\operatorname{\mathbf{W}} defined from 𝐑\operatorname{\mathbf{R}}. This is clear for 𝐐TE\operatorname{\mathbf{Q}}^{TE}, 𝐐PE\operatorname{\mathbf{Q}}^{PE} and 𝐐accur\operatorname{\mathbf{Q}}^{accur} since they are based on the 𝐖\operatorname{\mathbf{W}} coefficients and qe=1q^{e}=1 when q~0=I~0\tilde{q}^{0}=\tilde{I}^{0}. For 𝐐DBL\operatorname{\mathbf{Q}}^{DBL} see the proof in Appendix B that enforcing both total energy and potential enstrophy conservation automatically gives PV compatibility.

7.4 Choices for KE Wedge Product

Unlike the PV wedge product, the KE wedge product does not have to satisfy any properties. Therefore, there is some additional freedom in how it is defined. A general nearest-neighbor stencil definition of x1hy~1{{x}^{1}}\boldsymbol{\wedge}_{h}{\tilde{y}^{1}} is given by

(x1hy~1)c~=e~EC(c~)𝔗c~,e,e~xe1y~e~1,({{x}^{1}}\boldsymbol{\wedge}_{h}{\tilde{y}^{1}})_{\tilde{c}}=\sum_{\tilde{e}\in EC(\tilde{c})}\mathfrak{T}_{\tilde{c},e,\tilde{e}}{x}^{1}_{e}\tilde{y}^{1}_{\tilde{e}}, (145)

where ee is the straight grid edge corresponding to the twisted grid edge e~\tilde{e}. As for 𝐑\operatorname{\mathbf{R}}, either metric or combinatorial definitions can be used for 𝔗c~,e,e~\mathfrak{T}_{\tilde{c},e,\tilde{e}}:

  • Metric [52, 67]: 𝔗c~,e,e~\mathfrak{T}_{\tilde{c},e,\tilde{e}} is defined in terms of overlap areas Ac~,e~A_{\tilde{c},\tilde{e}} and extended edge area A~e~\tilde{A}_{\tilde{e}} as

    𝔗c~,e,e~=Ac~,e~A~e~.\mathfrak{T}_{\tilde{c},e,\tilde{e}}=\frac{A_{\tilde{c},\tilde{e}}}{\tilde{A}_{\tilde{e}}}. (146)

    This approach is valid for arbitrary grid geometries.

  • Combinatorical [32]: 𝔗c~,e,e~\mathfrak{T}_{\tilde{c},e,\tilde{e}} is defined in terms of the size [CE(e~)][CE(\tilde{e})] of CE(e~)CE(\tilde{e}), which is always 12\frac{1}{2} on a conforming grid without boundaries, i.e.

    𝔗c~,e,e~\displaystyle\mathfrak{T}_{\tilde{c},e,\tilde{e}} =\displaystyle= 12.\displaystyle\frac{1}{2}. (147)

    This approach is valid for arbitrary grid geometries as well, although it has only been used on square topologies (with possible lat-lon singularities).

From the coefficients 𝔗c~,e,e~\mathfrak{T}_{\tilde{c},e,\tilde{e}}, it is easy to define the adjoint wedge products x0hy~1{{x}^{0}}\boldsymbol{\wedge}_{h}{\tilde{y}^{1}} and x0hy1{{x}^{0}}\boldsymbol{\wedge}_{h}{{y}^{1}} needed to compute the mass flux F~n1\tilde{F}^{n-1}:

(h0hu1)e\displaystyle({{h}^{0}}\boldsymbol{\wedge}_{h}^{\star}{{u}^{1}})_{e} =\displaystyle= c~CE(e)𝔗c~,e,e~hv0ue1,\displaystyle\sum_{\tilde{c}\in CE(e)}\mathfrak{T}_{\tilde{c},e,\tilde{e}}{h}^{0}_{v}{u}^{1}_{e}, (148)
(h0hu~n1)e~\displaystyle({{h}^{0}}\boldsymbol{\wedge}_{h}^{\star}{\tilde{u}^{n-1}})_{\tilde{e}} =\displaystyle= c~CE(e~)𝔗c~,e,e~hv0u~e~n1.\displaystyle\sum_{\tilde{c}\in CE(\tilde{e})}\mathfrak{T}_{\tilde{c},e,\tilde{e}}{h}^{0}_{v}\tilde{u}^{n-1}_{\tilde{e}}\ . (149)

In the case of a uniform grid, the metric and combinatorical approaches give the same results.

Alternative Choices

Clever choices of KE wedge products with slightly different stencils were developed in [35, 26] to help alleviate Hollingsworth instability. Another alternative KE wedge product with improved accuracy was developed in [13], based on a least square reconstruction, although it was used only to compute kinetic energy and not the corresponding mass flux. As for 𝐑\operatorname{\mathbf{R}} and 𝐖\operatorname{\mathbf{W}}, it would also be possible to use the primal-dual FE approach from [66] to define a KE wedge product, although this has not been worked out yet. A final view of the wedge product is through the connection with the interior product (contraction), given by Hirani’s formula i𝐱α=(1)k(nk)~(~α𝐱)\mathrm{i}_{\mathbf{x}}\alpha=(-1)^{k(n-k)}\operatorname{\tilde{\star}}(\operatorname{\tilde{\star}}\alpha\wedge\mathbf{x}^{\flat}). A discrete version of this is explored in [8].

7.5 Choice of grid

As discussed in Section 4.1, grids have two aspects: topology and geometry. Within TRiSK-type schemes, there is a distinction between schemes that are capable of handling only topologically square grids (along with possibly a lat-lon grid singularity), and those capable of handling arbitrary topologies. Additionally, there is a distinction between schemes that can handle arbitrary (non-orthogonal) grid geometries, and those that can handle only orthogonal grid geometries. For quasi-uniform grids such as the icosahedral-pentagonal and cubed sphere, the ability to handle general conforming topologies (for both) and non-orthogonal geometries (for cubed sphere) is required. These restrictions on grid topology/geometry arise due to the choices made for the Hodge star and wedge product operators, as discussed in the previous subsections.

7.6 Grid Optimization

In addition to these choices of operators, it is also possible to apply many different optimization schemes to improve the geometry of the grid. This includes tweaking [28, 29], centroidal voronoi tesselations [43, 38, 15], spring-dynamics [69, 37], generalized power grids [24] and Hodge-optimized triangulations [46]. Some of these optimization choices were compared in [19, 23, 24]; but only for certain choices of operators. Grid optimization is primarily utilized to improve grid regularity, and therefore improve operator and scheme accuracy, and to allow a larger explicit time step.

7.7 Effects of choices on properties

In general, the topological properties are obtained by any of the choices discussed above, with the possible exception of total energy or potential enstrophy conservation depending on the choice of 𝐐\operatorname{\mathbf{Q}}. The choice of operators does affect the metric properties, specifically:

  • The Hodge star choice (specifically 𝐃k\mathbf{D}_{k}/𝐃¯k\mathbf{\bar{D}}_{k} plus 𝐈\operatorname{\mathbf{I}}, 𝐉\operatorname{\mathbf{J}} and 𝐇\operatorname{\mathbf{H}}) determines the accuracy of the differential operators, and the combination of the Hodge star and the wedge product (specifically 𝐑\operatorname{\mathbf{R}}/𝐖\operatorname{\mathbf{W}}/𝐐\operatorname{\mathbf{Q}} or x1hy~1{{x}^{1}}\boldsymbol{\wedge}_{h}{\tilde{y}^{1}} plus 𝐈\operatorname{\mathbf{I}}, 𝐉\operatorname{\mathbf{J}} and 𝐇\operatorname{\mathbf{H}}) determines the accuracy of the scalar/vector product operators.

  • Hollingsworth instability is controlled by the choice of wedge products used in the kinetic energy/mass flux (x1hy~1{{x}^{1}}\boldsymbol{\wedge}_{h}{\tilde{y}^{1}}) and/or the PV flux term (𝐐\operatorname{\mathbf{Q}}), as well as Hodge stars 𝐇\operatorname{\mathbf{H}} and 𝐈\operatorname{\mathbf{I}}.

  • The choice of grid topology determines the presence or absence of spurious branches of dispersion relationship.

  • The choice of grid optimization can affect the accuracy of the differential operators.

The main issues seen with TRiSK-type schemes are the inability to find (on arbitrary grids) accurate and Hollingsworth free discrete versions of the operators. However, as discussed in Section 8.3, only a small portion of the possible choices have been explored. With careful grid optimization it seems possible to, at least, get 1st order in LL_{\infty} for some tested quasi-uniform spherical grids for differential operators, but scalar/vector products are trickier. The combinatorial wedge products do not have accuracy issues, including lat-lon variants and the extension [73] to topologically square non-orthogonal grids. However, these wedge products have not been tested on arbitrary grids. The metric wedge products (𝐑\operatorname{\mathbf{R}}/𝐖\operatorname{\mathbf{W}}/𝐐\operatorname{\mathbf{Q}} and x1hy~1{{x}^{1}}\boldsymbol{\wedge}_{h}{\tilde{y}^{1}}) on arbitrary grids do have accuracy issues in at least LL_{\infty}. Hollingsworth instability appears avoidable (or at least controllable) through careful specification of either qeq^{e} using in 𝐐TE\operatorname{\mathbf{Q}}^{TE} [27] and/or x1hy~1{{x}^{1}}\boldsymbol{\wedge}_{h}{\tilde{y}^{1}} [35, 26].

8 Schemes from the literature

In this section, we identify the operator and grid optimization choices that were made101010Usually implicitly, unaware of the DEC structure. in a variety of TRiSK-type schemes from the literature. Specifically, we will look at the schemes in [2] (AL81), [54] (SD75), [62] (TW84), [52] (TRSK2010), [67] (Thuburn2014) , [75, 77, 76] (Weller2014), [19, 23] (Eldred2017) [55] (S04) and [73] (Toy2017). Some of this connection was covered in [19, 23], but the understanding of the discrete wedge product was lacking. A detailed summary of the various choices made by TRiSK-type schemes in the literature is given in Table 2.

Scheme Grid 𝐈\operatorname{\mathbf{I}}/𝐉\operatorname{\mathbf{J}}/𝐇\operatorname{\mathbf{H}} 𝐑\operatorname{\mathbf{R}}/𝐖\operatorname{\mathbf{W}} 𝐐\operatorname{\mathbf{Q}} x1hy~1{{x}^{1}}\boldsymbol{\wedge}_{h}{\tilde{y}^{1}} Dof Scaling Grid Opt
AL81 S-O/LL V C DBL C yes N/A
SD75 S-O/LL V C DBL1 C yes N/A
TW84 S-O/LL V C DBL3 C yes N/A
TRSK2010 US-O V M TE/PE M yes CVT
Thuburn2014 US-NO V2 M ACCUR4 other4 no CVT
Weller2014 US-NO V2 M TE other5 partial5 CVT
Eldred2017 US-NO V2 M DBL/TE/PE M no CVT, SD, TW
S04 S-O V C DBL3 C yes N/A
Toy2017 S-NO GijG_{ij} C DBL C yes N/A
Table 2: A summary of the TRiSK-type schemes in the literature: the grid topologies and geometries they support; the choice of Hodge stars 𝐈\operatorname{\mathbf{I}}/𝐉\operatorname{\mathbf{J}}/𝐇\operatorname{\mathbf{H}}, PV wedge products 𝐑\operatorname{\mathbf{R}}/𝐖\operatorname{\mathbf{W}} and 𝐐\operatorname{\mathbf{Q}}, KE wedge product x1hy~1{{x}^{1}}\boldsymbol{\wedge}_{h}{\tilde{y}^{1}} they make; whether dof scaling is required to put them into the DEC framework used in this paper; and the choice of grid optimization. Here S-O indicates square topology with orthogonal geometry, LL indicates lat-lon topology and geometry, US-O indicates an unstructured topology with orthogonal geometry, US-NO indicates an unstructured topology with non-orthogonal geometry and S-NO indicates a square topology with non-orthogonal geometry. A V indicates a Voronoi Hodge star, while GijG_{ij} indicates the GijG_{ij} based Hodge star. A C indicates a combinatorial discretization for the PV or KE wedge product, while an M indicates a metric one. For 𝐐\operatorname{\mathbf{Q}}, DBL indicates the doubly conservative version 𝐐DBL\operatorname{\mathbf{Q}}^{DBL}, TE indicates the total energy version 𝐐TE\operatorname{\mathbf{Q}}^{TE}, PE indicates the potential enstrophy conserving version 𝐐PE\operatorname{\mathbf{Q}}^{PE} and ACCUR indicates the accurate PV advection version 𝐐accur\operatorname{\mathbf{Q}}^{accur}. CVT indicates centroidal Voronoi tessellation grid optimization, SD indicates spring dynamics grid optimization and TW indicates the tweaking grid optimization.
1 The SD75 scheme only conserves total energy plus enstrophy in the divergent limit, not potential enstrophy.
2 The Thuburn2014 and Eldred2017 schemes use a modified 𝐇\operatorname{\mathbf{H}} for non-orthogonal grids, that reduces to the diagonal Voronoi 𝐇\operatorname{\mathbf{H}} for an orthogonal grid. Weller2014 explores the same modified 𝐇\operatorname{\mathbf{H}}, but also introduces non-symmetric 𝐇\operatorname{\mathbf{H}} choices that do not conserve energy.
3 The TW84 and S04 schemes are 4th-order for the implied vorticity equation (only optionally in the case of S04).
4 The Thuburn2014 scheme gives up energy conservation in exchange for accurate nonlinear advection (through choice of 𝐐\operatorname{\mathbf{Q}} and mass flux), and computes kinetic energy using a least-squares approach.
5 The Weller2014 scheme computes kinetic energy using a metric wedge product, but uses an accurate advection scheme for mass flux F~n1\tilde{F}^{n-1}; and requires scaling of fluid height but not velocity to fit into the DEC framework.

8.1 Degree of freedom scaling

Many TRiSK-type schemes in the literature work with point values, instead of the integral quantities h~2\tilde{h}^{2} and v1{v}^{1}. Therefore, for these schemes to be put into the same form as the general DEC framework the degrees of freedom must be scaled. This involves multiplying the predicted pointwise height by the area of a twisted 22-cell Ac~A_{\tilde{c}} to obtain h~2\tilde{h}^{2}, and the predicted pointwise velocity by the length of a straight 11-cell (edge) AeA_{e} to obtain v1{v}^{1}.

8.2 Specific schemes

AL81

The AL81 scheme [2] uses a Voronoi Hodge star, combinatorical PV and KE wedge products and 𝐐DBL\operatorname{\mathbf{Q}}^{DBL}. It was developed for square, orthogonal grids, including the modifications needed to handle polar singularities on a latitude-longitude grid. A modification of the KE wedge product to suppress Hollingsworth instability can be found in [35, 42].

SD75

The SD75 scheme [54] uses a Voronoi Hodge star, combinatorical PV and KE wedge products and a slightly modified 𝐐DBL\operatorname{\mathbf{Q}}^{DBL} that only conserves total energy and enstrophy in the non-divergent limit, not potential enstrophy. It was developed for square, orthogonal grids, including the modifications needed to handle polar singularities on a latitute-longitude grid.

TW84

The TW84 scheme [62] extended the AL81 scheme with a 𝐐DBL\operatorname{\mathbf{Q}}^{DBL} that is 4th order for the implied vorticity equation. It is otherwise the same, including the choice of grids.

S04

The S04 scheme [55] generalizes AL81 and TW84 to a family of 𝐐DBL\operatorname{\mathbf{Q}}^{DBL} (optionally extended to 4th order for the implied vorticity equation) operators, through a quasi-Hamiltonian approach. It therefore also uses a Voronoi Hodge star and combinatorical PV and KE wedge products. It was developed for square, orthogonal grids.

TRSK2010

The TRSK2010 scheme [52] uses a Voronoi Hodge star, metric PV and KE wedge products, and either 𝐐TE\operatorname{\mathbf{Q}}^{TE} or 𝐐PE\operatorname{\mathbf{Q}}^{PE}. It is designed for unstructured, orthogonal grids, primarily Delauney triangulations and their Voronoi duals such as the icosahedral-hexagonal grid. These grids are usually optimized using the centroidal Voronoi tesselation approach. TRSK2010 can be viewed as an extension of AL81 to unstructured grids with only partial conservation. For 𝐐TE\operatorname{\mathbf{Q}}^{TE}, a variety of choices for qeq^{e} were explored, focusing mainly on the anticipated potential vorticity method (APVM). A modification of the KE wedge product to suppress Hollingsworth instability [26], and clever choice of qeq^{e} to do the same for 𝐐TE\operatorname{\mathbf{Q}}^{TE} can be found in [27].

Thuburn2014

The Thuburn2014 scheme [67] uses a Voronoi Hodge star (with a possible modification of 𝐇\operatorname{\mathbf{H}} to support non-orthogonal grids) and metric PV wedge products. However, it gives up conservation of total energy and potential enstrophy for a more accurate computation of kinetic energy and better nonlinear advection properties. Specifically, the kinetic energy is computed using a least-squares approach; and accurate advection schemes are used to compute qeq^{e} and the mass flux, using 𝐐accur\operatorname{\mathbf{Q}}^{accur}. It is designed for unstructured, non-orthogonal grids, including the icosahedral-hexagonal and cubed-sphere grids. The grid is optimized using the centroidal Voronoi tesselation approach or a related approach on cubed-sphere grids. This scheme can be thought of as an extension of TRSK2010 to non-orthogonal grids that gives up energy conservation for accurate kinetic energy and better advection.

Weller2014

The Weller2014 scheme [75, 77, 76] uses metric PV wedge products and 𝐐TE\operatorname{\mathbf{Q}}^{TE}. Voronoi Hodge stars are used for 𝐈\operatorname{\mathbf{I}} and 𝐉\operatorname{\mathbf{J}}, and several options are explored for 𝐇\operatorname{\mathbf{H}}: the modified 𝐇\operatorname{\mathbf{H}} from [67], and a non-symmetric 𝐇\operatorname{\mathbf{H}} that reduces to the Voronoi 𝐇\operatorname{\mathbf{H}} in the case of an orthogonal grid. A non-symmetric 𝐇\operatorname{\mathbf{H}} leads to a loss of energy conservation. The kinetic energy is computed using a metric wedge product, while the mass flux F~n1\tilde{F}^{n-1} is computed using an accurate advection scheme. This mass flux also gives up energy conservation. In 𝐐TE\operatorname{\mathbf{Q}}^{TE}, qeq^{e} is computed for a variety of different advection schemes. It is designed for unstructured, non-orthogonal grids, including the icosahedral-hexagonal and cubed-sphere grids. The grid is optimized used the centroidal Voronoi tesselation approach or a related approach on cubed-sphere grids. This scheme can be thought of as an extension of TRSK2010 to non-orthogonal grids that gives up energy conservation for better advection.

Eldred2017

The Eldred2017 scheme [19, 23] uses a Voronoi Hodge star (with a possible modification of 𝐇\operatorname{\mathbf{H}} to support non-orthogonal grids from [67]), metric PV and KE wedge products and any of 𝐐TE\operatorname{\mathbf{Q}}^{TE}, 𝐐PE\operatorname{\mathbf{Q}}^{PE} or 𝐐DBL\operatorname{\mathbf{Q}}^{DBL}. It is essentially a merger of S04 and TRSK2010, with the main novelty being an extension of 𝐐DBL\operatorname{\mathbf{Q}}^{DBL} to arbitrary grids. It is designed for unstructured, non-orthogonal grids, including the icosahedral-hexagonal and cubed-sphere grids. The grid is optimized using the centroidal Voronoi tesselation, spring dynamics or tweaking approaches.

Toy2017

The Toy2017 scheme [73] uses a GijG_{ij} Hodge star, combinatorical PV and KE wedge products and 𝐐DBL\operatorname{\mathbf{Q}}^{DBL}. It is designed for a square, non-orthogonal grid; and primarily tested for smooth deformations of a uniform square grid. The new Hodge star reduces to a Voronoi Hodge star for orthogonal grids, and therefore the scheme can be thought of as an extension of AL81 to non-orthogonal grids.

8.3 Unexplored approaches

This (brief) review of existing schemes immediately highlights some unexplored operator choices that fit within the DEC framework. Specifically, for the Hodge stars:

  • barycentric Hodge stars [10] (straightforward, already developed);

  • GijG_{ij} Hodge star from [73] on arbitrary grids (tricky, not yet developed);

  • constitutive relationship based Hodge star from [18] (straightforward, already developed);

for the PV wedge product (specifically 𝐑\operatorname{\mathbf{R}} and 𝐖\operatorname{\mathbf{W}}):

  • combinatorical wedge products on arbitrary grids (straightforward, already developed),

  • primal-dual FE wedge product operators from [66] (straightforward, already developed);

and for the KE wedge product:

  • combinatorical wedge products on arbitrary grids (straightforward, already developed),

  • primal-dual FE wedge product operators from [66] (straightforward, not yet developed),

  • least squares reconstruction wedge product from [13] (straightforward, already developed),

  • extrusion/contraction based wedge product from [8] (straightforward, already developed).

Most of these options have already been developed, just not studied in the context of TRiSK-type schemes. Only the primal-dual FE versions of the KE wedge product (straightforward) and the GijG_{ij} Hodge star on arbitrary grids (tricky) would require further research. These alternative choices do not expand the stencil of the general scheme beyond nearest-neighbor (although the Hodge star is no longer diagonal) and keep the topological properties of the scheme.

These alternative choices of operators are interesting for several reasons:

  • Accuracy results suggest that the combinatorical approach to wedge products might be superior, although this is yet to be verified for quasi-uniform spherical grids. Specifically, [73] uses combinatorical wedge products and is accurate on highly-distorted non-orthogonal planar grids, while [23] showed that metric wedge products are inaccurate on quasi-uniform spherical grids. A combinatorical definition also fits with differential geometry: the wedge product is topological.

  • Barycentric Hodge stars expand the possible grid geometries, which is especially important for grids with complicated lateral boundaries or highly deformed grid cells.

  • The primal-dual FE scheme operators have proven accuracy [66], albeit when used in scheme with mass matrices.

  • The least squares based wedge product has proven accuracy [13], albeit when used in a non-mimetic scheme.

Therefore, it seems possible that some combination of these choices for operators and grid optimizations could obtain acceptable accuracy on arbitrary grids and hopefully avoid the Hollingsworth instability.

9 Conclusions

In this paper, we have shown that TRiSK-type schemes are best understood as a discrete exterior calculus applied to a Hamiltonian formulation based on split exterior calculus. The key to this was the wedge product and the topological pairing, with the latter newly introduced here in this manuscript. This new understanding gives a clear separation between the topological Poisson brackets, written entirely in terms of the wedge product, exterior derivative and topological pairing; and the metric Hamiltonian, which contains, in addition, the Hodge star and inner product. This separation is somewhat mimicked in the discrete setting, through the use of combinatorial operators for the topological parts and metric operators for the metric parts. However, the separation can be broken in the case of the wedge product, where metric operators are sometimes used. All known TRiSK-type schemes can be written in terms of this framework, differing only through their choice of Hodge stars and wedge products, along with the grids supported by these choices.

This new framework has several immediate possible applications. The first is a comprehensive investigation of accuracy and Hollingsworth instability for both explored and unexplored combinations from Section 8.3, on a variety of grids with various optimization choices. The main goal would be to identify a combination of grid choice/optimization, wedge products and Hodge stars that gives acceptable accuracy and avoids Hollingsworth instability. Such a scheme could serve as a revised basis for the operational atmospheric and oceanic models using TRiSK-type schemes that offers improved accuracy while keeping the desirable properties and nearest-neighbor stencil (and thus computational efficiency).

A second application is exploring TRiSK-type schemes with lateral boundaries, which are needed for ocean models and limited-area atmospheric models. Existing treatment of boundaries in DEC (and therefore TRiSK-type schemes) is somewhat ad-hoc, and lacks the generality to treat arbitrary boundary conditions in a consistent way. In recent work [20], a DEC with consistent treatment of boundaries and arbitrary boundary conditions was developed. The application of this DEC to TRiSK-type schemes will be reported in a future publication.

A final application is studying whether the (nonlinear) conservation properties of total energy and potential enstrophy can be kept while introducing accurate advection schemes for the fluid height and the potential vorticity, or in other words, can the loss of conservation properties in Thuburn2014 and Weller2014 be remedied in a way that still keeps accurate advection? A positive answer to this is given in [22], where a variant of TRiSK with WENO/FCT advection (that also has high-order Hodge stars) is developed for uniform rectangular grids. This does require expanding the stencil of the advection operators and the Hodge stars, but no more than required by the advection operators in the Weller2014 or Thuburn2014 schemes. Work is currently ongoing to extend this idea to unstructured grids.

10 Acknowledgements

This article has been co-authored by an employee of National Technology & Engineering Solutions of Sandia, LLC under Contract No. DE-NA0003525 with the U.S. Department of Energy (DOE). The employee owns right, title and interest in and to the article and is responsible for its contents. The United States Government retains and the publisher, by accepting the article for publication, acknowledges that the United States Government retains a non-exclusive, paid-up, irrevocable, world-wide license to publish or reproduce the published form of this article or allow others to do so, for United States Government purposes. The DOE will provide public access to these results of federally sponsored research in accordance with the DOE Public Access Plan https://www.energy.gov/downloads/doe-public-access-plan.

References

  • [1] R. Abraham, J. E. Marsden, and T. Ratiu. Manifolds, tensor analysis, and applications, volume 75. Springer Science & Business Media, 2012.
  • [2] A. Arakawa and V. R. Lamb. A potential enstrophy and energy conserving scheme for the shallow water equations. Monthly Weather Review, 109(1):18–36, 1981.
  • [3] B. Auchmann and S. Kurz. A geometrically defined discrete hodge operator on simplicial cells. IEEE Transactions on Magnetics, 42(4):643–646, 2006.
  • [4] W. Bauer. A new hierarchically-structured n-dimensional covariant form of rotating equations of geophysical fluid dynamics. GEM - International Journal on Geomathematics, 7(1):31–101, Apr 2016.
  • [5] W. Bauer and J. Behrens. A structure-preserving split finite element discretization of the split wave equations. Applied Mathematics and Computation, 325:375 – 400, 2018.
  • [6] W. Bauer, J. Behrens, and C. J. Cotter. A structure-preserving approximation of the discrete split rotating shallow water equations. In F. J. Vermolen and C. Vuik, editors, Numerical Mathematics and Advanced Applications ENUMATH 2019, pages 103–113, Cham, 2021. Springer International Publishing.
  • [7] M. J. Bell, P. S. Peixoto, and J. Thuburn. Numerical instabilities of vector-invariant momentum equations on rectangular c-grids. Quarterly Journal of the Royal Meteorological Society, 143(702):563–581, 2017.
  • [8] A. Bossavit. Extrusion, contraction: their discretization via whitney forms. Compel-the International Journal for Computation and Mathematics in Electrical and Electronic Engineering, 22:470–480, 2003.
  • [9] S. Calandrini, D. Engwirda, and M. Petersen. Comparing numerical accuracy and stability for different horizontal discretizations in MPAS-Ocean. Ocean Modelling, 168:101908, 2021.
  • [10] Codecasa, Lorenzo, Specogna, Ruben, and Trevisan, Francesco. Geometrically defined basis functions for polyhedral elements with applications to computational electromagnetics. ESAIM: M2AN, 50(3):677–698, 2016.
  • [11] D. Cohen and E. Hairer. Linear energy-preserving integrators for poisson systems. BIT Numerical Mathematics, 51(1):91–101, Mar 2011.
  • [12] C. Cotter and J. Thuburn. A finite element exterior calculus framework for the rotating shallow-water equations. Journal of Computational Physics, 257(Part B):1506 – 1526, 2014. Physics-compatible numerical methods.
  • [13] Darren Engwirda. personal communication.
  • [14] C. Deimert, M. Potter, and M. Okoniewski. Collocated electrodynamic fdtd schemes using overlapping yee grids and higher-order hodge duals. Journal of Computational Physics, 326:629–649, 2016.
  • [15] Q. Du, M. Gunzburger, and L. Ju. Advances in studies and applications of centroidal voronoi tessellations. Numerical Mathematics: Theory, Methods and Applications, 3(2):119–142, 2010.
  • [16] T. Dubos, S. Dubey, M. Tort, R. Mittal, Y. Meurdesoif, and F. Hourdin. Dynamico-1.0, an icosahedral hydrostatic dynamical core designed for consistency and versatility. Geoscientific Model Development, 8(10):3131–3150, 2015.
  • [17] N. Ducousso, J. Le Sommer, J.-M. Molines, and M. Bell. Impact of the “symmetric instability of the computational kind” at mesoscale- and submesoscale-permitting resolutions. Ocean Modelling, 120:18–26, 2017.
  • [18] A. F. El Ouafdi, H. El Houari, and D. Ziou. Adaptive estimation of hodge star operator on simplicial surfaces. The Visual Computer, 37(6):1433–1445, 2021.
  • [19] C. Eldred. Linear and Nonlinear Properties of Numerical Methods for the Rotating Shallow Water Equations. PhD thesis, Colorado State University, 2015.
  • [20] C. Eldred. Structure-preserving numerical discretizations for domains with boundaries. Technical Report SAND2021-11517, Sandia National Laboratories, 2021.
  • [21] C. Eldred, T. Dubos, and E. Kritsikis. A quasi-Hamiltonian discretization of the thermal shallow water equations. Journal of Computational Physics, 2018.
  • [22] C. Eldred, M. Norman, and M. Taylor. PAM dynamical core- continuous formulation, discrete numerics and implementation. Technical Report WBS 2.2.3.05, Milestone ECP-AD-SE-15-1675, Sandia National Laboratories, 2021.
  • [23] C. Eldred and D. Randall. Total energy and potential enstrophy conserving schemes for the shallow water equations using hamiltonian methods – part 1: Derivation and properties. Geoscientific Model Development, 10(2):791–810, 2017.
  • [24] D. Engwirda. Generalised primal-dual grids for unstructured co-volume schemes. Journal of Computational Physics, 375:155–176, 2018.
  • [25] H. Flanders. Differential forms with applications to the physical sciences, volume 11. Courier Corporation, 1963.
  • [26] A. Gassmann. A global hexagonal C-grid non-hydrostatic dynamical core (ICON-IAP) designed for energetic consistency. Quarterly Journal of the Royal Meteorological Society, 139(670):152–175, 2013.
  • [27] A. Gassmann. Discretization of generalized Coriolis and friction terms on the deformed hexagonal C-grid. Quarterly Journal of the Royal Meteorological Society, 144(716):2038–2053, 2018.
  • [28] R. Heikes and D. A. Randall. Numerical integration of the shallow-water equations on a twisted icosahedral grid. part ii. a detailed description of the grid and an analysis of numerical accuracy. Monthly Weather Review, 123(6):1881 – 1887, 1995.
  • [29] R. P. Heikes, D. A. Randall, and C. S. Konor. Optimized icosahedral grids: Performance of finite-difference operators and multigrid solver. Monthly Weather Review, 141(12):4450 – 4469, 2013.
  • [30] R. Hiemstra, D. Toshniwal, R. Huijsmans, and M. Gerritsma. High order geometric methods with exact conservation properties. Journal of Computational Physics, 257(Part B):1444 – 1471, 2014. Physics-compatible numerical methods.
  • [31] R. Hiptmair. Discrete hodge-operators: an algebraic perspective - abstract. Journal of Electromagnetic Waves and Applications, 15(3):343–344, 2001.
  • [32] A. N. Hirani. Discrete Exterior Calculus. PhD thesis, California Institute of Technology, May 2003.
  • [33] A. N. Hirani, K. Kalyanaraman, and E. B. VanderZee. Delaunay hodge star. Computer-Aided Design, 45(2):540–544, 2013. Solid and Physical Modeling 2012.
  • [34] A. N. Hirani, K. Kalyanaraman, and E. B. VanderZee. Corrigendum to “delaunay hodge star” [comput. aided des. 45 (2013) 540–544]. Computer-Aided Design, 96:59–60, 2018.
  • [35] A. Hollingsworth, P. Kållberg, V. Renner, and D. M. Burridge. An internal symmetric computational instability. Quarterly Journal of the Royal Meteorological Society, 109(460):417–428, 1983.
  • [36] D. D. Holm, J. E. Marsden, and T. S. Ratiu. The Euler–Poincaré equations and semidirect products with applications to continuum theories. Advances in Mathematics, 137(1):1 – 81, 1998.
  • [37] S. ichi Iga and H. Tomita. Improved smoothness and homogeneity of icosahedral grids using the spring dynamics method. Journal of Computational Physics, 258:208–226, 2014.
  • [38] D. W. Jacobsen, M. Gunzburger, T. Ringler, J. Burkardt, and J. Peterson. Parallel algorithms for planar and spherical delaunay construction with an application to centroidal voronoi tessellations. Geoscientific Model Development, 6(4):1353–1365, 2013.
  • [39] N. K.-R. Kevlahan and T. Dubos. Wavetrisk-1.0: an adaptive wavelet hydrostatic dynamical core. Geoscientific Model Development, 12(11):4901–4921, 2019.
  • [40] P. R. Kotiuga. Theoretical limitations of discrete exterior calculus in the context of computational electromagnetics. IEEE Transactions on Magnetics, 44(6):1162–1165, 2008.
  • [41] J. Kreeft, A. Palha, and M. Gerritsma. Mimetic framework on curvilinear quadrilaterals of arbitrary order, 2011.
  • [42] L. Lazić, Z. Janjić, and F. Mesinger. “non-cancellation” instability in horizontal advection schemes for momentum equations. Meteorology and Atmospheric Physics, 35(1):49–52, Mar 1986.
  • [43] L. Lu, F. Sun, H. Pan, and W. Wang. Global optimization of centroidal voronoi tessellation with monte carlo approach. IEEE Transactions on Visualization and Computer Graphics, 18(11):1880–1890, 2012.
  • [44] M. S. Mohamed, A. N. Hirani, and R. Samtaney. Comparison of discrete hodge star operators for surfaces. Computer-Aided Design, 78:118–125, 2016. SPM 2016.
  • [45] M. S. Mohamed, A. N. Hirani, and R. Samtaney. Numerical convergence of discrete exterior calculus on arbitrary surface meshes. International Journal for Computational Methods in Engineering Science and Mechanics, 19(3):194–206, 2018.
  • [46] P. Mullen, P. Memari, F. de Goes, and M. Desbrun. Hot: Hodge-optimized triangulations. In ACM SIGGRAPH 2011 papers, pages 1–12. 2011.
  • [47] S. Ničković, M. B. Gavrilov, and I. A. Tošić. Geostrophic adjustment on hexagonal grids. Monthly Weather Review, 130(3):668–683, 2002.
  • [48] P. Peixoto, J. Thuburn, and M. Bell. Numerical instabilities of spherical shallow water models considering small equivalent depths. Quarterly Journal of the Royal Meteorological Society, pages n/a–n/a. QJ-17-0211.R1.
  • [49] P. S. Peixoto. Accuracy analysis of mimetic finite volume operators on geodesic grids and a consistent alternative. Journal of Computational Physics, 310(Supplement C):127 – 160, 2016.
  • [50] D. A. Randall. Geostrophic adjustment and the finite-difference shallow-water equations. Monthly Weather Review, 122(6):1371–1377, 1994.
  • [51] T. Ringler, M. Petersen, R. L. Higdon, D. Jacobsen, P. W. Jones, and M. Maltrud. A multi-resolution approach to global ocean modeling. Ocean Modelling, 69:211–232, 2013.
  • [52] T. Ringler, J. Thuburn, J. Klemp, and W. Skamarock. A unified approach to energy conservation and potential vorticity dynamics for arbitrarily-structured c-grids. Journal of Computational Physics, 229(9):3065 – 3090, 2010.
  • [53] D. Y. L. Roux. Spurious inertial oscillations in shallow-water models. Journal of Computational Physics, 231(24):7959 – 7987, 2012.
  • [54] R. Sadourny. The dynamics of finite-difference models of the shallow-water equations. Journal of the Atmospheric Sciences, 32(4):680–689, 1975.
  • [55] R. Salmon. Poisson-bracket approach to the construction of energy- and potential-enstrophy-conserving algorithms for the shallow-water equations. Journal of the Atmospheric Sciences, 61(16):2016–2036, 2004.
  • [56] T. G. Shepherd. Symmetries, conservation laws, and Hamiltonian structure in geophysical fluid dynamics. volume 32 of Advances in Geophysics, pages 287–338. Elsevier, 1990.
  • [57] T. G. Shepherd. A unified theory of available potential energy. Atmosphere-Ocean, 31(1):1–26, 1993.
  • [58] W. C. Skamarock, J. B. Klemp, M. G. Duda, L. D. Fowler, S.-H. Park, and T. D. Ringler. A multiscale nonhydrostatic atmospheric model using centroidal voronoi tesselations and c-grid staggering. Monthly Weather Review, 140(9):3090 – 3105, 2012.
  • [59] N. Soontiens and S. E. Allen. Modelling sensitivities to mixing and advection in a sill-basin estuarine system. Ocean Modelling, 112:17–32, 2017.
  • [60] A. Staniforth and J. Thuburn. Horizontal grids for global weather and climate prediction models: a review. Quarterly Journal of the Royal Meteorological Society, 138(662):1–26, 2012.
  • [61] A. L. Stewart and P. J. Dellar. An energy and potential enstrophy conserving numerical scheme for the multi-layer shallow water equations with complete coriolis force. Journal of Computational Physics, 313:99–120, 2016.
  • [62] K. Takano and M. G. Wurtele. A fourth order energy and potential enstrophy conserving difference scheme. California Univ., Los Angeles Report, June 1982.
  • [63] T. Tarhasaari, L. Kettunen, and A. Bossavit. Some realizations of a discrete hodge operator: a reinterpretation of finite element techniques [for em field analysis]. IEEE Transactions on Magnetics, 35(3):1494–1497, 1999.
  • [64] J. Thuburn. Numerical wave propagation on the hexagonal c-grid. Journal of Computational Physics, 227(11):5836 – 5858, 2008.
  • [65] J. Thuburn and C. J. Cotter. A framework for mimetic discretization of the rotating shallow-water equations on arbitrary polygonal grids. SIAM Journal on Scientific Computing, 34(3):B203–B225, 2012.
  • [66] J. Thuburn and C. J. Cotter. A primal–dual mimetic finite element scheme for the rotating shallow water equations on polygonal spherical meshes. Journal of Computational Physics, 290(Supplement C):274 – 297, 2015.
  • [67] J. Thuburn, C. J. Cotter, and T. Dubos. A mimetic, semi-implicit, forward-in-time, finite volume shallow water model: comparison of hexagonal-icosahedral and cubed-sphere grids. Geoscientific Model Development, 7(3):909–929, 2014.
  • [68] J. Thuburn, T. Ringler, W. Skamarock, and J. Klemp. Numerical representation of geostrophic modes on arbitrarily structured c-grids. Journal of Computational Physics, 228(22):8321 – 8335, 2009.
  • [69] H. Tomita, M. Satoh, and K. Goto. An optimization of the icosahedral grid modified by spring dynamics. Journal of Computational Physics, 183(1):307–331, 2002.
  • [70] E. Tonti. The mathematical structure of classical and relativistic physics. Springer, 2013.
  • [71] E. Tonti. Why starting from differential equations for computational physics? Journal of Computational Physics, 257(Part B):1260 – 1290, 2014. Physics-compatible numerical methods.
  • [72] M. Tort, T. Dubos, and T. Melvin. Energy-conserving finite-difference schemes for quasi-hydrostatic equations. Quarterly Journal of the Royal Meteorological Society, 141(693):3056–3075, 2015.
  • [73] M. D. Toy and R. D. Nair. A potential enstrophy and energy conserving scheme for the shallow-water equations extended to generalized curvilinear coordinates. Monthly Weather Review, 145(3):751–772, 2017.
  • [74] A. K. Turner, W. H. Lipscomb, E. C. Hunke, D. W. Jacobsen, N. Jeffery, D. Engwirda, T. D. Ringler, and J. D. Wolfe. Mpas-seaice (v1.0.0): Sea-ice dynamics on unstructured voronoi meshes. Geoscientific Model Development Discussions, 2021:1–46, 2021.
  • [75] H. Weller. Controlling the computational modes of the arbitrarily structured c grid. Monthly Weather Review, 140(10):3220–3234, 2012.
  • [76] H. Weller. Non-orthogonal version of the arbitrary polygonal c-grid and a new diamond grid. Geoscientific Model Development, 7(3):779–797, 2014.
  • [77] H. Weller, J. Thuburn, and C. J. Cotter. Computational modes and grid imprinting on five quasi-uniform spherical c grids. Monthly Weather Review, 140(8):2734–2755, 2012.

Appendix A Proof of 𝐃k\mathbf{D}_{k}/𝐃¯k\mathbf{\bar{D}}_{k}/,\left<\left<{},{}\right>\right> Properties

Start by noting that the co-boundary operator versions of the discrete exterior derivatives 𝐃k\mathbf{D}_{k} and 𝐃¯k\mathbf{\bar{D}}_{k} satisfy by construction [32]:

𝐃¯2=𝐃1T,𝐃2=𝐃¯1T,\mathbf{\bar{D}}_{2}=-\mathbf{D}_{1}^{T},\quad\quad\quad\mathbf{D}_{2}=\mathbf{\bar{D}}_{1}^{T}, (150)

and

𝐃1c0=0,𝐃¯1c~0=0,\mathbf{D}_{1}{c}^{0}=0,\quad\quad\quad\mathbf{\bar{D}}_{1}\tilde{c}^{0}=0, (151)

for arbitrary constants c0{c}^{0} and c~0\tilde{c}^{0}, which are just (92) and (89). Using (150) plus the definition of the topological pairing (72) - (73), it is easy to show that integration by parts (87) and (88) hold:

𝐃kxk1,y~nk+(1)k1xk1,𝐃¯nk+1y~nk=0,\displaystyle\left<\left<{\mathbf{D}_{k}{x}^{k-1}},{\tilde{y}^{n-k}}\right>\right>+(-1)^{k-1}\left<\left<{{x}^{k-1}},{\mathbf{\bar{D}}_{n-k+1}\tilde{y}^{n-k}}\right>\right>=0, (152)
𝐃¯kx~k1,ynk+(1)k1x~k1,𝐃nk+1ynk=0.\displaystyle\left<\left<{\mathbf{\bar{D}}_{k}\tilde{x}^{k-1}},{{y}^{n-k}}\right>\right>+(-1)^{k-1}\left<\left<{\tilde{x}^{k-1}},{\mathbf{D}_{n-k+1}{y}^{n-k}}\right>\right>=0. (153)

Finally, applying integration by parts for the case k=2k=2 (recalling we are in n=2n=2) plus (151) with y~nk=I~0\tilde{y}^{n-k}=\tilde{I}^{0} and ynk=I0{y}^{n-k}={I}^{0} gives the discrete Stokes theorems (93):

(I~0)T𝐃2x1=0,(I0)T𝐃¯2x~1=0.(\tilde{I}^{0})^{T}\mathbf{D}_{2}{x}^{1}=0,\quad\quad({I}^{0})^{T}\mathbf{\bar{D}}_{2}\tilde{x}^{1}=0. (154)

Appendix B Relationship between PV wedge product Leibniz rules

Consider a discrete wedge product x~0hy~1{\tilde{x}^{0}}\boldsymbol{\wedge}_{h}{\tilde{y}^{1}} that satisfies the full Leibniz rule

x~0h𝐃¯1y~0+y~0h𝐃¯1x~0=𝐃1(x~0hy~0){\tilde{x}^{0}}\boldsymbol{\wedge}_{h}{\mathbf{\bar{D}}_{1}\tilde{y}^{0}}+{\tilde{y}^{0}}\boldsymbol{\wedge}_{h}{\mathbf{\bar{D}}_{1}\tilde{x}^{0}}=\mathbf{D}_{1}({\tilde{x}^{0}}\boldsymbol{\wedge}_{h}^{\star}{\tilde{y}^{0}}) (155)

along with anti-symmetry (95), where x~0hy~0{\tilde{x}^{0}}\boldsymbol{\wedge}_{h}^{\star}{\tilde{y}^{0}} is the adjoint of x~0hy~2{\tilde{x}^{0}}\boldsymbol{\wedge}_{h}{\tilde{y}^{2}}. Given coefficients for x~0hy~0{\tilde{x}^{0}}\boldsymbol{\wedge}_{h}^{\star}{\tilde{y}^{0}} (i.e. really coefficients for x~0hy~2{\tilde{x}^{0}}\boldsymbol{\wedge}_{h}{\tilde{y}^{2}}), it seems likely that x~0hy~1{\tilde{x}^{0}}\boldsymbol{\wedge}_{h}{\tilde{y}^{1}} can be defined in such a way that (155) and (95) are both satisfied, following the same sort of general procedure as in [23]. In fact, it is hypothesized that the x~0hy~1{\tilde{x}^{0}}\boldsymbol{\wedge}_{h}{\tilde{y}^{1}} wedge product defined in [23] satisfies the more general conditions (155) rather than just (97). Since, as shown below, a wedge product that satisfies (155) also satisfies both (96) and (97), this would explain why PV compatibility (96) did not have to be enforced in [23], but was found to hold anyways.

B.1 Partial Leibniz rule (96)

Start by taking the topological pairing of (155) with an arbitrary twisted 11-form z~1\tilde{z}^{1}:

z~1,x~0h𝐃¯1y~0+z~1,y~0h𝐃¯1x~0=z~1,𝐃1(x~0hy~0).\left<\left<{\tilde{z}^{1}},{{\tilde{x}^{0}}\boldsymbol{\wedge}_{h}{\mathbf{\bar{D}}_{1}\tilde{y}^{0}}}\right>\right>+\left<\left<{\tilde{z}^{1}},{{\tilde{y}^{0}}\boldsymbol{\wedge}_{h}{\mathbf{\bar{D}}_{1}\tilde{x}^{0}}}\right>\right>=\left<\left<{\tilde{z}^{1}},{\mathbf{D}_{1}({\tilde{x}^{0}}\boldsymbol{\wedge}_{h}^{\star}{\tilde{y}^{0}})}\right>\right>. (156)

Now let x~0=I~0\tilde{x}^{0}=\tilde{I}^{0} such that

z~1,I~0h𝐃¯1y~0+z~1,y~0h𝐃¯1I~0=z~1,𝐃1(I~0hy~0),\left<\left<{\tilde{z}^{1}},{{\tilde{I}^{0}}\boldsymbol{\wedge}_{h}{\mathbf{\bar{D}}_{1}\tilde{y}^{0}}}\right>\right>+\left<\left<{\tilde{z}^{1}},{{\tilde{y}^{0}}\boldsymbol{\wedge}_{h}{\mathbf{\bar{D}}_{1}\tilde{I}^{0}}}\right>\right>=\left<\left<{\tilde{z}^{1}},{\mathbf{D}_{1}({\tilde{I}^{0}}\boldsymbol{\wedge}_{h}^{\star}{\tilde{y}^{0}})}\right>\right>, (157)

and use (151) to eliminate the middle term yielding

z~1,I~0h𝐃¯1y~0=z~1,𝐃1(I~0hy~0).\left<\left<{\tilde{z}^{1}},{{\tilde{I}^{0}}\boldsymbol{\wedge}_{h}{\mathbf{\bar{D}}_{1}\tilde{y}^{0}}}\right>\right>=\left<\left<{\tilde{z}^{1}},{\mathbf{D}_{1}({\tilde{I}^{0}}\boldsymbol{\wedge}_{h}^{\star}{\tilde{y}^{0}})}\right>\right>. (158)

Apply IBP (87) and (88) on the rhs which gives

z~1,I~0h𝐃¯1y~0=𝐃¯2z~1,I~0hy~0.\left<\left<{\tilde{z}^{1}},{{\tilde{I}^{0}}\boldsymbol{\wedge}_{h}{\mathbf{\bar{D}}_{1}\tilde{y}^{0}}}\right>\right>=\left<\left<{\mathbf{\bar{D}}_{2}\tilde{z}^{1}},{{\tilde{I}^{0}}\boldsymbol{\wedge}_{h}^{\star}{\tilde{y}^{0}}}\right>\right>. (159)

Now use the definition of operator adjoints (82) or (84) on the right term and antisymmetry (95) on the lhs to get

𝐃¯1y~0,I~0hz~1=y~0,I~0h𝐃¯2z~1.-\left<\left<{\mathbf{\bar{D}}_{1}\tilde{y}^{0}},{{\tilde{I}^{0}}\boldsymbol{\wedge}_{h}^{\star}{\tilde{z}^{1}}}\right>\right>=\left<\left<{\tilde{y}^{0}},{{\tilde{I}^{0}}\boldsymbol{\wedge}_{h}{\mathbf{\bar{D}}_{2}\tilde{z}^{1}}}\right>\right>. (160)

Finally, apply IBP (87) and (88) on the lhs to result in

y~0,𝐃2(I~0hz~1)=y~0,I~0h𝐃¯2z~1.\left<\left<{\tilde{y}^{0}},{\mathbf{D}_{2}({\tilde{I}^{0}}\boldsymbol{\wedge}_{h}^{\star}{\tilde{z}^{1}})}\right>\right>=\left<\left<{\tilde{y}^{0}},{{\tilde{I}^{0}}\boldsymbol{\wedge}_{h}{\mathbf{\bar{D}}_{2}\tilde{z}^{1}}}\right>\right>. (161)

Since this must hold for arbitrary y~0\tilde{y}^{0}, we get

𝐃2(I~0hz~1)=I~0h𝐃¯2z~1,\mathbf{D}_{2}({\tilde{I}^{0}}\boldsymbol{\wedge}_{h}^{\star}{\tilde{z}^{1}})={\tilde{I}^{0}}\boldsymbol{\wedge}_{h}{\mathbf{\bar{D}}_{2}\tilde{z}^{1}}, (162)

which is just (96).

B.2 Partial Leibniz rule (97)

The partial Leibniz rule (97) is just a special case of (155) with x~0=y~0=q~0\tilde{x}^{0}=\tilde{y}^{0}=\tilde{q}^{0}:

q~0h𝐃¯1q~0+q~0h𝐃¯1q~0=𝐃1(q~0hq~0),{\tilde{q}^{0}}\boldsymbol{\wedge}_{h}{\mathbf{\bar{D}}_{1}\tilde{q}^{0}}+{\tilde{q}^{0}}\boldsymbol{\wedge}_{h}{\mathbf{\bar{D}}_{1}\tilde{q}^{0}}=\mathbf{D}_{1}({\tilde{q}^{0}}\boldsymbol{\wedge}_{h}^{\star}{\tilde{q}^{0}}), (163)

which by inspection is equal to (97).

Appendix C Derivation of \operatorname{\mathcal{H}} functional derivatives

Start by splitting the Hamiltonian into two parts: a kinetic energy and a potential energy as

[v1,h~2]=p[h~2]+kin[v1,h~2],\operatorname{\mathcal{H}}[{v}^{1},\tilde{h}^{2}]=\operatorname{\mathcal{H}}_{p}[\tilde{h}^{2}]+\operatorname{\mathcal{H}}_{kin}[{v}^{1},\tilde{h}^{2}], (164)

where

kin[v1,h~2]=h~2,u1hu~n12,p[h~2]=g2h~2,h~2+gh~2,hs~2,\operatorname{\mathcal{H}}_{kin}[{v}^{1},\tilde{h}^{2}]=\left<{\tilde{h}^{2}},{\frac{{{u}^{1}}\boldsymbol{\wedge}_{h}{\tilde{u}^{n-1}}}{2}}\right>,\quad\quad\quad\operatorname{\mathcal{H}}_{p}[\tilde{h}^{2}]=\frac{g}{2}\left<{\tilde{h}^{2}},{\tilde{h}^{2}}\right>+g\left<{\tilde{h}^{2}},{\tilde{h_{s}}^{2}}\right>, (165)

recalling that v1=u1+R1{v}^{1}={u}^{1}+{R}^{1}. The variations of p\operatorname{\mathcal{H}}_{p} are simple

δp=gδh~2,h~2+gδh~2,hs~2,\delta\operatorname{\mathcal{H}}_{p}=g\left<{\delta\tilde{h}^{2}},{\tilde{h}^{2}}\right>+g\left<{\delta\tilde{h}^{2}},{\tilde{h_{s}}^{2}}\right>, (166)

and yield

Bp0:=δ~pδh~2=g(h0+hs0).{B}^{0}_{p}:=\frac{\tilde{\delta}\!\operatorname{\mathcal{H}}_{p}}{\delta\tilde{h}^{2}}=g({h}^{0}+{h_{s}}^{0}). (167)

The variations of kin\operatorname{\mathcal{H}}_{kin} are more complicated:

δkin=δh~2,u1hu~n12+h~2,δu1hu~n12+h~2,u1hδu~n12.\delta\operatorname{\mathcal{H}}_{kin}=\left<{\delta\tilde{h}^{2}},{\frac{{{u}^{1}}\boldsymbol{\wedge}_{h}{\tilde{u}^{n-1}}}{2}}\right>+\left<{\tilde{h}^{2}},{\frac{{\delta{u}^{1}}\boldsymbol{\wedge}_{h}{\tilde{u}^{n-1}}}{2}}\right>+\left<{\tilde{h}^{2}},{\frac{{{u}^{1}}\boldsymbol{\wedge}_{h}{\delta\tilde{u}^{n-1}}}{2}}\right>. (168)

The first term gives

Bkin0:=δ~kinδh~2=12𝐇¯2(u1hu~n1);{B}^{0}_{kin}:=\frac{\tilde{\delta}\!\operatorname{\mathcal{H}}_{kin}}{\delta\tilde{h}^{2}}=\frac{1}{2}\mathbf{\bar{H}}_{2}({{u}^{1}}\boldsymbol{\wedge}_{h}{\tilde{u}^{n-1}}); (169)

the remaining terms are

h~2,δu1hu~n12+h~2,u1hδu~n12.\left<{\tilde{h}^{2}},{\frac{{\delta{u}^{1}}\boldsymbol{\wedge}_{h}{\tilde{u}^{n-1}}}{2}}\right>+\left<{\tilde{h}^{2}},{\frac{{{u}^{1}}\boldsymbol{\wedge}_{h}{\delta\tilde{u}^{n-1}}}{2}}\right>. (170)

We continue by writing these in terms of topological pairings as

h0,δu1hu~n12+h0,u1hδu~n12.\left<\left<{{h}^{0}},{\frac{{\delta{u}^{1}}\boldsymbol{\wedge}_{h}{\tilde{u}^{n-1}}}{2}}\right>\right>+\left<\left<{{h}^{0}},{\frac{{{u}^{1}}\boldsymbol{\wedge}_{h}{\delta\tilde{u}^{n-1}}}{2}}\right>\right>. (171)

Now use the definition of operator adjoints (82) and (84) to get

δu1,h0hu~n12+δu~n1,u1hh02.\left<\left<{\delta{u}^{1}},{\frac{{{h}^{0}}\boldsymbol{\wedge}_{h}^{\star}{\tilde{u}^{n-1}}}{2}}\right>\right>+\left<\left<{\delta\tilde{u}^{n-1}},{\frac{{{u}^{1}}\boldsymbol{\wedge}_{h}^{\star}{{h}^{0}}}{2}}\right>\right>. (172)

Since δu~n1=𝐇1δu1\delta\tilde{u}^{n-1}=\mathbf{H}_{1}\delta{u}^{1} and u~n1=𝐇1u1\tilde{u}^{n-1}=\mathbf{H}_{1}{u}^{1}, this gives

F~kinn1=δ~kinδv1=12h0h𝐇1u1+12𝐇1(h0hu1).\tilde{F}^{n-1}_{kin}=\frac{\tilde{\delta}\!\operatorname{\mathcal{H}}_{kin}}{\delta{v}^{1}}=\frac{1}{2}{{h}^{0}}\boldsymbol{\wedge}_{h}^{\star}{\mathbf{H}_{1}{u}^{1}}+\frac{1}{2}\mathbf{H}_{1}({{h}^{0}}\boldsymbol{\wedge}_{h}^{\star}{{u}^{1}}). (173)

Finally, we can obtain F~n1\tilde{F}^{n-1} and B0{B}^{0} as

F~n1:=δ~δv1=F~kinn1,\tilde{F}^{n-1}:=\frac{\tilde{\delta}\!\operatorname{\mathcal{H}}}{\delta{v}^{1}}=\tilde{F}^{n-1}_{kin}, (174)

and

B0:=δ~δh~2=Bp0+Bkin0,{B}^{0}:=\frac{\tilde{\delta}\!\operatorname{\mathcal{H}}}{\delta\tilde{h}^{2}}={B}^{0}_{p}+{B}^{0}_{kin}, (175)

which are the same as (99).

For alternative choice of kin\operatorname{\mathcal{H}}_{kin} similar procedures would yield the same form for the functional derivatives, just with a change of which wedge product is primary (h{}\boldsymbol{\wedge}_{h}{}) and which ones are adjoints (h{}\boldsymbol{\wedge}_{h}^{\star}{}).

C.1 Simplified form for δ~δv1\frac{\tilde{\delta}\!\operatorname{\mathcal{H}}}{\delta{v}^{1}}

In the continuous RSWE, the mass flux 12[h0u~n1+~(h0u1)]\frac{1}{2}\left[{h}^{0}\wedge\tilde{u}^{n-1}+\operatorname{\tilde{\star}}({h}^{0}\wedge{u}^{1})\right] can be simplified as h0u~n1{h}^{0}\wedge\tilde{u}^{n-1}. A discrete version of this would require that

𝐇1(h0hu1)=h0h𝐇1u1,\mathbf{H}_{1}({{h}^{0}}\boldsymbol{\wedge}_{h}^{\star}{{u}^{1}})={{h}^{0}}\boldsymbol{\wedge}_{h}^{\star}{\mathbf{H}_{1}{u}^{1}}, (176)

and therefore F~n1=h0h𝐇1u1=h0hu~n1\tilde{F}^{n-1}={{h}^{0}}\boldsymbol{\wedge}_{h}^{\star}{\mathbf{H}_{1}{u}^{1}}={{h}^{0}}\boldsymbol{\wedge}_{h}^{\star}{\tilde{u}^{n-1}}. To determine the conditions on the operators required, recall the adjoint wedge product for the mass flux (148) - (149) defined from the nearest-neighbor stencil form of KE wedge product (145):

(h0hu1)e\displaystyle({{h}^{0}}\boldsymbol{\wedge}_{h}^{\star}{{u}^{1}})_{e} =\displaystyle= c~CE(e)𝔗c~,e,e~hv0ue1,\displaystyle\sum_{\tilde{c}\in CE(e)}\mathfrak{T}_{\tilde{c},e,\tilde{e}}{h}^{0}_{v}{u}^{1}_{e}, (177)
(h0hu~n1)e~\displaystyle({{h}^{0}}\boldsymbol{\wedge}_{h}^{\star}{\tilde{u}^{n-1}})_{\tilde{e}} =\displaystyle= c~CE(e~)𝔗c~,e,e~hv0u~e~n1,\displaystyle\sum_{\tilde{c}\in CE(\tilde{e})}\mathfrak{T}_{\tilde{c},e,\tilde{e}}{h}^{0}_{v}\tilde{u}^{n-1}_{\tilde{e}}, (178)

where vv is the straight grid vertex corresponding to twisted grid cell c~\tilde{c}. Inserting (177) - (178) plus the definition of 𝐇1\mathbf{H}_{1} into (176) gives an equation

eHe~,ec~CE(e)hv0ue1=c~CE(e~)hv0eHe~,eue1\sum_{e}H_{\tilde{e},e}\sum_{\tilde{c}\in CE(e)}{h}^{0}_{v}{u}^{1}_{e}=\sum_{\tilde{c}\in CE(\tilde{e})}{h}^{0}_{v}\sum_{e^{\prime}}H_{\tilde{e},e^{\prime}}{u}^{1}_{e^{\prime}} (179)

that must hold at each twisted grid edge e~\tilde{e}. The two sides of this equation will be equal only for a diagonal Hodge star (such as the Voronoi Hodge star), otherwise there will be unmatched hv0{h}^{0}_{v} terms on the left hand side. The conditions for a more general definition of KE wedge product could be derived in a similar way, but it seems quite unlikely that anything but a diagonal Hodge star would ensure (176) holds.

Appendix D 2D Split Exterior \leftrightarrow Vector Calculus Identities

The relationships between 2D split exterior calculus and 2D vector calculus are collected here for reference. Start by identifying a scalar ff with a straight 0-form f0{f}^{0} and a pseudoscalar f~\tilde{f} with a twisted 0-form f~0\tilde{f}^{0}. As discussed in Section 2.3, given the twisted volume form μ~n\tilde{\mu}^{n}, the vector 𝐱\mathbf{x}, and the pseudovector 𝐱~\tilde{\mathbf{x}}, there are four vector proxies: the straight 11-form x1=𝐱{x}^{1}=\mathbf{x}^{\flat} and twisted n1n-1 form x~n1=i𝐱μ~n=~x1\tilde{x}^{n-1}=\mathrm{i}_{\mathbf{x}}\tilde{\mu}^{n}=\operatorname{\tilde{\star}}{x}^{1} associated with 𝐱\mathbf{x}; and the twisted 11-form x~1=𝐱~\tilde{x}^{1}=\mathbf{\tilde{x}}^{\flat} and straight n1n-1 form xn1=i𝐱~μ~n=~x~1{x}^{n-1}=\mathrm{i}_{\mathbf{\tilde{x}}}\tilde{\mu}^{n}=-\operatorname{\tilde{\star}}\tilde{x}^{1} associated with 𝐱~\tilde{\mathbf{x}}. In 2D, n1=1n-1=1 and 11-form and (n1)(n-1)-forms appear to be the same object, leading to much confusion. Therefore we retain the notation xn1{x}^{n-1} and x~n1\tilde{x}^{n-1} to properly distinguish between 11 and (n1)(n-1)-forms. We can convert between twisted and straight forms using I~0xk=x~k\tilde{I}^{0}\wedge{x}^{k}=\tilde{x}^{k} and I~0x~k=xk\tilde{I}^{0}\wedge\tilde{x}^{k}={x}^{k}, and between straight 0-forms and twisted nn-forms using x~n=x0μ~n=~x0\tilde{x}^{n}={x}^{0}\wedge\tilde{\mu}^{n}=\operatorname{\tilde{\star}}{x}^{0}.

In 2D (i.e. n=2n=2) the following relationships hold (see [1] for proofs), where ff and gg are scalars, f~\tilde{f} and g~\tilde{g} are pseudoscalars, 𝐱\mathbf{x} and 𝐲\mathbf{y} are vectors and 𝐱~\tilde{\mathbf{x}} and 𝐲~\mathbf{\tilde{y}} are pseudovectors:

  • gradient, skew-gradient, divergence and curl in vector calculus \leftrightarrow Hodge star and exterior derivative in split exterior calculus:

    (f)=df0,(f~)=df~0,(f)=~df0,(f~)=~df~0,\displaystyle(\nabla f)^{\flat}=\operatorname{d}{f}^{0},\quad\quad(\nabla\tilde{f})^{\flat}=\operatorname{d}\tilde{f}^{0},\quad\quad(\nabla^{\perp}f)^{\flat}=\operatorname{\tilde{\star}}\operatorname{d}{f}^{0},\quad\quad(\nabla^{\perp}\tilde{f})^{\flat}=\operatorname{\tilde{\star}}\operatorname{d}\tilde{f}^{0}, (180)
    𝐱=~dx1,𝐱~=~dx~1,\displaystyle\nabla^{\perp}\cdot\mathbf{x}=\operatorname{\tilde{\star}}\operatorname{d}{x}^{1},\quad\quad\nabla^{\perp}\cdot\mathbf{\tilde{x}}=\operatorname{\tilde{\star}}\operatorname{d}\tilde{x}^{1}, (181)
    𝐱=~d~x1=~dx~n1,𝐱~=~d~x~1=~dxn1;\displaystyle\nabla\cdot\mathbf{x}=\operatorname{\tilde{\star}}\operatorname{d}\operatorname{\tilde{\star}}{x}^{1}=\operatorname{\tilde{\star}}\operatorname{d}\tilde{x}^{n-1},\quad\quad\nabla\cdot\mathbf{\tilde{x}}=\operatorname{\tilde{\star}}\operatorname{d}\operatorname{\tilde{\star}}\tilde{x}^{1}=\operatorname{\tilde{\star}}\operatorname{d}{x}^{n-1}; (182)
  • scalar product in vector calculus \leftrightarrow Hodge star and wedge product in split exterior calculus:

    fg=f0g0,f~g=f~0g0,f~g~=f~0g~0;fg={f}^{0}\wedge{g}^{0},\quad\quad\tilde{f}g=\tilde{f}^{0}\wedge{g}^{0},\quad\quad\tilde{f}\tilde{g}=\tilde{f}^{0}\wedge\tilde{g}^{0}; (183)
  • scalar-vector product in vector calculus \leftrightarrow Hodge star and wedge product in split exterior calculus:

    f𝐱=f0x1,f~𝐱=f~0x1,f𝐱~=f0x~1,f~𝐱~=f~0x~1,\displaystyle f\mathbf{x}={f}^{0}\wedge{x}^{1},\quad\quad\tilde{f}\mathbf{x}=\tilde{f}^{0}\wedge{x}^{1},\quad\quad f\mathbf{\tilde{x}}={f}^{0}\wedge\tilde{x}^{1},\quad\quad\tilde{f}\mathbf{\tilde{x}}=\tilde{f}^{0}\wedge\tilde{x}^{1}, (184)
    f𝐱=f0~x1=f0x~n1,f~𝐱=f~0~x1=f~0x~n1,\displaystyle f\mathbf{x}^{\perp}={f}^{0}\wedge\operatorname{\tilde{\star}}{x}^{1}={f}^{0}\wedge\tilde{x}^{n-1},\quad\quad\tilde{f}\mathbf{x}^{\perp}=\tilde{f}^{0}\wedge\operatorname{\tilde{\star}}{x}^{1}=\tilde{f}^{0}\wedge\tilde{x}^{n-1}, (185)
    f𝐱~=f0~x~1=f0xn1,f~𝐱~=f~0~x~1=f~0xn1;\displaystyle f\mathbf{\tilde{x}}^{\perp}={f}^{0}\wedge\operatorname{\tilde{\star}}\tilde{x}^{1}={f}^{0}\wedge{x}^{n-1},\quad\quad\tilde{f}\mathbf{\tilde{x}}^{\perp}=\tilde{f}^{0}\wedge\operatorname{\tilde{\star}}\tilde{x}^{1}=\tilde{f}^{0}\wedge{x}^{n-1}; (186)
  • dot product in vector calculus \leftrightarrow Hodge star and wedge product in split exterior calculus:

    𝐱𝐲=~(x1~y1)=~(x1y~n1),𝐱𝐲~=~(x1~y~1)=~(x1yn1),\displaystyle\mathbf{x}\cdot\mathbf{y}=\operatorname{\tilde{\star}}({x}^{1}\wedge\operatorname{\tilde{\star}}{y}^{1})=\operatorname{\tilde{\star}}({x}^{1}\wedge\tilde{y}^{n-1}),\quad\quad\mathbf{x}\cdot\mathbf{\tilde{y}}=\operatorname{\tilde{\star}}({x}^{1}\wedge\operatorname{\tilde{\star}}\tilde{y}^{1})=\operatorname{\tilde{\star}}({x}^{1}\wedge{y}^{n-1}),\quad\quad (187)
    𝐱~𝐲=~(x~1~y1)=~(x~1y~n1),𝐱~𝐲~=~(x~1~y~1)=~(x~1yn1);\displaystyle\mathbf{\tilde{x}}\cdot\mathbf{y}=\operatorname{\tilde{\star}}(\tilde{x}^{1}\wedge\operatorname{\tilde{\star}}{y}^{1})=\operatorname{\tilde{\star}}(\tilde{x}^{1}\wedge\tilde{y}^{n-1}),\quad\quad\mathbf{\tilde{x}}\cdot\mathbf{\tilde{y}}=\operatorname{\tilde{\star}}(\tilde{x}^{1}\wedge\operatorname{\tilde{\star}}\tilde{y}^{1})=\operatorname{\tilde{\star}}(\tilde{x}^{1}\wedge{y}^{n-1}); (188)
  • inner product in vector calculus \leftrightarrow inner product in split exterior calculus:

    (f,g)=f0,g0=f~n,g~n,(f~,g~)=f~0,g~0=fn,gn,\displaystyle(f,g)=\left<{f}^{0},{g}^{0}\right>=\left<\tilde{f}^{n},\tilde{g}^{n}\right>,\quad\quad(\tilde{f},\tilde{g})=\left<\tilde{f}^{0},\tilde{g}^{0}\right>=\left<{f}^{n},{g}^{n}\right>, (189)
    (𝐱,𝐲)=x1,y1=x~n1,y~n1,(𝐱~,𝐲~)=x~1,y~1=xn1,yn1.\displaystyle(\mathbf{x},\mathbf{y})=\left<{x}^{1},{y}^{1}\right>=\left<\tilde{x}^{n-1},\tilde{y}^{n-1}\right>,\quad\quad(\mathbf{\tilde{x}},\mathbf{\tilde{y}})=\left<\tilde{x}^{1},\tilde{y}^{1}\right>=\left<{x}^{n-1},{y}^{n-1}\right>. (190)

Using these identities is one way to derive the split exterior calculus form of equations from vector calculus.