LCOV - code coverage report
Current view: top level - src/kernels - ADOneDEnergyWallHeatFlux.C (source / functions) Hit Total Coverage
Test: idaholab/moose thermal_hydraulics: #30301 (3b550b) with base 2ad78d Lines: 12 13 92.3 %
Date: 2025-07-30 13:02:48 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 "ADOneDEnergyWallHeatFlux.h"
      11             : 
      12             : registerMooseObject("ThermalHydraulicsApp", ADOneDEnergyWallHeatFlux);
      13             : 
      14             : InputParameters
      15         234 : ADOneDEnergyWallHeatFlux::validParams()
      16             : {
      17         234 :   InputParameters params = ADKernel::validParams();
      18         468 :   params.addRequiredParam<MaterialPropertyName>("q_wall", "Wall heat flux material property");
      19         468 :   params.addRequiredCoupledVar("P_hf", "heat flux perimeter");
      20         234 :   params.addClassDescription("Computes a heat flux term for the energy equation");
      21         234 :   return params;
      22           0 : }
      23             : 
      24         126 : ADOneDEnergyWallHeatFlux::ADOneDEnergyWallHeatFlux(const InputParameters & parameters)
      25             :   : ADKernel(parameters),
      26         126 :     _q_wall(getADMaterialProperty<Real>("q_wall")),
      27         252 :     _P_hf(adCoupledValue("P_hf"))
      28             : {
      29         126 : }
      30             : 
      31             : ADReal
      32        7916 : ADOneDEnergyWallHeatFlux::computeQpResidual()
      33             : {
      34        7916 :   return -_q_wall[_qp] * _P_hf[_qp] * _test[_i][_qp];
      35             : }

Generated by: LCOV version 1.14