LCOV - code coverage report
Current view: top level - src/kernels - ADOneD3EqnEnergyHeatFlux.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 "ADOneD3EqnEnergyHeatFlux.h"
      11             : #include "ADHeatFluxFromHeatStructureBaseUserObject.h"
      12             : 
      13             : registerMooseObject("ThermalHydraulicsApp", ADOneD3EqnEnergyHeatFlux);
      14             : 
      15             : InputParameters
      16         320 : ADOneD3EqnEnergyHeatFlux::validParams()
      17             : {
      18         320 :   InputParameters params = ADOneDHeatFluxBase::validParams();
      19         320 :   params.addClassDescription("Computes a heat flux term for the energy equation in a flow channel");
      20         320 :   return params;
      21           0 : }
      22             : 
      23         173 : ADOneD3EqnEnergyHeatFlux::ADOneD3EqnEnergyHeatFlux(const InputParameters & parameters)
      24         173 :   : ADOneDHeatFluxBase(parameters)
      25             : {
      26         173 : }
      27             : 
      28             : ADReal
      29      110426 : ADOneD3EqnEnergyHeatFlux::computeQpResidual()
      30             : {
      31      110426 :   const std::vector<ADReal> & q_wall = _q_uo.getHeatFlux(_current_elem->id());
      32      110426 :   const std::vector<ADReal> & P_hf = _q_uo.getHeatedPerimeter(_current_elem->id());
      33      110426 :   return -q_wall[_qp] * P_hf[_qp] * _test[_i][_qp];
      34             : }

Generated by: LCOV version 1.14