23 params.
addClassDescription(
"This material constructs the necessary coefficients and properties " 24 "for SideSetHeatTransferKernel.");
25 params.
addParam<FunctionName>(
"conductivity", 0.0,
"Heat conductivity in W/m/K.");
26 params.
addParam<FunctionName>(
"conductivity_temperature_function",
27 "Heat conductivity in W/m/K as a function of temperature.");
30 "Coupled Temperature of gap, used for computing temperature dependent conductivity.");
31 params.
addParam<FunctionName>(
"gap_length", 1.0,
"Total width of gap in m.");
32 params.
addParam<FunctionName>(
"Tbulk", 300,
"Bulk temperature of gap in K.");
34 "h_primary", 0.0,
"Convective heat transfer coefficient (primary face) in W/m^2/K.");
36 "h_neighbor", 0.0,
"Convective heat transfer coefficient (neighbor face) in W/m^2/K.");
37 params.
addParam<FunctionName>(
"emissivity_primary", 0.0,
"Primary face emissivity.");
38 params.
addParam<FunctionName>(
"emissivity_neighbor", 0.0,
"Neighbor face emissivity.");
39 params.
addParam<FunctionName>(
"reflectivity_primary",
40 "Primary face reflectivity, uses (1-emissivity) if not provided.");
41 params.
addParam<FunctionName>(
"reflectivity_neighbor",
42 "Neighbor face reflectivity, uses (1-emissivity) if not provided.");
48 _kgap(isParamValid(
"conductivity_temperature_function")
49 ? getFunction(
"conductivity_temperature_function")
50 : getFunction(
"conductivity")),
51 _Tk(isCoupled(
"gap_temperature") ? &coupledValue(
"gap_temperature") : nullptr),
52 _dgap(getFunction(
"gap_length")),
53 _Tb(getFunction(
"Tbulk")),
54 _hp(getFunction(
"h_primary")),
55 _hm(getFunction(
"h_neighbor")),
56 _eps_p(getFunction(
"emissivity_primary")),
57 _eps_m(getFunction(
"emissivity_neighbor")),
58 _rho_p(isParamValid(
"reflectivity_primary") ? &getFunction(
"reflectivity_primary") : nullptr),
59 _rho_m(isParamValid(
"reflectivity_neighbor") ? &getFunction(
"reflectivity_neighbor") : nullptr),
60 _cond(declareProperty<
Real>(
"gap_conductance")),
61 _Tbulk(declareProperty<
Real>(
"gap_Tbulk")),
62 _h_primary(declareProperty<
Real>(
"gap_h_primary")),
63 _h_neighbor(declareProperty<
Real>(
"gap_h_neighbor")),
64 _emmissivity_eff_primary(declareProperty<
Real>(
"gap_emissivity_eff_primary")),
65 _emmissivity_eff_neighbor(declareProperty<
Real>(
"gap_emissivity_eff_neighbor")),
71 paramError(
"gap_length",
"gap_length not set, but conduction term requested.");
75 paramError(
"conductivity",
"conductivity not set, but conduction term requested.");
79 "Cannot specify both conductivity and conductivity_temperature_function.");
82 "Variable specification for temp needed if specifying a temperature dependent " 86 paramError(
"h_neighbor",
"h_neighbor not set, but convection term requested.");
88 paramError(
"h_primary",
"h_primary not set, but convection term requested.");
92 paramError(
"emissivity_neighbor",
"emissivity_neighbor not set, but radiation term requested");
95 paramError(
"emissivity_primary",
"emissivity_primary not set, but radiation term requested");
MaterialProperty< Real > & _Tbulk
const Real _sigma
Stefan-Boltzmann constant in W/cm^2-K^4.
static InputParameters validParams()
static InputParameters validParams()
MaterialProperty< Real > & _h_neighbor
registerMooseObject("HeatTransferApp", SideSetHeatTransferMaterial)
SideSetHeatTransferMaterial(const InputParameters ¶meters)
const Function & _dgap
Gap width.
bool isParamValid(const std::string &name) const
MaterialProperty< Real > & _cond
Material property handles.
MaterialProperty< Real > & _h_primary
const Function & _kgap
Material conductivity.
const Function & _Tb
Gap bulk temperature.
const MooseArray< Point > & _q_point
MaterialProperty< Real > & _emmissivity_eff_primary
void paramError(const std::string ¶m, Args... args) const
MaterialProperty< Real > & _emmissivity_eff_neighbor
const VariableValue *const _Tk
Variable to compute conductivity.
const Function & _hp
Heat transfer coefficients.
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
const Function *const _rho_p
Surface reflectivities.
const InputParameters & parameters() const
const Function & _eps_p
Surface emissivities.
virtual Real value(Real t, const Point &p) const
virtual void computeQpProperties() override
const Function *const _rho_m