https://mooseframework.inl.gov
ADConvectiveHeatFluxTest.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("HeatTransferTestApp", ADConvectiveHeatFluxTest);
13 
16 {
17  auto params = Material::validParams();
18  params.addRequiredCoupledVar("temperature", "Coupled temperature");
19  return params;
20 }
21 
23  : Material(parameters),
24  _temperature(adCoupledValue("temperature")),
25  _t_inf(declareADProperty<Real>("T_inf")),
26  _htc(declareADProperty<Real>("htc"))
27 {
28 }
29 
30 void
32 {
33  _t_inf[_qp] = _temperature[_qp] + 1;
34  _htc[_qp] = _temperature[_qp] / 100 + 1;
35 }
ADMaterialProperty< Real > & _htc
unsigned int _qp
static InputParameters validParams()
ADConvectiveHeatFluxTest(const InputParameters &parameters)
registerMooseObject("HeatTransferTestApp", ADConvectiveHeatFluxTest)
ADMaterialProperty< Real > & _t_inf
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
static InputParameters validParams()
const ADVariableValue & _temperature