10#ifdef MOOSE_MFEM_ENABLED
21 "Adds the domain integrator to an MFEM problem for the mixed bilinear form "
22 "$(k\\vec\\nabla u, \\vec\\nabla v)_\\Omega$.");
23 params.
addParam<MFEMScalarCoefficientName>(
24 "coefficient",
"1.",
"Name of scalar coefficient for property k.");
25 params.
addParam<MFEMVectorCoefficientName>(
26 "diagonal_coefficient",
27 "Name of diagonal coefficient for property k. Mutually exclusive with parameters "
28 "'coefficient' and 'matrix_coefficient'.");
29 params.
addParam<MFEMMatrixCoefficientName>(
31 "Name of matrix coefficient for property k. Mutually exclusive with parameters 'coefficient' "
32 "and 'diagonal_coefficient'.");
39 getVariantCoefficient(
"coefficient",
"diagonal_coefficient",
"matrix_coefficient"))
43mfem::BilinearFormIntegrator *
46 return std::visit([](
auto & c) {
return new mfem::MixedGradGradIntegrator(c); },
_variant_coef);
registerMooseObject("MooseApp", MFEMMixedGradGradKernel)
virtual mfem::BilinearFormIntegrator * createMBFIntegrator() override
Create MFEM mixed bilinear form integrator. Ownership managed by the caller.
MFEMVariantCoefficient _variant_coef
static InputParameters validParams()
MFEMMixedGradGradKernel(const InputParameters ¶meters)