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

Generated by: LCOV version 1.14