LCOV - code coverage report
Current view: top level - src/kernels - HeatSource.C (source / functions) Hit Total Coverage
Test: idaholab/moose heat_transfer: #31405 (292dce) with base fef103 Lines: 6 7 85.7 %
Date: 2025-09-04 07:53:51 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 "HeatSource.h"
      11             : 
      12             : registerMooseObject("HeatTransferApp", HeatSource);
      13             : 
      14             : InputParameters
      15         205 : HeatSource::validParams()
      16             : {
      17         205 :   InputParameters params = BodyForce::validParams();
      18             : 
      19             :   // Override defaults and documentation, weak form is identical to BodyForce in MOOSE
      20         410 :   params.addParam<Real>("value", 1.0, "Value of heat source. Multiplied by function if present.");
      21         410 :   params.addParam<FunctionName>("function", "1", "Function describing the volumetric heat source");
      22         205 :   return params;
      23           0 : }
      24             : 
      25         110 : HeatSource::HeatSource(const InputParameters & parameters) : BodyForce(parameters) {}

Generated by: LCOV version 1.14