https://mooseframework.inl.gov
Loading...
Searching...
No Matches
ViewFactorObjectSurfaceRadiation.C
Go to the documentation of this file.
1//* This file is part of the MOOSE framework
2//* https://mooseframework.inl.gov
3//*
4//* All rights reserved, see COPYRIGHT for full restrictions
5//* https://github.com/idaholab/moose/blob/master/COPYRIGHT
6//*
7//* Licensed under LGPL 2.1, please see LICENSE for details
8//* https://www.gnu.org/licenses/lgpl-2.1.html
9
11#include "ViewFactorBase.h"
12
14
17{
19 params.addRequiredParam<UserObjectName>("view_factor_object_name",
20 "Name of the ViewFactor userobjects.");
22 "ViewFactorObjectSurfaceRadiation computes radiative heat transfer between side sets and the "
23 "view factors are computed by a ViewFactor object");
24 return params;
25}
26
32
33std::vector<std::vector<Real>>
35{
36 const ViewFactorBase & view_factor_uo = getUserObject<ViewFactorBase>("view_factor_object_name");
37 std::vector<BoundaryName> boundary_names = getParam<std::vector<BoundaryName>>("boundary");
38 std::vector<std::vector<Real>> vf(_n_sides);
39
40 for (unsigned int i = 0; i < _n_sides; ++i)
41 {
42 vf[i].resize(_n_sides);
43
44 for (unsigned int j = 0; j < _n_sides; ++j)
45 vf[i][j] = view_factor_uo.getViewFactor(boundary_names[i], boundary_names[j]);
46 }
47 return vf;
48}
registerMooseObject("HeatTransferApp", ViewFactorObjectSurfaceRadiation)
GrayLambertSurfaceRadiationBase computes the heat flux on a set of surfaces in radiative heat transfe...
unsigned int _n_sides
number of active boundary ids
void addRequiredParam(const std::string &name, const std::string &doc_string)
void addClassDescription(const std::string &doc_string)
A base class for automatic computation of view factors between sidesets.
Real getViewFactor(BoundaryID from_id, BoundaryID to_id) const
public interface for obtaining view factors
ViewFactorObjectSurfaceRadiation computes radiative heat transfer between side sets and the view fact...
virtual std::vector< std::vector< Real > > setViewFactors() override
a purely virtual function that defines where view factors come from
ViewFactorObjectSurfaceRadiation(const InputParameters &parameters)