11 #include "SubProblem.h"
12 #include "MooseMesh.h"
22 params.addClassDescription(
23 "Postprocessor for asymptotic expansion homogenization for thermal conductivity");
24 params.addRequiredCoupledVar(
"temp_x",
"solution in x");
25 params.addCoupledVar(
"temp_y",
"solution in y");
26 params.addCoupledVar(
"temp_z",
"solution in z");
27 params.addRequiredRangeCheckedParam<
unsigned int>(
30 "An integer corresponding to the direction this pp acts in (0 for x, 1 for y, 2 for z)");
31 params.addParam<Real>(
"scale_factor", 1,
"Scale factor");
32 params.addParam<MaterialPropertyName>(
33 "diffusion_coefficient",
34 "thermal_conductivity",
35 "Property name of the diffusivity (Default: thermal_conductivity)");
40 : ElementAverageValue(parameters),
41 _grad_temp_x(coupledGradient(
"temp_x")),
42 _grad_temp_y(_subproblem.mesh().dimension() >= 2 ? coupledGradient(
"temp_y") : _grad_zero),
43 _grad_temp_z(_subproblem.mesh().dimension() == 3 ? coupledGradient(
"temp_z") : _grad_zero),
44 _component(getParam<unsigned int>(
"component")),
45 _diffusion_coefficient(getMaterialProperty<Real>(
"diffusion_coefficient")),
46 _scale(getParam<Real>(
"scale_factor"))
61 _volume += _current_elem_volume;
77 dynamic_cast<const HomogenizedThermalConductivity &>(y);
103 mooseError(
"Internal error.");