www.mooseframework.org
HomogenizedHeatConduction.C
Go to the documentation of this file.
1 //* This file is part of the MOOSE framework
2 //* https://www.mooseframework.org
3 //*
4 //* All rights reserved, see COPYRIGHT for full restrictions
5 //* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6 //*
7 //* Licensed under LGPL 2.1, please see LICENSE for details
8 //* https://www.gnu.org/licenses/lgpl-2.1.html
9 
11 
13 
15 
16 InputParameters
18 {
19  InputParameters params = Kernel::validParams();
20  params.addClassDescription(
21  "Kernel for asymptotic expansion homogenization for thermal conductivity");
22  params.addParam<MaterialPropertyName>(
23  "diffusion_coefficient",
24  "thermal_conductivity",
25  "The diffusion coefficient for the temperature gradient (Default: thermal_conductivity)");
26  params.addRequiredRangeCheckedParam<unsigned int>(
27  "component",
28  "component < 3",
29  "An integer corresponding to the direction the variable this "
30  "kernel acts in. (0 for x, 1 for y, 2 for z)");
31  return params;
32 }
33 
34 HomogenizedHeatConduction::HomogenizedHeatConduction(const InputParameters & parameters)
35  : Kernel(parameters),
36  _diffusion_coefficient(getMaterialProperty<Real>("diffusion_coefficient")),
37  _component(getParam<unsigned int>("component"))
38 {
39 }
40 
41 Real
43 {
44  // Compute positive value since we are computing a residual not a rhs
45  return _diffusion_coefficient[_qp] * _grad_test[_i][_qp](_component);
46 }
HomogenizedHeatConduction.h
registerMooseObject
registerMooseObject("HeatConductionApp", HomogenizedHeatConduction)
HomogenizedHeatConduction::_component
const unsigned int _component
Definition: HomogenizedHeatConduction.h:30
HomogenizedHeatConduction::computeQpResidual
virtual Real computeQpResidual()
Definition: HomogenizedHeatConduction.C:42
validParams
InputParameters validParams()
HomogenizedHeatConduction::_diffusion_coefficient
const MaterialProperty< Real > & _diffusion_coefficient
Definition: HomogenizedHeatConduction.h:29
HomogenizedHeatConduction::HomogenizedHeatConduction
HomogenizedHeatConduction(const InputParameters &parameters)
Definition: HomogenizedHeatConduction.C:34
defineLegacyParams
defineLegacyParams(HomogenizedHeatConduction)
HomogenizedHeatConduction::validParams
static InputParameters validParams()
Definition: HomogenizedHeatConduction.C:17
HomogenizedHeatConduction
Homogenization of Temperature-Dependent Thermal Conductivity in Composite Materials,...
Definition: HomogenizedHeatConduction.h:19