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