12 #include "metaphysicl/raw_type.h" 22 params.
addClassDescription(
"Computes the total convective heat transfer across a boundary.");
25 params.
addCoupledVar(
"T_fluid_var",
"The fluid temperature.");
27 params.
addParam<MaterialPropertyName>(
"T_fluid",
28 "Name of the fluid temperature material property");
29 params.
addParam<MaterialPropertyName>(
"htc",
"Name of alpha_wall material property");
37 _T_wall(coupledValue(
"T_solid")),
38 _T_fluid(isCoupled(
"T_fluid_var") ? &coupledValue(
"T_fluid_var") : nullptr),
39 _T_fluid_mat(isParamValid(
"T_fluid") ? &getGenericMaterialProperty<
Real, is_ad>(
"T_fluid")
41 _hw(isCoupled(
"htc_var") ? &coupledValue(
"htc_var") : nullptr),
42 _hw_mat(isParamValid(
"htc") ? &getGenericMaterialProperty<
Real, is_ad>(
"htc") : nullptr)
45 paramError(
"htc",
"Either htc_var OR htc must be provided (exactly one, not both).");
53 " must be provided (exactly one, not both).");
68 Tf = (*_T_fluid)[_qp];
72 return hw * (_T_wall[_qp] - Tf);
virtual bool isCoupled(const std::string &var_name, unsigned int i=0) const
virtual Real computeQpIntegral() override
static InputParameters validParams()
static InputParameters validParams()
registerMooseObject("HeatTransferApp", ConvectiveHeatTransferSideIntegral)
bool isParamValid(const std::string &name) const
Computes the total convective heat transfer across a boundary.
void paramError(const std::string ¶m, Args... args) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
ConvectiveHeatTransferSideIntegralTempl(const InputParameters ¶meters)