https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ADConvectionHeatFluxMaterial.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
13
16{
18
19 params.addRequiredParam<MaterialPropertyName>("q_wall", "Wall heat flux material property");
20 params.addRequiredParam<MaterialPropertyName>("T", "Fluid phase temperature material property");
21 params.addRequiredCoupledVar("T_wall", "Wall temperature");
22 params.addRequiredParam<MaterialPropertyName>(
23 "htc_wall", "Fluid phase wall heat transfer coefficient material property");
24 params.addRequiredParam<MaterialPropertyName>(
25 "kappa", "Fluid phase wall contact fraction material property");
26
27 params.addClassDescription("Computes heat flux from convection for a given fluid phase.");
28
29 return params;
30}
31
33 : Material(parameters),
34
35 _q_wall(declareADProperty<Real>(getParam<MaterialPropertyName>("q_wall"))),
36 _T(getADMaterialProperty<Real>("T")),
37 _T_wall(adCoupledValue("T_wall")),
38 _htc_wall(getADMaterialProperty<Real>("htc_wall")),
39 _kappa(getADMaterialProperty<Real>("kappa"))
40{
41}
42
43void
registerMooseObject("ThermalHydraulicsApp", ADConvectionHeatFluxMaterial)
Computes heat flux from convection for a given fluid phase.
const ADMaterialProperty< Real > & _T
Fluid temperature for phase.
ADConvectionHeatFluxMaterial(const InputParameters &parameters)
ADMaterialProperty< Real > & _q_wall
Wall heat flux.
const ADVariableValue & _T_wall
Wall temperature.
const ADMaterialProperty< Real > & _kappa
Wall contact fraction for phase.
const ADMaterialProperty< Real > & _htc_wall
Wall heat transfer coefficient for phase.
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
unsigned int _qp
static InputParameters validParams()