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);
registerMooseObject("HeatTransferApp", SpecificHeatConductionTimeDerivative)
static InputParameters validParams()
const std::string & name() const
A class for defining the time derivative of the heat equation.
std::vector< const MaterialProperty< Real > * > _d_density_dargs
virtual Real computeQpOffDiagJacobian(unsigned int jvar) override
const MaterialProperty< Real > & _density
Density and its derivatives with respect to temperature and other coupled variables.
std::vector< const MaterialProperty< Real > * > _d_specific_heat_dargs
virtual Real computeQpJacobian() override
const MaterialProperty< Real > & _d_specific_heat_dT
virtual Real computeQpResidual() override
SpecificHeatConductionTimeDerivative(const InputParameters ¶meters)
static InputParameters validParams()
const MaterialProperty< Real > & _specific_heat
Specific heat and its derivatives with respect to temperature and other coupled variables.
const MaterialProperty< Real > & _d_density_dT
virtual Real computeQpResidual() override
virtual Real computeQpJacobian() override