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

Physics configurations for scalar transport using continuous Galerkin.

Contents

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

General requirements on CGTransport 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.

Namespaces

namespace inciter
Inciter declarations and definitions.