https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ConvectiveHeatTransferCoefficientMaterial.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 "Numerics.h"
12
14
17{
19 params.addRequiredParam<MaterialPropertyName>("Nu", "Nusselt number");
20 params.addRequiredParam<MaterialPropertyName>("D_h", "Hydraulic diameter");
21 params.addRequiredParam<MaterialPropertyName>("k", "Thermal conductivity");
22 params.addClassDescription("Computes convective heat transfer coefficient from Nusselt number");
23 return params;
24}
25
27 const InputParameters & parameters)
28 : Material(parameters),
29 _Hw(declareProperty<Real>("Hw")),
30 _Nu(getMaterialProperty<Real>("Nu")),
31 _D_h(getMaterialProperty<Real>("D_h")),
32 _k(getMaterialProperty<Real>("k"))
33{
34}
35
36void
38{
39 _Hw[_qp] = THM::wallHeatTransferCoefficient(_Nu[_qp], _k[_qp], _D_h[_qp]);
40}
registerMooseObject("ThermalHydraulicsApp", ConvectiveHeatTransferCoefficientMaterial)
Computes convective heat transfer coefficient from Nusselt number.
const MaterialProperty< Real > & _Nu
Nusselt number.
const MaterialProperty< Real > & _D_h
Hydraulic diameter.
ConvectiveHeatTransferCoefficientMaterial(const InputParameters &parameters)
const MaterialProperty< Real > & _k
Thermal conductivity.
MaterialProperty< Real > & _Hw
Wall heat transfer coefficient.
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
unsigned int _qp
static InputParameters validParams()