inciter::cg::TransportPhysicsAdvDiff class

Physics policy for advection-diffusion using continuous Galerkin.

Public static functions

static auto type() -> ctr::PhysicsType noexcept
Return physics type.

Public functions

void diffusionRhs(ncomp_t ncomp, tk::real deltat, tk::real J, const std::array<std::array<tk::real, 3>, 4>& grad, const std::array<std::size_t, 4>& N, const std::vector<std::array<tk::real, 4>>& u, const std::vector<const tk::real*>& r, tk::Fields& R) const
Add diffusion contribution to rhs.
auto diffusion_dt(ncomp_t ncomp, tk::real L, const std::vector<std::array<tk::real, 4>>&) const -> tk::real
Compute the minimum time step size based on the diffusion.

Function documentation

void inciter::cg::TransportPhysicsAdvDiff::diffusionRhs(ncomp_t ncomp, tk::real deltat, tk::real J, const std::array<std::array<tk::real, 3>, 4>& grad, const std::array<std::size_t, 4>& N, const std::vector<std::array<tk::real, 4>>& u, const std::vector<const tk::real*>& r, tk::Fields& R) const

Add diffusion contribution to rhs.

Parameters
ncomp in Number of components in this PDE
deltat in Size of time step
in Element Jacobi determinant
grad in Shape function derivatives, nnode*ndim [4][3]
in Element node indices
in Solution at element nodes at recent time step
in Pointers to right hand side at component
in/out Right-hand side vector contributing to

tk::real inciter::cg::TransportPhysicsAdvDiff::diffusion_dt(ncomp_t ncomp, tk::real L, const std::vector<std::array<tk::real, 4>>&) const

Compute the minimum time step size based on the diffusion.

Parameters
ncomp in Number of components in this PDE
in Characteristic length scale
Returns Minimum time step size based on diffusion

Compute the minimum time step size based on the diffusion