Mixed Mimetic Spectral Elements for Geophysical Fluid Dynamics Dave Lee Los Alamos National Laboratory Lee; LA-UR-17-24044 Mixed Mimetic Spectral Elements
Outline ◮ Connection of finite volumes to differential forms ◮ Key ideas of differential forms ◮ Differential forms for discrete data ◮ Construction of mixed mimetic spectral elements ◮ Rotating shallow water equations ◮ Results ◮ Outlook and future directions Lee; LA-UR-17-24044 Mixed Mimetic Spectral Elements
What is a mimetic method...and why do we care? Discrete versions of the following hold exactly ◮ ∇ × ∇ φ = 0 ◮ ∇ · ∇ ⊥ ψ = 0 ◮ � ∇ × u d a = � u · d l ◮ � � ∇ · u d v = u · d a Desirable properties for geophysical modelling ◮ Conservation of moments (mass, vorticity, energy, potential enstrophy...) k × u + 1 ◮ Stationary geostrophic modes: f ˆ ρ ∇ p = 0 ◮ 2/1 ratio of velocity to pressure degrees of freedom (two gravity waves for every Rossby wave) See Thuburn (2008) JCP Some conservation issues for the dynamical cores of NWP and climate models for a detailed discussion Lee; LA-UR-17-24044 Mixed Mimetic Spectral Elements
b b b b Finite volumes and differential forms φ 0 ,i +1 � u 1 ψ 0 ψ 0 ω 2 i +1 i u 1 � ψ 0 → ∇ ⊥ → � u 1 → ∇· → p 2 � ⋆ � ⋆ � ⋆ ω 2 ← ∇× ← � u 1 ← ∇ ← φ 0 φ 0 ,i p 2 Lee; LA-UR-17-24044 Mixed Mimetic Spectral Elements
Key concepts of differential forms Exterior derivative d , generalization of ∇ , ∇· , ∇× , ∇ ⊥ ◮ Maps from a k to a k + 1 space Λ k → Λ k +1 ◮ d ◦ d = 0, R → Λ 0 → Λ 1 → Λ 2 = 0 ( ∇ × ∇ φ = 0, ∇ · ∇ ⊥ ψ = 0) Boundary operator ∂ ◮ Maps to the boundary of a k form Λ k → Λ k − 1 Hodge star operator ⋆ ◮ Maps from a k to an n − k space, Λ k → Λ n − k ◮ Analogous to mapping between Voronoi and Delaunay grids on a finite volume mesh Λ 0 → d → Λ 1 → d → Λ 2 � ⋆ � ⋆ � ⋆ Λ 2 ← d ← Λ 1 ← d ← Λ 0 Generalized Stokes theorem � � d α k − 1 = ∂ Ω k α k − 1 → ( d α k − 1 , Ω k ) = ( α k − 1 , ∂ Ω k ) Ω k ◮ k = 1: Fundamental theorem of calculus ◮ k = 2: Kelvin-Stokes circulation theorem ◮ k = 3: Gauss’ divergence theorem Lee; LA-UR-17-24044 Mixed Mimetic Spectral Elements
Application to spectral elements ◮ The standard (0 form) spectral element basis is given as f 0 ( ξ ) = a 0 i l i ( ξ ) ◮ Start from the premise that in 1D we wish to exactly satisfy the fundamental th. of calculus between nodes ξ i and ξ i +1 : � ξ i +1 � ξ i +1 d f 0 ( ξ ) = f 0 ( ξ i +1 ) − f 0 ( ξ i ) = a 0 i +1 − a 0 i = b 1 g 1 ( ξ ) i = ξ i ξ i ◮ The corresponding 1 form edge function expansion is then given as g 1 ( ξ ) = b 1 i e i ( ξ ) subject to d f 0 = g 1 ◮ Edge functions are orthogonal with respect to the set of 1 forms such that � ξ i +1 e j ( ξ ) = δ i , j ξ i ◮ Satisfies the Kelvin-Stokes and Gauss-divergence theorems in higher dimensions via tensor product combinations of l i ( ξ ) and e j ( ξ ) Lee; LA-UR-17-24044 Mixed Mimetic Spectral Elements
Algebraic topology and the discrete exterior derivative +1 0 0 0 0 +1 0 0 − 1 0 +1 0 0 − 1 0 +1 0 0 − 1 0 0 0 0 − 1 E 1 , 2 = − 1 0 0 0 +1 − 1 0 0 0 +1 0 0 0 0 − 1 0 0 0 +1 − 1 0 0 0 +1 ◮ Domain is broken up into discrete k forms called chains ◮ Chains are topological objects with no measure ◮ Data that resides on these k-chains is referred to as co-chains ◮ Orientation of k forms with respect to the k − 1 forms given by the discrete boundary operator E k − 1 , k ◮ ∂ ◦ ∂ = 0 holds for discrete case: E k − 2 , k − 1 E k − 1 , k = 0. ◮ Discrete exterior derivative is the transpose of the boundary operator: E k , k − 1 = E T k − 1 , k Lee; LA-UR-17-24044 Mixed Mimetic Spectral Elements
Example: 1D wave equation ∂ p 1 ∂ u 0 = − d u 0 = − d ⋆ p 1 ∂ t ∂ t Discretize velocity (0-form) and pressure (1-form) within each element u 0 ( ξ i ) = l j ( ξ i ) u 0 j = M i , j u 0 p 1 ( ξ i ) = e j ( ξ i ) p 1 j = N i , j p 1 j j First equation may be solved in the strong form as dp 1 = − d u 0 i j dt = − E 1 , 0 i , j u 0 j = − ( u 0 j +1 − u 0 j ) Second equation may be solved in the weak form via the adjoint relation d dt ( l a , l b ) Ω k u 0 b = − ( l a , d ⋆ e c ) Ω k p 1 c = ( d l a , e c ) Ω k p 1 c + B . C . s = E 0 , 1 , a , d ( e d , e c ) Ω k p 1 c + B . C . s Lee; LA-UR-17-24044 Mixed Mimetic Spectral Elements
The shallow water equations ∂ u 1 ∂ h 2 = − q 0 ∧ F 1 − d ⋆ ( K 2 + gh 2 ) = − d F 1 ∂ t ∂ t K 2 = 1 ⋆ h 2 ∧ q 0 = d ⋆ u 1 + f 0 F 1 = ⋆ h 2 ∧ u 1 2 ⋆ u 1 ∧ u 1 ◮ Define the spaces α 0 i ∈ 0 forms, β 1 i ∈ 1 forms (vector fields), γ 2 i ∈ 2 forms ◮ Solve for the diagnostic equations ( α 0 , ⋆ h 2 ∧ q 0 ) Ω k = ( α 0 , d ⋆ � u 1 ) Ω k + ( α 0 , f 0 ) Ω k = − E 0 , 1 ( β 1 , u 1 ) Ω k + ( α 0 a , f 0 ) Ω k ( β 1 , F 1 ) Ω k = ( β 1 , ⋆ h 2 ∧ u 1 ) Ω k ( γ 2 , K 2 ) Ω k = 1 2 ( γ 2 , ⋆ u 1 ∧ u 1 ) Ω k ◮ Solve the prognostic equations d dt ( β 1 , u 1 ) Ω k = − ( β 1 , q 0 ∧ F 1 ) Ω k − ( β 1 , d ⋆ ( K 2 + gh 2 )) Ω k = − ( β 1 , q 0 ∧ F 1 ) Ω k + E 1 , 2 ( γ 2 , ( K 2 + gh 2 )) Ω k d dt h 2 = − E 2 , 1 F 1 Lee; LA-UR-17-24044 Mixed Mimetic Spectral Elements
Results: Spectral convergence Diagnostic equations converge at their spectral order of accuracy for 3rd (left) and 4th (right) order basis functions Lee; LA-UR-17-24044 Mixed Mimetic Spectral Elements
Results: Conservation properties ◮ Mass: exact and holds pointwise, since continuity equation is expressed in the strong form ◮ Vorticity: holds globally in the weak form, since E 0 , 1 E 1 , 2 = 0 ( ∇ × ∇ = 0) ◮ Energy: holds globally to truncation error in time for d dt ( h 2 , K 2 + 0 . 5 gh 2 ) Ω k = 0 ◮ Potential enstrophy: holds globally to truncation error in time, requires that the terms ⋆ h 2 ∧ q 0 and q 0 ∧ F 1 are integrated exactly Lee; LA-UR-17-24044 Mixed Mimetic Spectral Elements
Results: Vortices from geostrophic balance ψ = e − 2 . 5(( x − 2 π/ 3) 2 +( y − π ) 2 ) + e − 2 . 5(( x − 4 π/ 3) 2 +( y − π )) 2 � u = k × ∇ ψ f × � u + g ∇ h = 0 ⇒ h = ( f / g ) ψ + H f = g = H = 8( >> 1) Lee; LA-UR-17-24044 Mixed Mimetic Spectral Elements
Computational cost dt h 2 = − E 2 , 1 F 1 : ◮ Continuity, d ◮ Exact and pointwise, h 2 , n +1 = h 2 , n i , j − ∆ t ( F 1 , x , n i +1 , j − F 1 , x , n + F 1 , y , n i , j +1 − F 1 , y , n ) i , j i , j i , j ◮ Very fast!! ◮ Kinetic energy, ( γ 2 , K 2 ) Ω k = 1 2 ( γ 2 , ⋆ u 1 ∧ u 1 ) Ω k : ◮ Function space γ 2 is discontinuous at element boundaries - DG ◮ Fast! a , ⋆ h 2 ∧ q 0 ) Ω k = − E 0 , 1 ( β 1 , u 1 ) Ω k + ( α 0 ◮ Potential vorticity, ( α 0 a , f 0 ) Ω k : ◮ Use inexact integration (and sacrifice potential enstrophy conservation) ◮ α 0 is orthogonal at the (inexact) quadrature points, LHS matrix is diagonal ◮ Fast! ◮ Velocity, u 1 and momentum F 1 : ◮ Function space β 1 has continuous normal components ◮ Requires global mass matrix solve - CG ◮ Slow!! Lee; LA-UR-17-24044 Mixed Mimetic Spectral Elements
Outlook ◮ Can we get exact conservation of energy independent of time step via semi-implicit, staggered time stepping as has been done for Navier Stokes? [Palha and Gerritsma, (2017), JCP] ◮ Should we be prognosing the vorticity rather than diagnosing? ◮ Can we do this on the sphere via isoparametric mapping from computational domain? - Should be ok since volume, vorticity and energy conservation hold for inexact integration. ◮ Conservation of potential vorticity requires exact integration - can we do this with inexact integration? - do we even care? ◮ Turbulence closure: Anticipated Potential Vorticity Method, dissipates enstrophy but preserves energy conservation [Sadourny and Basdevant, (1985), JAS]. Lee; LA-UR-17-24044 Mixed Mimetic Spectral Elements
References Geostrophically balanced finite volumes: ◮ Thuburn, Ringler, Skamarock and Klemp (2010) JCP ◮ Ringler, Thuburn, Klemp and Skamarock (2010) JCP ◮ Peixoto (2016), JCP Mimetic finite elements for geophysical flows: ◮ Cotter and Shipton (2012) JCP ◮ Cotter and Thuburn (2014) JCP ◮ McRae and Cotter (2014) QJRMS ◮ Thuburn and Cotter (2015) JCP Spectral elements (a-grid): ◮ Taylor and Fournier (2010) JCP ◮ Melvin, Staniforth and Thuburn (2012) QJRMS Mixed spectral elements: ◮ Palha and Gerritsma (2011) Spectral and High Order Methods for Partial Differential Equations ◮ Kreeft and Gerritsma (2013) JCP ◮ Palha, Rebelo and Gerritsma (2013) Mimetic Spectral Element Advection ◮ Hiemstra, Toshniwal, Huijsmans and Gerritsma (2014) JCP Lee; LA-UR-17-24044 Mixed Mimetic Spectral Elements
Recommend
More recommend