LCOV - code coverage report
Current view: top level - src/auxkernels - GrayLambertRadiationHeatFluxAux.C (source / functions) Hit Total Coverage
Test: idaholab/moose heat_transfer: #33390 (250e9c) with base 846a5c Lines: 11 13 84.6 %
Date: 2026-07-31 18:17:22 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 "GrayLambertRadiationHeatFluxAux.h"
      11             : #include "GrayLambertSurfaceRadiationBase.h"
      12             : 
      13             : registerMooseObject("HeatTransferApp", GrayLambertRadiationHeatFluxAux);
      14             : 
      15             : InputParameters
      16          15 : GrayLambertRadiationHeatFluxAux::validParams()
      17             : {
      18          15 :   InputParameters params = AuxKernel::validParams();
      19          15 :   params.addClassDescription("Radiation heat flux from a GrayLambertSurfaceRadiationBase object.");
      20          30 :   params.addRequiredParam<UserObjectName>("surface_radiation_object",
      21             :                                           "GrayLambertSurfaceRadiationBase UO name");
      22          15 :   return params;
      23           0 : }
      24             : 
      25           8 : GrayLambertRadiationHeatFluxAux::GrayLambertRadiationHeatFluxAux(const InputParameters & parameters)
      26             :   : AuxKernel(parameters),
      27           8 :     _glsr_uo(getUserObject<GrayLambertSurfaceRadiationBase>("surface_radiation_object"))
      28             : {
      29           8 :   if (isNodal())
      30           0 :     mooseError("The variable may not be nodal because the heat fluxes are looked up by the current "
      31             :                "boundary ID, which is ambiguous for a given node.");
      32           8 : }
      33             : 
      34             : Real
      35         240 : GrayLambertRadiationHeatFluxAux::computeValue()
      36             : {
      37         240 :   return -_glsr_uo.getSurfaceHeatFluxDensity(_current_boundary_id);
      38             : }

Generated by: LCOV version 1.14