www.mooseframework.org
Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
HeatConductionTimeDerivative Class Reference

A class for defining the time derivative of the heat equation. More...

#include <HeatConductionTimeDerivative.h>

Inheritance diagram for HeatConductionTimeDerivative:
[legend]

Public Member Functions

 HeatConductionTimeDerivative (const InputParameters &parameters)
 

Static Public Member Functions

static InputParameters validParams ()
 Contructor for Heat Equation time derivative term. More...
 

Protected Member Functions

virtual Real computeQpResidual ()
 Compute the residual of the Heat Equation time derivative. More...
 
virtual Real computeQpJacobian ()
 Compute the jacobian of the Heat Equation time derivative. More...
 

Protected Attributes

const MaterialProperty< Real > & _specific_heat
 
const MaterialProperty< Real > & _density
 

Detailed Description

A class for defining the time derivative of the heat equation.

By default this Kernel computes: \( \rho * c_p * \frac{\partial T}{\partial t}, \) where \( \rho \) and \( c_p \) are material properties with the names "density" and "specific_heat", respectively.

Definition at line 30 of file HeatConductionTimeDerivative.h.

Constructor & Destructor Documentation

◆ HeatConductionTimeDerivative()

HeatConductionTimeDerivative::HeatConductionTimeDerivative ( const InputParameters &  parameters)

Definition at line 41 of file HeatConductionTimeDerivative.C.

42  : TimeDerivative(parameters),
43  _specific_heat(getMaterialProperty<Real>("specific_heat")),
44  _density(getMaterialProperty<Real>("density_name"))
45 {
46 }

Member Function Documentation

◆ computeQpJacobian()

Real HeatConductionTimeDerivative::computeQpJacobian ( )
protectedvirtual

Compute the jacobian of the Heat Equation time derivative.

Definition at line 55 of file HeatConductionTimeDerivative.C.

56 {
57  return _specific_heat[_qp] * _density[_qp] * TimeDerivative::computeQpJacobian();
58 }

◆ computeQpResidual()

Real HeatConductionTimeDerivative::computeQpResidual ( )
protectedvirtual

Compute the residual of the Heat Equation time derivative.

Definition at line 49 of file HeatConductionTimeDerivative.C.

50 {
51  return _specific_heat[_qp] * _density[_qp] * TimeDerivative::computeQpResidual();
52 }

◆ validParams()

InputParameters HeatConductionTimeDerivative::validParams ( )
static

Contructor for Heat Equation time derivative term.

We would like to rename this input parameter to 'density' but gratuitous use of 'density' in the GlobalParams block of many many Bison simulations (for the Density kernel)prevent us from doing this.

Definition at line 17 of file HeatConductionTimeDerivative.C.

18 {
19  InputParameters params = TimeDerivative::validParams();
20  params.addClassDescription(
21  "Time derivative term $\\rho c_p \\frac{\\partial T}{\\partial t}$ of "
22  "the heat equation for quasi-constant specific heat $c_p$ and the density $\\rho$.");
23 
24  // Density may be changing with deformation, so we must integrate
25  // over current volume by setting the use_displaced_mesh flag.
26  params.set<bool>("use_displaced_mesh") = true;
27 
28  params.addParam<MaterialPropertyName>(
29  "specific_heat", "specific_heat", "Property name of the specific heat material property");
30 
36  params.addParam<MaterialPropertyName>(
37  "density_name", "density", "Property name of the density material property");
38  return params;
39 }

Member Data Documentation

◆ _density

const MaterialProperty<Real>& HeatConductionTimeDerivative::_density
protected

Definition at line 46 of file HeatConductionTimeDerivative.h.

Referenced by computeQpJacobian(), and computeQpResidual().

◆ _specific_heat

const MaterialProperty<Real>& HeatConductionTimeDerivative::_specific_heat
protected

Definition at line 45 of file HeatConductionTimeDerivative.h.

Referenced by computeQpJacobian(), and computeQpResidual().


The documentation for this class was generated from the following files:
validParams
InputParameters validParams()
HeatConductionTimeDerivative::_specific_heat
const MaterialProperty< Real > & _specific_heat
Definition: HeatConductionTimeDerivative.h:45
HeatConductionTimeDerivative::_density
const MaterialProperty< Real > & _density
Definition: HeatConductionTimeDerivative.h:46