inciter::TransportProblemSlotCyl class

Transport PDE problem: rotation of Zalesak's slotted cylinder

Public static functions

static auto solution(ncomp_t, ncomp_t ncomp, tk::real x, tk::real y, tk::real, tk::real t, int&) -> std::vector<tk::real>
Evaluate analytical solution at (x,y,t) for all components.
static auto prescribedVelocity(ncomp_t, ncomp_t ncomp, tk::real x, tk::real y, tk::real) -> std::vector<std::array<tk::real, 3>>
Assign prescribed velocity at a point.
static auto type() -> ctr::ProblemType noexcept
Return problem type.

Public functions

void errchk(ncomp_t, ncomp_t) const
Do error checking on PDE parameters.

Function documentation

static std::vector<tk::real> inciter::TransportProblemSlotCyl::solution(ncomp_t, ncomp_t ncomp, tk::real x, tk::real y, tk::real, tk::real t, int&)

Evaluate analytical solution at (x,y,t) for all components.

Parameters
ncomp in Number of components in this transport equation system
in X coordinate where to evaluate the solution
in Y coordinate where to evaluate the solution
in Time where to evaluate the solution
Returns Values of all components evaluated at (x,y,t)

static std::vector<std::array<tk::real, 3>> inciter::TransportProblemSlotCyl::prescribedVelocity(ncomp_t, ncomp_t ncomp, tk::real x, tk::real y, tk::real)

Assign prescribed velocity at a point.

Parameters
ncomp in Number of components in this transport equation
in X coordinate at which to assign velocity
in y coordinate at which to assign velocity
Returns Velocity assigned to all vertices of a tetrehedron, size: ncomp * ndim = [ncomp][3]