Go to the documentation of this file.
20 params.addRequiredParam<std::vector<std::vector<Real>>>(
21 "view_factors",
"The view factors from sideset i to sideset j.");
22 params.addClassDescription(
23 "ConstantViewFactorSurfaceRadiation computes radiative heat transfer between side sets and "
24 "the view factors are provided in the input file");
29 const InputParameters & parameters)
34 std::vector<std::vector<Real>>
37 std::vector<std::vector<Real>> vf = getParam<std::vector<std::vector<Real>>>(
"view_factors");
41 paramError(
"view_factors",
42 "Leading dimension of view_factors must be equal to number of side sets.");
44 for (
unsigned int i = 0; i <
_n_sides; ++i)
46 paramError(
"view_factors",
47 "view_factors must be provided as square array. Row ",
61 for (
unsigned int i = 0; i <
_n_sides; ++i)
69 if (std::abs(sum - 1) > 0.05)
70 mooseError(
"view_factors row ", i,
" sums to ", sum);
virtual void initialize() override
ConstantViewFactorSurfaceRadiation(const InputParameters ¶meters)
defineLegacyParams(ConstantViewFactorSurfaceRadiation)
ConstantViewFactorSurfaceRadiation computes radiative heat transfer between side sets and the view fa...
static InputParameters validParams()
static InputParameters validParams()
virtual void initialize() override
std::vector< std::vector< Real > > _view_factors
the view factors which are set by setViewFactors by derived classes
virtual std::vector< std::vector< Real > > setViewFactors() override
a purely virtual function that defines where view factors come from
unsigned int _n_sides
number of active boundary ids
GrayLambertSurfaceRadiationBase computes the heat flux on a set of surfaces in radiative heat transfe...
registerMooseObject("HeatConductionApp", ConstantViewFactorSurfaceRadiation)