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 : #include "IPHDGPrescribedFluxBC.h" 11 : #include "ElementAndTraceScalarHDGAssemblyHelper.h" 12 : 13 : InputParameters 14 6409 : IPHDGPrescribedFluxBC::validParams() 15 : { 16 6409 : auto params = ElementAndTraceScalarHDGBC::validParams(); 17 19227 : params.addRequiredParam<MooseFunctorName>( 18 : "prescribed_normal_flux", "The prescribed value of the flux dotted with the normal"); 19 6409 : return params; 20 0 : } 21 : 22 113 : IPHDGPrescribedFluxBC::IPHDGPrescribedFluxBC(const InputParameters & parameters) 23 226 : : ElementAndTraceScalarHDGBC(parameters), _normal_flux(getFunctor<Real>("prescribed_normal_flux")) 24 : { 25 113 : } 26 : 27 : void 28 9404 : IPHDGPrescribedFluxBC::compute(ElementAndTraceScalarHDGAssemblyHelper & helper) 29 : { 30 9404 : helper.resizeResiduals(); 31 : 32 : // u, lm_u 33 9404 : helper.scalarFace(); 34 9404 : helper.lmFace(); 35 9404 : helper.lmPrescribedFlux(_normal_flux); 36 9404 : }