LCOV - code coverage report
Current view: top level - src/userobjects - GapFluxModelRadiation.C (source / functions) Hit Total Coverage
Test: idaholab/moose heat_transfer: #31405 (292dce) with base fef103 Lines: 11 12 91.7 %
Date: 2025-09-04 07:53:51 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 "GapFluxModelRadiation.h"
      11             : 
      12             : registerMooseObject("HeatTransferApp", GapFluxModelRadiation);
      13             : 
      14             : InputParameters
      15         944 : GapFluxModelRadiation::validParams()
      16             : {
      17         944 :   InputParameters params = GapFluxModelRadiationBase::validParams();
      18         944 :   params.addClassDescription(
      19             :       "Gap flux model for heat conduction across a gap due to radiation, "
      20             :       "based on the diffusion approximation. Uses a coupled temperature variable.");
      21        1888 :   params.addRequiredCoupledVar("temperature", "The name of the temperature variable");
      22         944 :   return params;
      23           0 : }
      24             : 
      25         341 : GapFluxModelRadiation::GapFluxModelRadiation(const InputParameters & parameters)
      26             :   : GapFluxModelRadiationBase(parameters),
      27         341 :     _primary_T(adCoupledNeighborValue("temperature")),
      28         682 :     _secondary_T(adCoupledValue("temperature"))
      29             : {
      30         341 : }
      31             : 
      32             : ADReal
      33    26512596 : GapFluxModelRadiation::computeFlux() const
      34             : {
      35    26512596 :   return computeRadiationFlux(_secondary_T[_qp], _primary_T[_qp]);
      36             : }

Generated by: LCOV version 1.14