inciter::CompFlowProblemGaussHump class

CompFlow system of PDEs problem: GaussHump.

Public static functions

static auto initialize(ncomp_t ncomp, const std::vector<EOS>&, tk::real x, tk::real y, tk::real, tk::real t) -> tk::InitializeFn::result_type
Initialize numerical solution.
static auto analyticSolution(ncomp_t ncomp, const std::vector<EOS>&, tk::real x, tk::real y, tk::real, tk::real t) -> tk::InitializeFn::result_type
Evaluate analytical solution at (x,y,z,t) for all components.
static auto src(ncomp_t, const std::vector<EOS>&, tk::real, tk::real, tk::real, tk::real, std::vector<tk::real>& sv) -> tk::SrcFn::result_type
static auto prescribedVelocity(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 analyticFieldNames(ncomp_t) const -> std::vector<std::string>
Return analytic field names to be output to file.
auto names(ncomp_t) const -> std::vector<std::string>
Return names of integral variables to be output to diagnostics file.

Function documentation

static tk::InitializeFn::result_type inciter::CompFlowProblemGaussHump::initialize(ncomp_t ncomp, const std::vector<EOS>&, tk::real x, tk::real y, tk::real, tk::real t)

Initialize numerical solution.

Parameters
ncomp in Number of scalar components in this PDE 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)

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

static tk::InitializeFn::result_type inciter::CompFlowProblemGaussHump::analyticSolution(ncomp_t ncomp, const std::vector<EOS>&, tk::real x, tk::real y, tk::real, tk::real t)

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

Parameters
ncomp in Number of scalar components in this PDE 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)

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

static tk::SrcFn::result_type inciter::CompFlowProblemGaussHump::src(ncomp_t, const std::vector<EOS>&, tk::real, tk::real, tk::real, tk::real, std::vector<tk::real>& sv)

Parameters
sv in/out Source term vector

Compute and return source term for manufactured solution

static std::vector<std::array<tk::real, 3>> inciter::CompFlowProblemGaussHump::prescribedVelocity(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<std::string> inciter::CompFlowProblemGaussHump::analyticFieldNames(ncomp_t) const

Return analytic field names to be output to file.

Returns Vector of strings labelling fields output in file

std::vector<std::string> inciter::CompFlowProblemGaussHump::names(ncomp_t) const

Return names of integral variables to be output to diagnostics file.

Returns Vector of strings labelling integral variables output