21 params.addRequiredParam<UserObjectName>(
"view_factor_object_name",
22 "Name of the ViewFactor userobjects.");
23 params.addClassDescription(
24 "ViewFactorObjectSurfaceRadiation computes radiative heat transfer between side sets and the "
25 "view factors are computed by a ViewFactor object");
30 const InputParameters & parameters)
35 std::vector<std::vector<Real>>
38 const ViewFactorBase & view_factor_uo = getUserObject<ViewFactorBase>(
"view_factor_object_name");
39 std::vector<BoundaryName> boundary_names = getParam<std::vector<BoundaryName>>(
"boundary");
40 std::vector<std::vector<Real>> vf(
_n_sides);
42 for (
unsigned int i = 0; i <
_n_sides; ++i)
46 for (
unsigned int j = 0; j <
_n_sides; ++j)
47 vf[i][j] = view_factor_uo.
getViewFactor(boundary_names[i], boundary_names[j]);