https://mooseframework.inl.gov
ADOneDEnergyWallHeatFlux.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", ADOneDEnergyWallHeatFlux);
13 
16 {
18  params.addRequiredParam<MaterialPropertyName>("q_wall", "Wall heat flux material property");
19  params.addRequiredCoupledVar("P_hf", "heat flux perimeter");
20  params.addClassDescription("Computes a heat flux term for the energy equation");
21  return params;
22 }
23 
25  : ADKernel(parameters),
26  _q_wall(getADMaterialProperty<Real>("q_wall")),
27  _P_hf(adCoupledValue("P_hf"))
28 {
29 }
30 
31 ADReal
33 {
34  return -_q_wall[_qp] * _P_hf[_qp] * _test[_i][_qp];
35 }
registerMooseObject("ThermalHydraulicsApp", ADOneDEnergyWallHeatFlux)
const ADTemplateVariableTestValue< T > & _test
DualNumber< Real, DNDerivativeType, true > ADReal
void addRequiredParam(const std::string &name, const std::string &doc_string)
unsigned int _i
static InputParameters validParams()
void addRequiredCoupledVar(const std::string &name, const std::string &doc_string)
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void addClassDescription(const std::string &doc_string)
ADOneDEnergyWallHeatFlux(const InputParameters &parameters)
const ADVariableValue & _P_hf
Heat flux perimeter.
const ADMaterialProperty< Real > & _q_wall
Heat flux.
unsigned int _qp