LCOV - code coverage report
Current view: top level - src/auxkernels - ADConvectiveHeatFlux1PhaseAux.C (source / functions) Hit Total Coverage
Test: idaholab/moose thermal_hydraulics: #30301 (3b550b) with base 2ad78d Lines: 0 18 0.0 %
Date: 2025-07-30 13:02:48 Functions: 0 3 0.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 "ADConvectiveHeatFlux1PhaseAux.h"
      11             : 
      12             : registerMooseObject("ThermalHydraulicsApp", ADConvectiveHeatFlux1PhaseAux);
      13             : 
      14             : InputParameters
      15           0 : ADConvectiveHeatFlux1PhaseAux::validParams()
      16             : {
      17           0 :   InputParameters params = AuxKernel::validParams();
      18           0 :   params.addClassDescription("Computes convective heat flux for 1-phase flow.");
      19           0 :   params.addRequiredCoupledVar("T_wall", "Wall temperature");
      20           0 :   params.addRequiredParam<MaterialPropertyName>("T", "Material property name of fluid temperature");
      21           0 :   params.addRequiredParam<MaterialPropertyName>(
      22             :       "Hw", "Material property name of wall heat transfer coefficient");
      23           0 :   params.addParam<Real>("scaling_factor", 1., "Scaling factor");
      24           0 :   return params;
      25           0 : }
      26             : 
      27           0 : ADConvectiveHeatFlux1PhaseAux::ADConvectiveHeatFlux1PhaseAux(const InputParameters & parameters)
      28             :   : AuxKernel(parameters),
      29           0 :     _T_wall(coupledValue("T_wall")),
      30           0 :     _T(getADMaterialProperty<Real>("T")),
      31           0 :     _Hw(getADMaterialProperty<Real>("Hw")),
      32           0 :     _scaling_factor(getParam<Real>("scaling_factor"))
      33             : {
      34           0 : }
      35             : 
      36             : Real
      37           0 : ADConvectiveHeatFlux1PhaseAux::computeValue()
      38             : {
      39           0 :   return MetaPhysicL::raw_value(_Hw[_qp]) * (_T_wall[_qp] - MetaPhysicL::raw_value(_T[_qp])) *
      40           0 :          _scaling_factor;
      41             : }

Generated by: LCOV version 1.14