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 "MFEMVectorFEMassIntegratedBC.h" 13 : 14 : registerMooseObject("MooseApp", MFEMVectorFEMassIntegratedBC); 15 : 16 : InputParameters 17 2098 : MFEMVectorFEMassIntegratedBC::validParams() 18 : { 19 2098 : InputParameters params = MFEMIntegratedBC::validParams(); 20 4196 : params.addClassDescription("Adds the boundary integrator to an MFEM problem for the linear form " 21 : "$(\\vec u , \\vec v)_{\\partial\\Omega}$"); 22 6294 : params.addParam<MFEMScalarCoefficientName>( 23 : "coefficient", "1.", "The coefficient which will be used in the integrated BC."); 24 2098 : return params; 25 0 : } 26 : 27 0 : MFEMVectorFEMassIntegratedBC::MFEMVectorFEMassIntegratedBC(const InputParameters & parameters) 28 0 : : MFEMIntegratedBC(parameters), _coef(getScalarCoefficient("coefficient")) 29 : { 30 0 : } 31 : 32 : // Create MFEM integrator to apply to the LHS of the weak form. Ownership managed by the caller. 33 : mfem::BilinearFormIntegrator * 34 0 : MFEMVectorFEMassIntegratedBC::createBFIntegrator() 35 : { 36 0 : return new mfem::VectorFEMassIntegrator(_coef); 37 : ; 38 : } 39 : 40 : #endif