inciter::CompFlowProblemGaussHump class

CompFlow system of PDEs problem: GaussHump.

Public static functions

static auto solution(ncomp_t system, ncomp_t ncomp, tk::real x, tk::real y, tk::real, tk::real t, int&) -> tk::SolutionFn::result_type
Evaluate analytical solution at (x,y,z,t) for all components.
static auto src(ncomp_t, tk::real, tk::real, tk::real, tk::real, tk::real& r, tk::real& ru, tk::real& rv, tk::real& rw, tk::real& re) -> tk::CompFlowSrcFn::result_type
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 fieldNames(ncomp_t) const -> std::vector<std::string>
Return field names to be output to file.
auto fieldOutput(ncomp_t system, ncomp_t ncomp, ncomp_t offset, std::size_t nunk, std::size_t rdof, tk::real t, tk::real V, const std::vector<tk::real>& vol, const std::array<std::vector<tk::real>, 3>& coord, const tk::Fields& U) const -> std::vector<std::vector<tk::real>>
Return field output going 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::SolutionFn::result_type inciter::CompFlowProblemGaussHump::solution(ncomp_t system, ncomp_t ncomp, tk::real x, tk::real y, tk::real, tk::real t, int&)

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

Parameters
system in Equation system index, i.e., which compressible flow equation system we operate on among the systems of PDEs
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::CompFlowSrcFn::result_type inciter::CompFlowProblemGaussHump::src(ncomp_t, tk::real, tk::real, tk::real, tk::real, tk::real& r, tk::real& ru, tk::real& rv, tk::real& rw, tk::real& re)

Parameters
in/out Density source
ru in/out X momentum source
rv in/out Y momentum source
rw in/out Z momentum source
re in/out Specific total energy source

Compute and return source term for manufactured solution

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

Return field names to be output to file.

Returns Vector of strings labelling fields output in file

std::vector<std::vector<tk::real>> inciter::CompFlowProblemGaussHump::fieldOutput(ncomp_t system, ncomp_t ncomp, ncomp_t offset, std::size_t nunk, std::size_t rdof, tk::real t, tk::real V, const std::vector<tk::real>& vol, const std::array<std::vector<tk::real>, 3>& coord, const tk::Fields& U) const

Return field output going to file.

Parameters
system in Equation system index, i.e., which compressible flow equation system we operate on among the systems of PDEs
ncomp in Number of scalar components in this PDE system
offset in System offset specifying the position of the system of PDEs among other systems
nunk in Number of unknowns to extract
rdof in Number of reconstructed degrees of freedom. This is used as the number of scalar components to shift when extracting scalar components.
in Physical time
in Total mesh volume (across the whole problem)
vol in Volumes associated to elements (or nodes)
coord in Coordinates at which to evaluate the solution
in Solution vector at recent time step
Returns Vector of vectors to be output to 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