10#ifdef MOOSE_MFEM_ENABLED
23 "problem coefficients (including scalar variables).");
30 _mfem_problem(static_cast<
MFEMProblem &>(_pfb_feproblem)),
32 _xyzt({
"x",
"y",
"z",
"t"})
39 parsedFunctionSetup(_sym_function, _value, symbols, {}, {}, comm());
43 name(), _vars.size() + _xyzt.size(), _coefficients, _sym_function);
49 for (
const auto i : index_range(
_vars))
registerMooseObject("MooseApp", MFEMParsedFunction)
static InputParameters validParams()
GenericSymFunction< is_ad > SymFunction
Shorthand for an autodiff function parser object.
Scalar coefficient that, given a set of scalar (possibly, but not necessarily, gridfunction) coeffici...
Scalar, parsed function of position, time, and any number of scalar problem coefficients,...
std::vector< std::reference_wrapper< mfem::Coefficient > > _coefficients
vector of references to the scalar coefficients used in the function
void initialSetup() override
Creates the parsed function.
MFEMParsedFunction(const InputParameters ¶meters)
static InputParameters validParams()
MFEMProblem & _mfem_problem
reference to the MFEMProblem instance
Moose::MFEM::CoefficientManager & getCoefficients()
Method to get the PropertyManager object for storing material properties and converting them to MFEM ...
const std::vector< std::string > _vals
Values passed by the user, they may be Reals for Postprocessors.
const std::vector< std::string > _vars
Variables passed to libMesh::ParsedFunction.
This class is used to evaluate symbolic equations passed in to Moose through the input file.
static InputParameters validParams()
Created from MooseSystem via the FunctionFactory.
mfem::Coefficient & getScalarCoefficient(const std::string &name)
Return a scalar coefficient with the given name or, if that doesn't exists, try interpreting the name...
std::string stringJoin(const std::vector< std::string > &values, const std::string &separator=" ")
Concatenates value into a single string separated by separator.
std::string name(const ElemQuality q)