inciter::CompFlowProblemUserDefined class

CompFlow system of PDEs problem: user defined.

Public static functions

static auto solution(ncomp_t, ncomp_t ncomp, tk::real, tk::real, tk::real, tk::real, int& inbox) -> tk::SolutionFn::result_type
Set initial conditions.
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 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, ncomp_t, ncomp_t offset, std::size_t nunk, std::size_t rdof, tk::real, tk::real, const std::vector<tk::real>&, const std::array<std::vector<tk::real>, 3>&, 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::CompFlowProblemUserDefined::solution(ncomp_t, ncomp_t ncomp, tk::real, tk::real, tk::real, tk::real, int& inbox)

Set initial conditions.

Parameters
ncomp in Number of scalar components in this PDE system
inbox in/out 1 If box ICs are applied and point fell into box
Returns Values of all components

Set initial conditions

static tk::CompFlowSrcFn::result_type inciter::CompFlowProblemUserDefined::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 Rayleigh-Taylor manufactured solution

std::vector<std::string> inciter::CompFlowProblemUserDefined::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::CompFlowProblemUserDefined::fieldOutput(ncomp_t, ncomp_t, ncomp_t offset, std::size_t nunk, std::size_t rdof, tk::real, tk::real, const std::vector<tk::real>&, const std::array<std::vector<tk::real>, 3>&, const tk::Fields& U) const

Return field output going to file.

Parameters
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 Solution vector at recent time step
Returns Vector of vectors of solution fields to be output to file

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

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

Returns Vector of strings labelling integral variables output