www.mooseframework.org
HomogenizedHeatConduction.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<Kernel>();
14  params.addParam<MaterialPropertyName>(
15  "diffusion_coefficient",
16  "thermal_conductivity",
17  "The diffusion coefficient for the temperature gradient (Default: thermal_conductivity)");
18  params.addRequiredRangeCheckedParam<unsigned int>(
19  "component",
20  "component < 3",
21  "An integer corresponding to the direction the variable this "
22  "kernel acts in. (0 for x, 1 for y, 2 for z)");
23  return params;
24 }
25 
26 HomogenizedHeatConduction::HomogenizedHeatConduction(const InputParameters & parameters)
27  : Kernel(parameters),
28  _diffusion_coefficient(getMaterialProperty<Real>("diffusion_coefficient")),
29  _component(getParam<unsigned int>("component"))
30 {
31 }
32 
33 Real
35 {
36  // Compute positive value since we are computing a residual not a rhs
37  return _diffusion_coefficient[_qp] * _grad_test[_i][_qp](_component);
38 }
InputParameters validParams< HomogenizedHeatConduction >()
HomogenizedHeatConduction(const InputParameters &parameters)
const MaterialProperty< Real > & _diffusion_coefficient