Line data Source code
1 : //* This file is part of the MOOSE framework 2 : //* https://mooseframework.inl.gov 3 : //* 4 : //* All rights reserved, see COPYRIGHT for full restrictions 5 : //* https://github.com/idaholab/moose/blob/master/COPYRIGHT 6 : //* 7 : //* Licensed under LGPL 2.1, please see LICENSE for details 8 : //* https://www.gnu.org/licenses/lgpl-2.1.html 9 : 10 : #ifdef MOOSE_MFEM_ENABLED 11 : 12 : #include "MFEMMixedGradGradKernel.h" 13 : 14 : registerMooseObject("MooseApp", MFEMMixedGradGradKernel); 15 : 16 : InputParameters 17 8676 : MFEMMixedGradGradKernel::validParams() 18 : { 19 8676 : InputParameters params = MFEMMixedBilinearFormKernel::validParams(); 20 17352 : params.addClassDescription( 21 : "Adds the domain integrator to an MFEM problem for the mixed bilinear form " 22 : "$(k\\vec\\nabla u, \\vec\\nabla v)_\\Omega$."); 23 26028 : params.addParam<MFEMScalarCoefficientName>("coefficient", "1.", "Name of property k to use."); 24 8676 : return params; 25 0 : } 26 : 27 23 : MFEMMixedGradGradKernel::MFEMMixedGradGradKernel(const InputParameters & parameters) 28 46 : : MFEMMixedBilinearFormKernel(parameters), _coef(getScalarCoefficient("coefficient")) 29 : // FIXME: The MFEM bilinear form can also handle vector and matrix 30 : // coefficients, so ideally we'd handle all three too. 31 : { 32 23 : } 33 : 34 : mfem::BilinearFormIntegrator * 35 23 : MFEMMixedGradGradKernel::createMBFIntegrator() 36 : { 37 23 : return new mfem::MixedGradGradIntegrator(_coef); 38 : } 39 : 40 : #endif