https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ADOneDEnergyWallHeating.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 params.addRequiredCoupledVar("P_hf", "heat flux perimeter");
19 params.addCoupledVar("T_wall", "Wall temperature as a variable");
20 params.addRequiredParam<MaterialPropertyName>("Hw",
21 "Convective heat transfer coefficient, W/m^2-K");
22 params.addRequiredParam<MaterialPropertyName>("T", "Temperature material property");
24 "Computes a convective heat flux term for the energy equation for 1-phase flow");
25
26 return params;
27}
28
30 : ADKernel(parameters),
31 _temperature(getADMaterialProperty<Real>("T")),
32 _Hw(getADMaterialProperty<Real>("Hw")),
33 _T_wall(adCoupledValue("T_wall")),
34 _P_hf(adCoupledValue("P_hf"))
35{
36}
37
registerMooseObject("ThermalHydraulicsApp", ADOneDEnergyWallHeating)
DualNumber< Real, DNDerivativeType, true > ADReal
const ADTemplateVariableTestValue< T > & _test
static InputParameters validParams()
const ADVariableValue & _T_wall
ADOneDEnergyWallHeating(const InputParameters &parameters)
static InputParameters validParams()
const ADMaterialProperty< Real > & _Hw
const ADVariableValue & _P_hf
const ADMaterialProperty< Real > & _temperature
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)
void addCoupledVar(const std::string &name, const std::string &doc_string)
unsigned int _qp
unsigned int _i