LCOV - code coverage report
Current view: top level - src/components - HeatGeneration.C (source / functions) Hit Total Coverage
Test: idaholab/moose thermal_hydraulics: #30301 (3b550b) with base 2ad78d Lines: 14 15 93.3 %
Date: 2025-07-30 13:02:48 Functions: 2 2 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 "HeatGeneration.h"
      11             : 
      12             : registerMooseObject("ThermalHydraulicsApp", HeatGeneration);
      13             : 
      14             : InputParameters
      15           4 : HeatGeneration::validParams()
      16             : {
      17           4 :   InputParameters params = Component::validParams();
      18           4 :   params.addClassDescription(
      19             :       "Specify a heat source in a heat structure. This component is deprecated.");
      20           8 :   params.addRequiredParam<std::string>("hs", "Heat structure in which to apply heat source");
      21           8 :   params.addRequiredParam<std::vector<std::string>>(
      22             :       "regions", "Heat structure regions where heat generation is to be applied");
      23           8 :   params.addParam<std::string>("power", "Reactor power component");
      24           8 :   params.addParam<Real>(
      25           8 :       "power_fraction", 1., "Fraction of reactor power that goes into the heat structure [-]");
      26           8 :   params.addParam<FunctionName>("power_shape_function", "Axial power shape [-]");
      27           8 :   params.addParam<VariableName>("power_density", "Power density variable");
      28             : 
      29           4 :   return params;
      30           0 : }
      31             : 
      32           2 : HeatGeneration::HeatGeneration(const InputParameters & parameters) : Component(parameters)
      33             : {
      34           2 :   logError("'HeatGeneration' component is deprecated, use 'HeatSourceFromTotalPower' or "
      35             :            "'HeatSourceFromPowerDensity' instead.");
      36           2 : }

Generated by: LCOV version 1.14