Skip to content

Hybridisable DG discretisations of the incompressible Euler equations

License

Notifications You must be signed in to change notification settings

eikehmueller/IncompressibleEulerHDG

Repository files navigation

Hybridisable DG discretisations of the incompressible Euler equations

Implementation for several advanced discretisation methods and timestepping methods for the incompressible Euler equations.

Overview

The goal of this work is to implement higher order hybridisable DG discretisations in space and time for the incompressible Euler equations similar to what has been done in Ueckermann and Lermusiaux (2016) for the incompressible Navier Stokes equations. This is achieved by extending the methods in Guzmán, Shu, Sequeira (2017).

Mathematical details

The incompressible Euler equations that are to be solved here are given by

d Q d t + p + ( Q ) Q = f Q = 0

The code implements a range of numerical schemes:

  1. The fully implicit method based on a conforming RT 0 × DG 0 discretisation described in Guzmán, Shu, Sequeira (2017), see conforming_implicit.py.
  2. The fully implicit method based on a [ DG k + 1 ] 2 × DG k DG discretisation also described in Guzmán, Shu, Sequeira (2017), see dg_implicit.py
  3. A fully implicit hybridisable DG variant of the fully implicit DG discretisation, see hdg_implicit.py
  4. A hybridisable DG variant of the DG discretisation which uses Chorin's projection method to split the implicit update into the computation of a tentative velocity followed by a pressure correction that enforces the divergence-free constraint on the velocity, see hdg_implicit.py.
  5. A generalisation of the hybridisable DG variant to IMEX timesteppers. The computation of the update at each stage can be done either fully implicitly or with a Richardson iteration that is preconditioned with a projection method, hdg_imex.py.

A stationary exact solution of the incompressible Euler equations in the domain Ω = [ 0 , 1 ] × [ 0 , 1 ] is given by f = 0 and

Q s ( x , y ) = ( C ( x ) S ( y ) , S ( x ) C ( y ) ) p s ( x , y ) = p 0 C ( x ) C ( y )

where S ( z ) = sin ( 2 z 1 2 π ) and C ( z ) = cos ( 2 z 1 2 π ) .

From this a divergence free time-dependent solution can be constructed as

Q ( x , y , t ) = Ψ ( t ) Q s ( x , y ) p ( x , y , t ) = Ψ ( t ) 2 p s ( x , y )

and f = d Ψ d t Q s ( x , y ) .

For further details on the used discretisation and timestepping methods see arxiv preprint.

Installation

To install this package run python -m pip install . as usual after installing the dependencies (see below).

If you want to edit the code, you might prefer to install in editable mode with python -m pip install --editable .

Running the code

The main script is driver.py in the src directory. Run

python driver.py --help

to see a list of command line options.

Dependencies

Firedrake

See here for Firedrake installation instructions.

About

Hybridisable DG discretisations of the incompressible Euler equations

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages