11 #include "MooseMesh.h"
21 params.addClassDescription(
22 "Computes residual/Jacobian contribution for $(k \\nabla T, \\nabla \\psi)$ term.");
23 params.addParam<MaterialPropertyName>(
24 "diffusion_coefficient",
25 "thermal_conductivity",
26 "Property name of the diffusivity (Default: thermal_conductivity)");
27 params.addParam<MaterialPropertyName>(
28 "diffusion_coefficient_dT",
29 "thermal_conductivity_dT",
30 "Property name of the derivative of the diffusivity with respect "
31 "to the variable (Default: thermal_conductivity_dT)");
32 params.set<
bool>(
"use_displaced_mesh") =
true;
37 : Diffusion(parameters),
38 _diffusion_coefficient(getMaterialProperty<Real>(
"diffusion_coefficient")),
39 _diffusion_coefficient_dT(hasMaterialProperty<Real>(
"diffusion_coefficient_dT")
40 ? &getMaterialProperty<Real>(
"diffusion_coefficient_dT")
56 jac += (*_diffusion_coefficient_dT)[_qp] * _phi[_j][_qp] * Diffusion::computeQpResidual();