LCOV - code coverage report
Current view: top level - src/kernels - ADHeatStructureHeatSourceRZ.C (source / functions) Hit Total Coverage
Test: idaholab/moose thermal_hydraulics: #32971 (54bef8) with base c6cf66 Lines: 11 12 91.7 %
Date: 2026-05-29 20:41:18 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 "ADHeatStructureHeatSourceRZ.h"
      11             : 
      12             : registerMooseObject("ThermalHydraulicsApp", ADHeatStructureHeatSourceRZ);
      13             : 
      14             : InputParameters
      15         141 : ADHeatStructureHeatSourceRZ::validParams()
      16             : {
      17         141 :   InputParameters params = ADHeatStructureHeatSource::validParams();
      18         141 :   params += RZSymmetry::validParams();
      19         141 :   params.addClassDescription(
      20             :       "Adds a heat source term in XY coordinates interpreted as cylindrical coordinates");
      21         141 :   return params;
      22           0 : }
      23             : 
      24          75 : ADHeatStructureHeatSourceRZ::ADHeatStructureHeatSourceRZ(const InputParameters & parameters)
      25          75 :   : ADHeatStructureHeatSource(parameters), RZSymmetry(this, parameters)
      26             : {
      27          75 : }
      28             : 
      29             : ADReal
      30     2010466 : ADHeatStructureHeatSourceRZ::computeQpResidual()
      31             : {
      32     2010466 :   const ADReal circumference = computeCircumference(_q_point[_qp]);
      33     2010466 :   return circumference * ADHeatStructureHeatSource::computeQpResidual();
      34             : }

Generated by: LCOV version 1.14