inciter::MultiMatProblemUserDefined class

MultiMat system of PDEs problem: user defined.

Contents

Public static functions

static auto solution(ncomp_t system, ncomp_t ncomp, tk::real x, tk::real y, tk::real z, tk::real t) -> tk::SolutionFn::result_type
static auto solinc(ncomp_t, tk::real, tk::real, tk::real, tk::real, tk::real) -> std::array<tk::real, 5>
Evaluate the increment from t to t+dt of the analytical solution at (x,y,z) for all components.
static auto src(ncomp_t, ncomp_t, tk::real, tk::real, tk::real, tk::real) -> tk::SrcFn::result_type
static auto fieldNames(ncomp_t) -> std::vector<std::string>
static void side(std::unordered_set<int>& conf)
Query all side set IDs the user has configured for all components in this PDE system.
static 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) -> std::vector<std::vector<tk::real>>
static auto names(ncomp_t) -> std::vector<std::string>

Function documentation

static tk::SolutionFn::result_type inciter::MultiMatProblemUserDefined::solution(ncomp_t system, ncomp_t ncomp, tk::real x, tk::real y, tk::real z, tk::real t)

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 Z coordinate where to evaluate the solution
in Physical time at which to evaluate the solution
Returns Values of all components evaluated at (x,y,z,t)

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

static std::array<tk::real, 5> inciter::MultiMatProblemUserDefined::solinc(ncomp_t, tk::real, tk::real, tk::real, tk::real, tk::real)

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: all zero for now

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

Returns Array of reals containing the source for all components

Compute and return source term for Rayleigh-Taylor manufactured solution

No-op for user-deefined problems.

static std::vector<std::string> inciter::MultiMatProblemUserDefined::fieldNames(ncomp_t)

Returns Vector of strings labelling fields output in file

Return field names to be output to file

static void inciter::MultiMatProblemUserDefined::side(std::unordered_set<int>& conf)

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

static std::vector<std::vector<tk::real>> inciter::MultiMatProblemUserDefined::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)

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

Return field output going to file

static std::vector<std::string> inciter::MultiMatProblemUserDefined::names(ncomp_t)

Returns Vector of strings labelling integral variables output

Return names of integral variables to be output to diagnostics file