https://mooseframework.inl.gov
Loading...
Searching...
No Matches
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
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
42void
44{
45 _Hw[_qp] = THM::wallHeatTransferCoefficient(_Nu[_qp], _k[_qp], _D_h[_qp]);
46}
registerMooseObject("ThermalHydraulicsApp", ADConvectiveHeatTransferCoefficientMaterial)
Computes convective heat transfer coefficient from Nusselt number.
ADMaterialProperty< Real > & _Hw
Wall heat transfer coefficient.
const ADMaterialProperty< Real > & _D_h
Hydraulic diameter.
const ADMaterialProperty< Real > & _Nu
Nusselt number.
const ADMaterialProperty< Real > & _k
Thermal conductivity.
static const std::string HYDRAULIC_DIAMETER
static const std::string HEAT_TRANSFER_COEFFICIENT_WALL
static const std::string THERMAL_CONDUCTIVITY
void addRequiredParam(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)
unsigned int _qp
static InputParameters validParams()