LCOV - code coverage report
Current view: top level - src/materials - ConvectiveHeatTransferCoefficientMaterial.C (source / functions) Hit Total Coverage
Test: idaholab/moose thermal_hydraulics: #30301 (3b550b) with base 2ad78d Lines: 17 18 94.4 %
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 "ConvectiveHeatTransferCoefficientMaterial.h"
      11             : #include "Numerics.h"
      12             : 
      13             : registerMooseObject("ThermalHydraulicsApp", ConvectiveHeatTransferCoefficientMaterial);
      14             : 
      15             : InputParameters
      16          85 : ConvectiveHeatTransferCoefficientMaterial::validParams()
      17             : {
      18          85 :   InputParameters params = Material::validParams();
      19         170 :   params.addRequiredParam<MaterialPropertyName>("Nu", "Nusselt number");
      20         170 :   params.addRequiredParam<MaterialPropertyName>("D_h", "Hydraulic diameter");
      21         170 :   params.addRequiredParam<MaterialPropertyName>("k", "Thermal conductivity");
      22          85 :   params.addClassDescription("Computes convective heat transfer coefficient from Nusselt number");
      23          85 :   return params;
      24           0 : }
      25             : 
      26          66 : ConvectiveHeatTransferCoefficientMaterial::ConvectiveHeatTransferCoefficientMaterial(
      27          66 :     const InputParameters & parameters)
      28             :   : Material(parameters),
      29          66 :     _Hw(declareProperty<Real>("Hw")),
      30         132 :     _Nu(getMaterialProperty<Real>("Nu")),
      31         132 :     _D_h(getMaterialProperty<Real>("D_h")),
      32         198 :     _k(getMaterialProperty<Real>("k"))
      33             : {
      34          66 : }
      35             : 
      36             : void
      37          54 : ConvectiveHeatTransferCoefficientMaterial::computeQpProperties()
      38             : {
      39          54 :   _Hw[_qp] = THM::wallHeatTransferCoefficient(_Nu[_qp], _k[_qp], _D_h[_qp]);
      40          54 : }

Generated by: LCOV version 1.14