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) -> tk::SolutionFn::result_type
Evaluate initial condition solution at (x,y,z,t) for all components.
static auto src(ncomp_t, ncomp_t, tk::real, tk::real, tk::real, tk::real) -> tk::SrcFn::result_type
Compute and return source term for Rayleigh-Taylor manufactured solution.
static auto type() -> ctr::ProblemType noexcept
Return problem type.

Public functions

auto solinc(ncomp_t, tk::real, tk::real, tk::real, tk::real, tk::real) const -> std::array<tk::real, 5>
Evaluate the increment from t to t+dt of the analytical solution at (x,y,z) for all components.
auto fieldNames(ncomp_t) const -> std::vector<std::string>
Return field names to be output to file.
void side(std::unordered_set<int>& conf) const
Query all side set IDs the user has configured for all components in this PDE system.
auto fieldOutput(ncomp_t, ncomp_t, ncomp_t offset, tk::real, tk::real, const std::vector<tk::real>&, const std::array<std::vector<tk::real>, 3>&, 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)

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

Parameters
ncomp in Number of scalar components in this PDE system
Returns Values of all components

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

static tk::SrcFn::result_type inciter::CompFlowProblemUserDefined::src(ncomp_t, ncomp_t, tk::real, tk::real, tk::real, tk::real)

Compute and return source term for Rayleigh-Taylor manufactured solution.

Returns Array of reals containing the source for all components

No-op for user-defined problems

std::array<tk::real, 5> inciter::CompFlowProblemUserDefined::solinc(ncomp_t, tk::real, tk::real, tk::real, tk::real, tk::real) const

Evaluate the increment from t to t+dt of the analytical solution at (x,y,z) for all components.

Returns Increment in values of all components evaluated at (x,y,z,t+dt)

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

void inciter::CompFlowProblemUserDefined::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

std::vector<std::vector<tk::real>> inciter::CompFlowProblemUserDefined::fieldOutput(ncomp_t, ncomp_t, ncomp_t offset, tk::real, tk::real, const std::vector<tk::real>&, const std::array<std::vector<tk::real>, 3>&, 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
in Solution vector at recent time step
Returns Vector of vectors 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