www.mooseframework.org
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)
 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 28 of file HeatConductionTimeDerivative.h.

Constructor & Destructor Documentation

HeatConductionTimeDerivative::HeatConductionTimeDerivative ( const InputParameters &  parameters)

Contructor for Heat Equation time derivative term.

Definition at line 35 of file HeatConductionTimeDerivative.C.

36  : TimeDerivative(parameters),
37  _specific_heat(getMaterialProperty<Real>("specific_heat")),
38  _density(getMaterialProperty<Real>("density_name"))
39 {
40 }
const MaterialProperty< Real > & _specific_heat
const MaterialProperty< Real > & _density

Member Function Documentation

Real HeatConductionTimeDerivative::computeQpJacobian ( )
protectedvirtual

Compute the jacobian of the Heat Equation time derivative.

Definition at line 49 of file HeatConductionTimeDerivative.C.

50 {
51  return _specific_heat[_qp] * _density[_qp] * TimeDerivative::computeQpJacobian();
52 }
const MaterialProperty< Real > & _specific_heat
const MaterialProperty< Real > & _density
Real HeatConductionTimeDerivative::computeQpResidual ( )
protectedvirtual

Compute the residual of the Heat Equation time derivative.

Definition at line 43 of file HeatConductionTimeDerivative.C.

44 {
45  return _specific_heat[_qp] * _density[_qp] * TimeDerivative::computeQpResidual();
46 }
const MaterialProperty< Real > & _specific_heat
const MaterialProperty< Real > & _density

Member Data Documentation

const MaterialProperty<Real>& HeatConductionTimeDerivative::_density
protected

Definition at line 42 of file HeatConductionTimeDerivative.h.

Referenced by computeQpJacobian(), and computeQpResidual().

const MaterialProperty<Real>& HeatConductionTimeDerivative::_specific_heat
protected

Definition at line 41 of file HeatConductionTimeDerivative.h.

Referenced by computeQpJacobian(), and computeQpResidual().


The documentation for this class was generated from the following files: