src/PDE/Transport/Physics/DG.hpp file

Physics configurations for scalar transport using discontinuous Galerkin.


This file configures all Physics policy classes for the scalar transport equations implemented using discontinuous Galerkin discretization, defined in PDE/Transport/DGTransport.h.

General requirements on DGTransport Physics policy classes:

  • Must define the static function type(), returning the enum value of the policy option. Example:

    static ctr::PhysicsType type() noexcept {
      return ctr::PhysicsType::ADVECTION;

    which returns the enum value of the option from the underlying option class, collecting all possible options for Physics policies.

  • Must define the function diffusionRhs(), adding diffusion terms to the right hand side.
  • Must define the function diffusion_dt(), computing the minumum time step size based on the diffusion term.


namespace inciter
Inciter declarations and definitions.