www.mooseframework.org
ConsistentSpecificHeatTimeDerivative.C
Go to the documentation of this file.
1 /****************************************************************/
2 /* MOOSE - Multiphysics Object Oriented Simulation Environment */
3 /* */
4 /* All contents are licensed under LGPL V2.1 */
5 /* See LICENSE for full restrictions */
6 /****************************************************************/
8 
9 template <>
10 InputParameters
12 {
13  InputParameters params = validParams<SpecificHeatConductionTimeDerivative>();
14  params.addClassDescription(
15  "Time derivative term $(a1 + a2 + a3) \\frac{\\partial T}{\\partial t}$ with"
16  "$a1 = c_p \\rho$"
17  "$a2 = c_p T \\frac{\\partial \\rho}{\\partial T}$"
18  "$a3 = \\rho T \\frac{\\partial c_p}{\\partial T}$"
19  " of the heat equation with the specific heat capacity $c_p$ and density $\\rho$ as "
20  "arguments.");
21  return params;
22 }
23 
25  const InputParameters & parameters)
27 {
28 }
29 
30 Real
32 {
33  return (_specific_heat[_qp] * _density[_qp] + _d_density_dT[_qp] * _specific_heat[_qp] * _u[_qp] +
34  _d_specific_heat_dT[_qp] * _density[_qp] * _u[_qp]) *
35  TimeDerivative::computeQpResidual();
36 }
const MaterialProperty< Real > & _density
Density and its derivatives with respect to temperature and other coupled variables.
InputParameters validParams< ConsistentSpecificHeatTimeDerivative >()
ConsistentSpecificHeatTimeDerivative(const InputParameters &parameters)
InputParameters validParams< SpecificHeatConductionTimeDerivative >()
const MaterialProperty< Real > & _specific_heat
Specific heat and its derivatives with respect to temperature and other coupled variables.
A class for defining the time derivative of the heat equation.