20 "Weighted average wall temperature from multiple sources for 1-phase flow");
23 "Vector of wall temperatures from individual sources");
25 "Hw_sources",
"Vector of wall heat transfer coefficients from individual sources");
27 "Vector of heated perimeters from individual sources");
37 _T_wall(declareProperty<
Real>(
"T_wall")),
38 _n_values(coupledComponents(
"T_wall_sources")),
39 _T_fluid(coupledValue(
"T_fluid")),
40 _P_hf_total(coupledValue(
"P_hf_total"))
43 if (
getParam<std::vector<MaterialPropertyName>>(
"Hw_sources").size() !=
_n_values)
45 ": The number of wall heat transfer coefficient values" 46 " must equal the number of wall temperature values");
49 ": The number of heated perimeter values" 50 " must equal the number of wall temperature values");
53 const std::vector<MaterialPropertyName> & Hw_prop_names =
54 getParam<std::vector<MaterialPropertyName>>(
"Hw_sources");
55 for (
unsigned int i = 0; i <
_n_values; i++)
58 _Hw_sources.push_back(&getMaterialProperty<Real>(Hw_prop_names[i]));
67 for (
unsigned int i = 0; i <
_n_values; i++)
70 if (std::abs(denominator) < 1e-15)
74 for (
unsigned int i = 0; i <
_n_values; i++)
82 for (
unsigned int i = 0; i <
_n_values; i++)
std::vector< const VariableValue * > _T_wall_sources
Wall temperature values from the individual sources to average.
AverageWallTemperature3EqnMaterial(const InputParameters ¶meters)
virtual void computeQpProperties()
virtual const std::string & name() const
virtual const VariableValue & coupledValue(const std::string &var_name, unsigned int comp=0) const
std::vector< const VariableValue * > _P_hf_sources
Heated perimeter values from the individual sources to average.
static InputParameters validParams()
const T & getParam(const std::string &name) const
unsigned int coupledComponents(const std::string &var_name) const
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
MaterialProperty< Real > & _T_wall
Average wall temperature.
const unsigned int _n_values
Number of values to average.
registerMooseObject("ThermalHydraulicsApp", AverageWallTemperature3EqnMaterial)
Weighted average of wall temperature between multiple heat sources to preserve total wall heat...
static InputParameters validParams()
void mooseError(Args &&... args) const
const VariableValue & _T_fluid
Fluid temperature.
std::vector< const MaterialProperty< Real > * > _Hw_sources
Wall heat transfer coefficient values from the individual sources to average.
const VariableValue & _P_hf_total
Total heated perimeter.