Towards whole program generation of quadrature-free discontinuous Galerkin methods for the shallow water equations

04/18/2019
by   Sara Faghih-Naini, et al.
0

The shallow water equations (SWE) are a commonly used model to study tsunamis, tides, and coastal ocean circulation. However, there exist various approaches to discretize and solve them efficiently. Which of them is best for a certain scenario is often not known and, in addition, depends heavily on the used HPC platform. From a simulation software perspective, this places a premium on the ability to adapt easily to different numerical methods and hardware architectures. One solution to this problem is to apply code generation techniques and to express methods and specific hardware-dependent implementations on different levels of abstraction. This allows for a separation of concerns and makes it possible, e.g., to exchange the discretization scheme without having to rewrite all low-level optimized routines manually. In this paper, we show how code for an advanced quadrature-free discontinuous Galerkin (DG) discretized shallow water equation solver can be generated. Here, we follow the multi-layered approach from the ExaStencils project that starts from the continuous problem formulation, moves to the discrete scheme, spells out the numerical algorithms, and, finally, maps to a representation that can be transformed to a distributed memory parallel implementation by our in-house Scala-based source-to-source compiler. Our contributions include: A new quadrature-free discontinuous Galerkin formulation, an extension of the class of supported computational grids, and an extension of our toolchain allowing to evaluate discrete integrals stemming from the DG discretization implemented in Python. As first results we present the whole toolchain and also demonstrate the convergence of our method for higher order DG discretizations.

READ FULL TEXT

page 3

page 8

page 9

research
01/26/2023

Regularized Approach for Bingham Viscoplastic Shallow Flow Using the Discontinuous Galerkin Method

This paper aims to simulate viscoplastic flow in a shallow-water regime....
research
06/22/2023

An entropy stable discontinuous Galerkin method for the two-layer shallow water equations on curvilinear meshes

We present an entropy stable nodal discontinuous Galerkin spectral eleme...
research
05/05/2020

High-order entropy stable discontinuous Galerkin methods for the shallow water equations: curved triangular meshes and GPU acceleration

We present a high-order entropy stable discontinuous Galerkin (ESDG) met...
research
03/21/2023

Domain-specific implementation of high order Discontinuous Galerkin methods in spherical geometry

We assess two domain-specific languages included in the GridTools ecosys...
research
09/06/2021

A well-balanced oscillation-free discontinuous Galerkin method for shallow water equations

In this paper, we develop a well-balanced oscillation-free discontinuous...
research
03/27/2019

Yet Another Tensor Toolbox for discontinuous Galerkin methods and other applications

The numerical solution of partial differential equations is at the heart...
research
05/23/2023

A discontinuous Galerkin approach for atmospheric flows with implicit condensation

We present a discontinuous Galerkin method for moist atmospheric dynamic...

Please sign up or login with your details

Forgot password? Click here to reset