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

Physics configurations for scalar transport using discontinuous Galerkin.

Contents

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 static function diffusionRhs(), adding diffusion terms to the right hand side.
  • Must define the static function diffusion_dt(), computing the minumum time step size based on the diffusion term.

Namespaces

namespace inciter
Inciter declarations and definitions.