17 params.addClassDescription(
"This class computes the residual and Jacobian contributions for "
18 "temperature advection for a divergence free velocity field.");
19 params.addParam<MaterialPropertyName>(
"rho_name",
"rho",
"The name of the density");
20 params.addParam<MaterialPropertyName>(
"cp_name",
22 "The name of the specific heat capacity");
23 params.addRequiredCoupledVar(
"velocity",
"The velocity variable"););
25 template <ComputeStage compute_stage>
27 const InputParameters & parameters)
28 : ADKernelValue<compute_stage>(parameters),
29 _rho(getADMaterialProperty<Real>(
"rho_name")),
30 _cp(getADMaterialProperty<Real>(
"cp_name")),
31 _U(adCoupledVectorValue(
"velocity"))
35 template <ComputeStage compute_stage>
39 return _rho[_qp] * _cp[_qp] * _U[_qp] * _grad_u[_qp];
49 params.addClassDescription(
50 "This class computes the residual and Jacobian contributions for "
51 "SUPG stabilization of temperature advection for a divergence free velocity field.");
52 params.addParam<MaterialPropertyName>(
"rho_name",
"rho",
"The name of the density");
53 params.addParam<MaterialPropertyName>(
"cp_name",
55 "The name of the specific heat capacity");
56 params.addRequiredCoupledVar(
"velocity",
"The velocity variable"););
58 template <ComputeStage compute_stage>
60 const InputParameters & parameters)
61 : ADKernelSUPG<compute_stage>(parameters),
62 _rho(getADMaterialProperty<Real>(
"rho_name")),
63 _cp(getADMaterialProperty<Real>(
"cp_name")),
64 _U(adCoupledVectorValue(
"velocity"))
68 template <ComputeStage compute_stage>
72 return _rho[_qp] * _cp[_qp] * _U[_qp] * _grad_u[_qp];