https://mooseframework.inl.gov
ADHeatRateConvection1Phase.C
Go to the documentation of this file.
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 
11 #include "FlowModelSinglePhase.h"
12 
13 registerMooseObject("ThermalHydraulicsApp", ADHeatRateConvection1Phase);
14 
17 {
19 
20  params.addParam<MaterialPropertyName>(
21  "T_wall", FlowModelSinglePhase::TEMPERATURE_WALL, "Wall temperature");
22  params.addParam<MaterialPropertyName>(
23  "T", FlowModelSinglePhase::TEMPERATURE, "Temperature of the fluid on the channel side");
24  params.addParam<MaterialPropertyName>(
25  "Hw", FlowModelSinglePhase::HEAT_TRANSFER_COEFFICIENT_WALL, "Wall heat transfer coefficient");
26  params.addRequiredCoupledVar("P_hf", "heat flux perimeter");
27 
28  params.addClassDescription("Computes convective heat rate into a 1-phase flow channel");
29 
30  return params;
31 }
32 
34  : ElementIntegralPostprocessor(parameters),
35 
36  _T_wall(getADMaterialProperty<Real>("T_wall")),
37  _T(getADMaterialProperty<Real>("T")),
38  _Hw(getADMaterialProperty<Real>("Hw")),
39  _P_hf(adCoupledValue("P_hf"))
40 {
41 }
42 
43 Real
45 {
48 }
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
static const std::string TEMPERATURE
static InputParameters validParams()
Computes convective heat rate into a 1-phase flow channel.
auto raw_value(const Eigen::Map< T > &in)
static const std::string HEAT_TRANSFER_COEFFICIENT_WALL
const ADMaterialProperty< Real > & _T_wall
Wall temperature.
ADHeatRateConvection1Phase(const InputParameters &parameters)
static InputParameters validParams()
static const std::string TEMPERATURE_WALL
Definition: FlowModel.h:108
registerMooseObject("ThermalHydraulicsApp", ADHeatRateConvection1Phase)
const ADMaterialProperty< Real > & _T
Fluid temperature.
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
const ADVariableValue & _P_hf
Heat flux perimeter.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
const ADMaterialProperty< Real > & _Hw
Convective heat transfer coefficient, W/m^2-K.