LCOV - code coverage report
Current view: top level - src/bcs - FunctionRadiativeBC.C (source / functions) Hit Total Coverage
Test: idaholab/moose heat_transfer: #31405 (292dce) with base fef103 Lines: 10 11 90.9 %
Date: 2025-09-04 07:53:51 Functions: 6 6 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 "FunctionRadiativeBC.h"
      11             : #include "MathUtils.h"
      12             : 
      13             : registerMooseObject("HeatTransferApp", FunctionRadiativeBC);
      14             : registerMooseObject("HeatTransferApp", ADFunctionRadiativeBC);
      15             : 
      16             : template <bool is_ad>
      17             : InputParameters
      18          96 : FunctionRadiativeBCTempl<is_ad>::validParams()
      19             : {
      20          96 :   InputParameters params = RadiativeHeatFluxBCBaseTempl<is_ad>::validParams();
      21          96 :   params.addClassDescription("Boundary condition for radiative heat exchange where the emissivity "
      22             :                              "function is supplied by a Function.");
      23         192 :   params.addRequiredParam<FunctionName>(
      24             :       "emissivity_function", "Function describing emissivity for radiative boundary condition");
      25          96 :   return params;
      26           0 : }
      27             : 
      28             : template <bool is_ad>
      29          51 : FunctionRadiativeBCTempl<is_ad>::FunctionRadiativeBCTempl(const InputParameters & parameters)
      30          51 :   : RadiativeHeatFluxBCBaseTempl<is_ad>(parameters), _emissivity(getFunction("emissivity_function"))
      31             : {
      32          51 : }
      33             : 
      34             : template <bool is_ad>
      35             : GenericReal<is_ad>
      36      304672 : FunctionRadiativeBCTempl<is_ad>::coefficient() const
      37             : {
      38      304672 :   return _emissivity.value(_t, _q_point[_qp]);
      39             : }
      40             : 
      41             : template class FunctionRadiativeBCTempl<false>;
      42             : template class FunctionRadiativeBCTempl<true>;

Generated by: LCOV version 1.14