LCOV - code coverage report
Current view: top level - src/kernels - ADOneD3EqnEnergyHeatFlux.C (source / functions) Hit Total Coverage
Test: idaholab/moose thermal_hydraulics: #30301 (3b550b) with base 2ad78d Lines: 11 12 91.7 %
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 "ADOneD3EqnEnergyHeatFlux.h"
      11             : #include "ADHeatFluxFromHeatStructureBaseUserObject.h"
      12             : 
      13             : registerMooseObject("ThermalHydraulicsApp", ADOneD3EqnEnergyHeatFlux);
      14             : 
      15             : InputParameters
      16         662 : ADOneD3EqnEnergyHeatFlux::validParams()
      17             : {
      18         662 :   InputParameters params = ADOneDHeatFluxBase::validParams();
      19         662 :   params.addClassDescription("Computes a heat flux term for the energy equation in a flow channel");
      20         662 :   return params;
      21           0 : }
      22             : 
      23         374 : ADOneD3EqnEnergyHeatFlux::ADOneD3EqnEnergyHeatFlux(const InputParameters & parameters)
      24         374 :   : ADOneDHeatFluxBase(parameters)
      25             : {
      26         374 : }
      27             : 
      28             : ADReal
      29      318580 : ADOneD3EqnEnergyHeatFlux::computeQpResidual()
      30             : {
      31      318580 :   const std::vector<ADReal> & q_wall = _q_uo.getHeatFlux(_current_elem->id());
      32      318580 :   const std::vector<ADReal> & P_hf = _q_uo.getHeatedPerimeter(_current_elem->id());
      33      318580 :   return -q_wall[_qp] * P_hf[_qp] * _test[_i][_qp];
      34             : }

Generated by: LCOV version 1.14