class
TransportPhysicsAdvDiffPhysics policy for advection-diffusion using continuous Galerkin.
Contents
- Reference
Public static functions
-
static auto type() -> ctr::
PhysicsType noexcept - Return physics type.
Public functions
-
void diffusionRhs(ncomp_
t system, 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 system, 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 system,
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 | |
---|---|
system in | Equation system index, i.e., which transport equation system we operate on among the systems of PDEs |
ncomp in | Number of components in this PDE |
deltat in | Size of time step |
J in | Element Jacobi determinant |
grad in | Shape function derivatives, nnode*ndim [4][3] |
N in | Element node indices |
u in | Solution at element nodes at recent time step |
r in | Pointers to right hand side at component and offset |
R in/out | Right-hand side vector contributing to |
tk:: real inciter:: cg:: TransportPhysicsAdvDiff:: diffusion_dt(ncomp_ t system,
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 | |
---|---|
system in | Equation system index, i.e., which transport equation system we operate on among the systems of PDEs |
ncomp in | Number of components in this PDE |
L in | Characteristic length scale |
Returns | Minimum time step size based on diffusion |
Compute the minimum time step size based on the diffusion