LCOV - code coverage report
Current view: top level - src/postprocessors - HeatRateConvection1Phase.C (source / functions) Hit Total Coverage
Test: idaholab/moose thermal_hydraulics: #30301 (3b550b) with base 2ad78d Lines: 0 17 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 "HeatRateConvection1Phase.h"
      11             : #include "FlowModelSinglePhase.h"
      12             : 
      13             : registerMooseObject("ThermalHydraulicsApp", HeatRateConvection1Phase);
      14             : 
      15             : InputParameters
      16           0 : HeatRateConvection1Phase::validParams()
      17             : {
      18           0 :   InputParameters params = ElementIntegralPostprocessor::validParams();
      19             : 
      20           0 :   params.addParam<MaterialPropertyName>(
      21             :       "T_wall", FlowModelSinglePhase::TEMPERATURE_WALL, "Wall temperature");
      22           0 :   params.addParam<MaterialPropertyName>(
      23             :       "T", FlowModelSinglePhase::TEMPERATURE, "Temperature of the fluid on the channel side");
      24           0 :   params.addParam<MaterialPropertyName>(
      25             :       "Hw", FlowModelSinglePhase::HEAT_TRANSFER_COEFFICIENT_WALL, "Wall heat transfer coefficient");
      26           0 :   params.addRequiredCoupledVar("P_hf", "heat flux perimeter");
      27             : 
      28           0 :   params.addClassDescription("Computes convective heat rate into a 1-phase flow channel");
      29             : 
      30           0 :   return params;
      31           0 : }
      32             : 
      33           0 : HeatRateConvection1Phase::HeatRateConvection1Phase(const InputParameters & parameters)
      34             :   : ElementIntegralPostprocessor(parameters),
      35             : 
      36           0 :     _T_wall(getMaterialProperty<Real>("T_wall")),
      37           0 :     _T(getMaterialProperty<Real>("T")),
      38           0 :     _Hw(getMaterialProperty<Real>("Hw")),
      39           0 :     _P_hf(coupledValue("P_hf"))
      40             : {
      41           0 : }
      42             : 
      43             : Real
      44           0 : HeatRateConvection1Phase::computeQpIntegral()
      45             : {
      46           0 :   return -_Hw[_qp] * _P_hf[_qp] * (_T[_qp] - _T_wall[_qp]);
      47             : }

Generated by: LCOV version 1.14