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 28 of file HeatConduction.h.

Constructor & Destructor Documentation

◆ HeatConductionKernel()

HeatConductionKernel::HeatConductionKernel ( const InputParameters &  parameters)

Definition at line 35 of file HeatConduction.C.

36  : Diffusion(parameters),
37  _diffusion_coefficient(getMaterialProperty<Real>("diffusion_coefficient")),
38  _diffusion_coefficient_dT(hasMaterialProperty<Real>("diffusion_coefficient_dT")
39  ? &getMaterialProperty<Real>("diffusion_coefficient_dT")
40  : NULL)
41 {
42 }
const MaterialProperty< Real > & _diffusion_coefficient
const MaterialProperty< Real > *const _diffusion_coefficient_dT

Member Function Documentation

◆ computeQpJacobian()

Real HeatConductionKernel::computeQpJacobian ( )
protectedvirtual

Definition at line 51 of file HeatConduction.C.

52 {
53  Real jac = _diffusion_coefficient[_qp] * Diffusion::computeQpJacobian();
55  jac += (*_diffusion_coefficient_dT)[_qp] * _phi[_j][_qp] * Diffusion::computeQpResidual();
56  return jac;
57 }
const MaterialProperty< Real > & _diffusion_coefficient
const MaterialProperty< Real > *const _diffusion_coefficient_dT

◆ computeQpResidual()

Real HeatConductionKernel::computeQpResidual ( )
protectedvirtual

Definition at line 45 of file HeatConduction.C.

46 {
47  return _diffusion_coefficient[_qp] * Diffusion::computeQpResidual();
48 }
const MaterialProperty< Real > & _diffusion_coefficient

Member Data Documentation

◆ _diffusion_coefficient

const MaterialProperty<Real>& HeatConductionKernel::_diffusion_coefficient
private

Definition at line 39 of file HeatConduction.h.

Referenced by computeQpJacobian(), and computeQpResidual().

◆ _diffusion_coefficient_dT

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

Definition at line 40 of file HeatConduction.h.

Referenced by computeQpJacobian().


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