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 "MFEMScalarProjectionAux.h" 13 : 14 : registerMooseObject("MooseApp", MFEMScalarProjectionAux); 15 : 16 : InputParameters 17 8646 : MFEMScalarProjectionAux::validParams() 18 : { 19 8646 : InputParameters params = MFEMAuxKernel::validParams(); 20 17292 : params.addClassDescription("Projects a scalar coefficient onto a scalar MFEM auxvariable"); 21 25938 : params.addRequiredParam<MFEMScalarCoefficientName>("coefficient", 22 : "Name of the scalar coefficient to project."); 23 8646 : return params; 24 0 : } 25 : 26 8 : MFEMScalarProjectionAux::MFEMScalarProjectionAux(const InputParameters & parameters) 27 16 : : MFEMAuxKernel(parameters), _coef(getScalarCoefficient("coefficient")) 28 : { 29 8 : } 30 : 31 : void 32 8 : MFEMScalarProjectionAux::execute() 33 : { 34 8 : _result_var.ProjectCoefficient(_coef); 35 8 : } 36 : 37 : #endif