https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
12
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
43Real
registerMooseObject("ThermalHydraulicsApp", ADHeatRateConvection1Phase)
Computes convective heat rate into a 1-phase flow channel.
const ADMaterialProperty< Real > & _Hw
Convective heat transfer coefficient, W/m^2-K.
const ADMaterialProperty< Real > & _T
Fluid temperature.
const ADVariableValue & _P_hf
Heat flux perimeter.
ADHeatRateConvection1Phase(const InputParameters &parameters)
const ADMaterialProperty< Real > & _T_wall
Wall temperature.
static InputParameters validParams()
static InputParameters validParams()
static const std::string HEAT_TRANSFER_COEFFICIENT_WALL
static const std::string TEMPERATURE
static const std::string TEMPERATURE_WALL
Definition FlowModel.h:108
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
auto raw_value(const Eigen::Map< T > &in)