https://mooseframework.inl.gov
ADConvectiveHeatFlux1PhaseAux.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 
12 registerMooseObject("ThermalHydraulicsApp", ADConvectiveHeatFlux1PhaseAux);
13 
16 {
18  params.addClassDescription("Computes convective heat flux for 1-phase flow.");
19  params.addRequiredCoupledVar("T_wall", "Wall temperature");
20  params.addRequiredParam<MaterialPropertyName>("T", "Material property name of fluid temperature");
21  params.addRequiredParam<MaterialPropertyName>(
22  "Hw", "Material property name of wall heat transfer coefficient");
23  params.addParam<Real>("scaling_factor", 1., "Scaling factor");
24  return params;
25 }
26 
28  : AuxKernel(parameters),
29  _T_wall(coupledValue("T_wall")),
30  _T(getADMaterialProperty<Real>("T")),
31  _Hw(getADMaterialProperty<Real>("Hw")),
32  _scaling_factor(getParam<Real>("scaling_factor"))
33 {
34 }
35 
36 Real
38 {
41 }
Computes convective heat flux for 1-phase flow.
void addParam(const std::string &name, const std::initializer_list< typename T::value_type > &value, const std::string &doc_string)
registerMooseObject("ThermalHydraulicsApp", ADConvectiveHeatFlux1PhaseAux)
auto raw_value(const Eigen::Map< T > &in)
void addRequiredParam(const std::string &name, const std::string &doc_string)
ADConvectiveHeatFlux1PhaseAux(const InputParameters &parameters)
const Real & _scaling_factor
Scaling factor.
const VariableValue & _T_wall
Wall temperature.
const ADMaterialProperty< Real > & _Hw
Wall heat transfer coefficient.
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
static InputParameters validParams()
const ADMaterialProperty< Real > & _T
Fluid temperature.