Simple material with constant properties.
More...
#include <HeatConductionMaterial.h>
Simple material with constant properties.
Definition at line 24 of file HeatConductionMaterial.h.
◆ HeatConductionMaterial()
HeatConductionMaterial::HeatConductionMaterial |
( |
const InputParameters & |
parameters | ) |
|
Definition at line 39 of file HeatConductionMaterial.C.
40 : Material(parameters),
45 isParamValid(
"thermal_conductivity") ? getParam<Real>(
"thermal_conductivity") : 0),
46 _my_specific_heat(isParamValid(
"specific_heat") ? getParam<Real>(
"specific_heat") : 0),
51 getParam<FunctionName>(
"thermal_conductivity_temperature_function") !=
""
52 ? &getFunction(
"thermal_conductivity_temperature_function")
57 getParam<FunctionName>(
"specific_heat_temperature_function") !=
""
58 ? &getFunction(
"specific_heat_temperature_function")
63 mooseError(
"Must couple with temperature if using thermal conductivity function");
68 "Cannot define both thermal conductivity and thermal conductivity temperature function");
72 mooseError(
"Must couple with temperature if using specific heat function");
76 mooseError(
"Cannot define both specific heat and specific heat temperature function");
◆ computeProperties()
void HeatConductionMaterial::computeProperties |
( |
| ) |
|
|
protectedvirtual |
Definition at line 81 of file HeatConductionMaterial.C.
83 for (
unsigned int qp(0); qp < _qrule->n_points(); ++qp)
85 Real qp_temperature = 0;
91 std::stringstream msg;
92 msg <<
"WARNING: In HeatConductionMaterial: negative temperature!\n"
93 <<
"\tResetting to zero.\n"
94 <<
"\t_qp: " << qp <<
"\n"
96 <<
"\telem: " << _current_elem->id() <<
"\n"
97 <<
"\tproc: " << processor_id() <<
"\n";
98 mooseWarning(msg.str());
◆ validParams()
InputParameters HeatConductionMaterial::validParams |
( |
| ) |
|
|
static |
Definition at line 20 of file HeatConductionMaterial.C.
24 params.addCoupledVar(
"temp",
"Coupled Temperature");
26 params.addParam<Real>(
"thermal_conductivity",
"The thermal conductivity value");
27 params.addParam<FunctionName>(
"thermal_conductivity_temperature_function",
29 "Thermal conductivity as a function of temperature.");
31 params.addParam<Real>(
"specific_heat",
"The specific heat value");
32 params.addParam<FunctionName>(
33 "specific_heat_temperature_function",
"",
"Specific heat as a function of temperature.");
34 params.addClassDescription(
"General-purpose material model for heat conduction");
◆ _has_temp
const bool HeatConductionMaterial::_has_temp |
|
protected |
◆ _my_specific_heat
const Real HeatConductionMaterial::_my_specific_heat |
|
protected |
◆ _my_thermal_conductivity
const Real HeatConductionMaterial::_my_thermal_conductivity |
|
protected |
◆ _specific_heat
MaterialProperty<Real>& HeatConductionMaterial::_specific_heat |
|
protected |
◆ _specific_heat_temperature_function
const Function* HeatConductionMaterial::_specific_heat_temperature_function |
|
protected |
◆ _temperature
const VariableValue& HeatConductionMaterial::_temperature |
|
protected |
◆ _thermal_conductivity
MaterialProperty<Real>& HeatConductionMaterial::_thermal_conductivity |
|
protected |
◆ _thermal_conductivity_dT
MaterialProperty<Real>& HeatConductionMaterial::_thermal_conductivity_dT |
|
protected |
◆ _thermal_conductivity_temperature_function
const Function* HeatConductionMaterial::_thermal_conductivity_temperature_function |
|
protected |
The documentation for this class was generated from the following files: