10#ifdef MOOSE_MFEM_ENABLED
20 params.
addClassDescription(
"Adds the domain integrator to an MFEM problem for the bilinear form "
21 "$(k \\vec u, \\vec v)_\\Omega$ "
22 "arising from the weak form of the mass operator "
24 params.
addParam<MFEMScalarCoefficientName>(
25 "coefficient",
"1.",
"Name of scalar coefficient k to multiply the integrator by.");
26 params.
addParam<MFEMVectorCoefficientName>(
27 "diagonal_coefficient",
28 "Name of diagonal coefficient for property k. Mutually exclusive with parameters "
29 "'coefficient' and 'matrix_coefficient'.");
30 params.
addParam<MFEMMatrixCoefficientName>(
32 "Name of matrix coefficient for property k. Mutually exclusive with parameters 'coefficient' "
33 "and 'diagonal_coefficient'.");
40 getVariantCoefficient(
"coefficient",
"diagonal_coefficient",
"matrix_coefficient"))
44mfem::BilinearFormIntegrator *
47 return std::visit([](
auto & c) {
return new mfem::VectorFEMassIntegrator(c); },
_variant_coef);
registerMooseObject("MooseApp", MFEMVectorFEMassKernel)
Class to construct an MFEM integrator to apply to the equation system.
static InputParameters validParams()
MFEMVectorFEMassKernel(const InputParameters ¶meters)
virtual mfem::BilinearFormIntegrator * createBFIntegrator() override
Create MFEM integrator to apply to the LHS of the weak form. Ownership managed by the caller.
static InputParameters validParams()
MFEMVariantCoefficient _variant_coef