inciter::TransportProblemCylAdvect class

Transport PDE problem: advection of cylinder.

Public static functions

static auto solution(ncomp_t system, ncomp_t ncomp, tk::real x, tk::real y, tk::real, tk::real t) -> std::vector<tk::real>
Evaluate analytical solution at (x,y,t) for all components.
static auto prescribedVelocity(ncomp_t, ncomp_t ncomp, tk::real, tk::real, 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

auto solinc(ncomp_t, ncomp_t ncomp, tk::real x, tk::real y, tk::real, tk::real t, tk::real dt) const -> std::vector<tk::real>
Evaluate the increment from t to t+dt of the analytical solution at (x,y,z) for all components.
void errchk(ncomp_t, ncomp_t) const
Do error checking on PDE parameters.
void side(std::unordered_set<int>& conf) const
Query all side set IDs the user has configured for all components in this PDE system.

Function documentation

static std::vector<tk::real> inciter::TransportProblemCylAdvect::solution(ncomp_t system, ncomp_t ncomp, tk::real x, tk::real y, tk::real, tk::real t)

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

Parameters
system in Equation system index
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::TransportProblemCylAdvect::prescribedVelocity(ncomp_t, ncomp_t ncomp, tk::real, tk::real, tk::real)

Assign prescribed velocity at a point.

Parameters
ncomp in Number of components in this transport equation
Returns Velocity assigned to all vertices of a tetrehedron, size: ncomp * ndim = [ncomp][3]

Assign prescribed velocity at a point

std::vector<tk::real> inciter::TransportProblemCylAdvect::solinc(ncomp_t, ncomp_t ncomp, tk::real x, tk::real y, tk::real, tk::real t, tk::real dt) const

Evaluate the increment from t to t+dt of the analytical solution at (x,y,z) 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 increment starting from
dt in Time increment at which evaluate the solution increment to
Returns Increment in values of all components evaluated at (x,y,t+dt)

void inciter::TransportProblemCylAdvect::side(std::unordered_set<int>& conf) const

Query all side set IDs the user has configured for all components in this PDE system.

Parameters
conf in/out Set of unique side set IDs to add to