10#ifdef MOOSE_MFEM_ENABLED
20 params.
addClassDescription(
"Adds the domain integrator to an MFEM problem for the bilinear form "
21 "$(k\\vec\\nabla u, \\vec\\nabla v)_\\Omega$ "
22 "arising from the weak form of the Laplacian operator "
23 "$- \\vec\\nabla \\cdot \\left( k \\vec \\nabla u \\right)$.");
24 params.
addParam<MFEMScalarCoefficientName>(
25 "coefficient",
"1.",
"Name of property for diffusion coefficient k.");
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::DiffusionIntegrator(c); },
_variant_coef);
registerMooseObject("MooseApp", MFEMDiffusionKernel)
MFEMVariantCoefficient _variant_coef
static InputParameters validParams()
virtual mfem::BilinearFormIntegrator * createBFIntegrator() override
Create MFEM integrator to apply to the LHS of the weak form. Ownership managed by the caller.
MFEMDiffusionKernel(const InputParameters ¶meters)
Class to construct an MFEM integrator to apply to the equation system.
static InputParameters validParams()