LCOV - code coverage report
Current view: top level - src/bcs - IPHDGPrescribedFluxBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose framework: 2bf808 Lines: 14 15 93.3 %
Date: 2025-07-17 01:28:37 Functions: 3 3 100.0 %
Legend: Lines: hit not hit

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

Generated by: LCOV version 1.14