19 "Time derivative term $\\rho c_p \\frac{\\partial T}{\\partial t}$ of " 20 "the heat equation with the specific heat $c_p$ and the density $\\rho$ as arguments.");
24 params.
set<
bool>(
"use_displaced_mesh") =
true;
26 params.
addParam<MaterialPropertyName>(
27 "specific_heat",
"specific_heat",
"Property name of the specific heat material property");
28 params.
addParam<MaterialPropertyName>(
29 "density",
"density",
"Property name of the density material property");
36 _specific_heat(getMaterialProperty<
Real>(
"specific_heat")),
37 _d_specific_heat_dT(getMaterialPropertyDerivative<
Real>(
"specific_heat", _var.
name())),
38 _density(getMaterialProperty<
Real>(
"density")),
39 _d_density_dT(getMaterialPropertyDerivative<
Real>(
"density", _var.
name()))
42 unsigned int nvar = _coupled_moose_vars.size();
49 for (
unsigned int i = 0; i < nvar; ++i)
51 const std::string iname = _coupled_moose_vars[i]->name();
53 _d_density_dargs[i] = &getMaterialPropertyDerivative<Real>(
"density", iname);
78 const unsigned int cvar = mapJvarToCvar(jvar);
const MaterialProperty< Real > & _d_specific_heat_dT
registerMooseObject("HeatTransferApp", SpecificHeatConductionTimeDerivative)
virtual Real computeQpResidual() override
std::vector< const MaterialProperty< Real > * > _d_density_dargs
const MaterialProperty< Real > & _d_density_dT
const MaterialProperty< Real > & _density
Density and its derivatives with respect to temperature and other coupled variables.
virtual Real computeQpJacobian() override
virtual Real computeQpJacobian() override
static InputParameters validParams()
static InputParameters validParams()
virtual Real computeQpResidual() override
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
std::vector< const MaterialProperty< Real > * > _d_specific_heat_dargs
const MaterialProperty< Real > & _specific_heat
Specific heat and its derivatives with respect to temperature and other coupled variables.
SpecificHeatConductionTimeDerivative(const InputParameters ¶meters)
A class for defining the time derivative of the heat equation.