https://mooseframework.inl.gov
ADConvectiveHeatTransferCoefficientMaterial.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 #include "Numerics.h"
13 
15 
18 {
20  params.addParam<MaterialPropertyName>("Hw",
22  "Heat transfer coefficient material property");
23  params.addRequiredParam<MaterialPropertyName>("Nu", "Nusselt number");
24  params.addParam<MaterialPropertyName>(
25  "D_h", FlowModelSinglePhase::HYDRAULIC_DIAMETER, "Hydraulic diameter");
26  params.addParam<MaterialPropertyName>(
27  "k", FlowModelSinglePhase::THERMAL_CONDUCTIVITY, "Thermal conductivity");
28  params.addClassDescription("Computes convective heat transfer coefficient from Nusselt number");
29  return params;
30 }
31 
33  const InputParameters & parameters)
34  : Material(parameters),
35  _Hw(declareADProperty<Real>("Hw")),
36  _Nu(getADMaterialProperty<Real>("Nu")),
37  _D_h(getADMaterialProperty<Real>("D_h")),
38  _k(getADMaterialProperty<Real>("k"))
39 {
40 }
41 
42 void
44 {
46 }
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
registerMooseObject("ThermalHydraulicsApp", ADConvectiveHeatTransferCoefficientMaterial)
ADMaterialProperty< Real > & _Hw
Wall heat transfer coefficient.
static const std::string THERMAL_CONDUCTIVITY
static const std::string HEAT_TRANSFER_COEFFICIENT_WALL
void addRequiredParam(const std::string &name, const std::string &doc_string)
unsigned int _qp
static InputParameters validParams()
auto wallHeatTransferCoefficient(const T1 &Nu, const T2 &k, const T3 &D_h)
Compute wall heat transfer coefficient.
const ADMaterialProperty< Real > & _D_h
Hydraulic diameter.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const ADMaterialProperty< Real > & _k
Thermal conductivity.
static const std::string HYDRAULIC_DIAMETER
void addClassDescription(const std::string &doc_string)
Computes convective heat transfer coefficient from Nusselt number.
const ADMaterialProperty< Real > & _Nu
Nusselt number.