Simple material with constant properties.
More...
#include <AnisoHeatConductionMaterial.h>
Simple material with constant properties.
Definition at line 20 of file AnisoHeatConductionMaterial.h.
◆ AnisoHeatConductionMaterial()
AnisoHeatConductionMaterial::AnisoHeatConductionMaterial |
( |
const InputParameters & |
parameters | ) |
|
Definition at line 44 of file AnisoHeatConductionMaterial.C.
45 : Material(parameters),
51 isParamValid(
"thermal_conductivity_x") ? getParam<Real>(
"thermal_conductivity_x") : -1),
53 isParamValid(
"thermal_conductivity_y") ? getParam<Real>(
"thermal_conductivity_y") : -1),
55 isParamValid(
"thermal_conductivity_z") ? getParam<Real>(
"thermal_conductivity_z") : -1),
58 ? &getPostprocessorValue(
"thermal_conductivity_x_pp")
61 ? &getPostprocessorValue(
"thermal_conductivity_y_pp")
64 ? &getPostprocessorValue(
"thermal_conductivity_z_pp")
67 _my_specific_heat(isParamValid(
"specific_heat") ? getParam<Real>(
"specific_heat") : 0),
72 isParamValid(
"thermal_conductivity_y_pp")
73 ? &declareProperty<Real>(
"thermal_conductivity_y")
78 isParamValid(
"thermal_conductivity_z_pp")
79 ? &declareProperty<Real>(
"thermal_conductivity_z")
86 getParam<FunctionName>(
"specific_heat_temperature_function") !=
""
87 ? &getFunction(
"specific_heat_temperature_function")
94 if (!k_x || (_subproblem.mesh().dimension() > 1 && !k_y) ||
95 (_subproblem.mesh().dimension() > 2 && !k_z))
97 mooseError(
"Incomplete set of orthotropic thermal conductivity parameters");
101 mooseError(
"Must couple with temperature if using specific heat function");
105 mooseError(
"Cannot define both specific heat and specific heat temperature function");
111 if (k_x || k_y || k_z)
113 mooseError(
"Cannot define thermal conductivity value and Postprocessor");
◆ computeProperties()
void AnisoHeatConductionMaterial::computeProperties |
( |
| ) |
|
|
protectedvirtual |
Definition at line 118 of file AnisoHeatConductionMaterial.C.
120 for (
unsigned int qp(0); qp < _qrule->n_points(); ++qp)
122 (*_thermal_conductivity_x)[qp] =
124 (*_thermal_conductivity_x_dT)[qp] = 0;
127 (*_thermal_conductivity_y)[qp] =
129 (*_thermal_conductivity_y_dT)[qp] = 0;
133 (*_thermal_conductivity_z)[qp] =
135 (*_thermal_conductivity_z_dT)[qp] = 0;
◆ validParams()
InputParameters AnisoHeatConductionMaterial::validParams |
( |
| ) |
|
|
static |
Definition at line 21 of file AnisoHeatConductionMaterial.C.
25 params.addCoupledVar(
"temp",
"Coupled Temperature");
27 params.addParam<Real>(
"thermal_conductivity_x",
"The thermal conductivity in the x direction");
28 params.addParam<Real>(
"thermal_conductivity_y",
"The thermal conductivity in the y direction");
29 params.addParam<Real>(
"thermal_conductivity_z",
"The thermal conductivity in the z direction");
30 params.addParam<PostprocessorName>(
"thermal_conductivity_x_pp",
31 "The thermal conductivity PP name in the x direction");
32 params.addParam<PostprocessorName>(
"thermal_conductivity_y_pp",
33 "The thermal conductivity PP name in the y direction");
34 params.addParam<PostprocessorName>(
"thermal_conductivity_z_pp",
35 "The thermal conductivity PP name in the z direction");
37 params.addParam<Real>(
"specific_heat",
"The specific heat value");
38 params.addParam<FunctionName>(
39 "specific_heat_temperature_function",
"",
"Specific heat as a function of temperature.");
◆ _has_temp
const bool AnisoHeatConductionMaterial::_has_temp |
|
protected |
◆ _my_specific_heat
const Real AnisoHeatConductionMaterial::_my_specific_heat |
|
protected |
◆ _my_thermal_conductivity_x
const Real AnisoHeatConductionMaterial::_my_thermal_conductivity_x |
|
protected |
◆ _my_thermal_conductivity_y
const Real AnisoHeatConductionMaterial::_my_thermal_conductivity_y |
|
protected |
◆ _my_thermal_conductivity_z
const Real AnisoHeatConductionMaterial::_my_thermal_conductivity_z |
|
protected |
◆ _specific_heat
MaterialProperty<Real>& AnisoHeatConductionMaterial::_specific_heat |
|
protected |
◆ _specific_heat_temperature_function
const Function* const AnisoHeatConductionMaterial::_specific_heat_temperature_function |
|
protected |
◆ _temperature
const VariableValue& AnisoHeatConductionMaterial::_temperature |
|
protected |
◆ _thermal_conductivity_x
MaterialProperty<Real>* const AnisoHeatConductionMaterial::_thermal_conductivity_x |
|
protected |
◆ _thermal_conductivity_x_dT
MaterialProperty<Real>* const AnisoHeatConductionMaterial::_thermal_conductivity_x_dT |
|
protected |
◆ _thermal_conductivity_x_pp
const PostprocessorValue* const AnisoHeatConductionMaterial::_thermal_conductivity_x_pp |
|
protected |
◆ _thermal_conductivity_y
MaterialProperty<Real>* const AnisoHeatConductionMaterial::_thermal_conductivity_y |
|
protected |
◆ _thermal_conductivity_y_dT
MaterialProperty<Real>* const AnisoHeatConductionMaterial::_thermal_conductivity_y_dT |
|
protected |
◆ _thermal_conductivity_y_pp
const PostprocessorValue* const AnisoHeatConductionMaterial::_thermal_conductivity_y_pp |
|
protected |
◆ _thermal_conductivity_z
MaterialProperty<Real>* const AnisoHeatConductionMaterial::_thermal_conductivity_z |
|
protected |
◆ _thermal_conductivity_z_dT
MaterialProperty<Real>* const AnisoHeatConductionMaterial::_thermal_conductivity_z_dT |
|
protected |
◆ _thermal_conductivity_z_pp
const PostprocessorValue* const AnisoHeatConductionMaterial::_thermal_conductivity_z_pp |
|
protected |
The documentation for this class was generated from the following files: