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

Note: This class is named HeatConductionKernel instead of HeatConduction to avoid a clash with the HeatConduction namespace. More...

#include <HeatConduction.h>

Inheritance diagram for HeatConductionKernel:
[legend]

Public Member Functions

 HeatConductionKernel (const InputParameters &parameters)
 

Protected Member Functions

virtual Real computeQpResidual ()
 
virtual Real computeQpJacobian ()
 

Private Attributes

const MaterialProperty< Real > & _diffusion_coefficient
 
const MaterialProperty< Real > *const _diffusion_coefficient_dT
 

Detailed Description

Note: This class is named HeatConductionKernel instead of HeatConduction to avoid a clash with the HeatConduction namespace.

It is registered as HeatConduction, which means it can be used by that name in the input file.

Definition at line 25 of file HeatConduction.h.

Constructor & Destructor Documentation

HeatConductionKernel::HeatConductionKernel ( const InputParameters &  parameters)

Definition at line 31 of file HeatConduction.C.

32  : Diffusion(parameters),
33  _diffusion_coefficient(getMaterialProperty<Real>("diffusion_coefficient")),
34  _diffusion_coefficient_dT(hasMaterialProperty<Real>("diffusion_coefficient_dT")
35  ? &getMaterialProperty<Real>("diffusion_coefficient_dT")
36  : NULL)
37 {
38 }
const MaterialProperty< Real > & _diffusion_coefficient
const MaterialProperty< Real > *const _diffusion_coefficient_dT

Member Function Documentation

Real HeatConductionKernel::computeQpJacobian ( )
protectedvirtual

Definition at line 47 of file HeatConduction.C.

48 {
49  Real jac = _diffusion_coefficient[_qp] * Diffusion::computeQpJacobian();
51  jac += (*_diffusion_coefficient_dT)[_qp] * _phi[_j][_qp] * Diffusion::computeQpResidual();
52  return jac;
53 }
const MaterialProperty< Real > & _diffusion_coefficient
const MaterialProperty< Real > *const _diffusion_coefficient_dT
Real HeatConductionKernel::computeQpResidual ( )
protectedvirtual

Definition at line 41 of file HeatConduction.C.

42 {
43  return _diffusion_coefficient[_qp] * Diffusion::computeQpResidual();
44 }
const MaterialProperty< Real > & _diffusion_coefficient

Member Data Documentation

const MaterialProperty<Real>& HeatConductionKernel::_diffusion_coefficient
private

Definition at line 36 of file HeatConduction.h.

Referenced by computeQpJacobian(), and computeQpResidual().

const MaterialProperty<Real>* const HeatConductionKernel::_diffusion_coefficient_dT
private

Definition at line 37 of file HeatConduction.h.

Referenced by computeQpJacobian().


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