22 params.addRequiredParam<FunctionName>(
"T_infinity",
"Function describing far-field temperature");
23 params.addRequiredParam<FunctionName>(
"coefficient",
24 "Function describing heat transfer coefficient");
25 MooseEnum coef_func_type(
"TIME_AND_POSITION TEMPERATURE",
"TIME_AND_POSITION");
26 params.addParam<MooseEnum>(
27 "coefficient_function_type",
29 "Type of function for heat transfer coefficient provided in 'coefficient' parameter");
30 params.addDeprecatedParam<FunctionName>(
31 "coefficient_function",
32 "Heat transfer coefficient function",
33 "'coefficient' should be used instead. 'coefficient_function will be removed on March 1, "
35 params.addClassDescription(
36 "Determines boundary value by fluid heat transfer coefficient and far-field temperature");
42 : IntegratedBC(parameters),
43 _T_infinity(getFunction(
"T_infinity")),
44 _coefficient(getFunction(
"coefficient")),
45 _coef_func_type(getParam<MooseEnum>(
"coefficient_function_type").getEnum<
CoefFuncType>()),
46 _coef_func(isParamValid(
"coefficient_function") ? &getFunction(
"coefficient_function") : NULL)
49 mooseError(
"Deprecated 'coefficient_function' parameter cannot be used with "
50 "'coefficient_function_type=TEMPERATURE'");
66 return _test[_i][_qp] * coef * (_u[_qp] -
_T_infinity.value(_t, _q_point[_qp]));
77 return _test[_i][_qp] * coef * _phi[_j][_qp];
82 const Real dcoef_dT =
_coefficient.timeDerivative(_u[_qp], Point());
83 return _test[_i][_qp] * (coef + (_u[_qp] -
_T_infinity.value(_t, _q_point[_qp])) * dcoef_dT) *