https://mooseframework.inl.gov
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.");
21  params.addClassDescription(
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 
28  const InputParameters & parameters)
30 {
31 }
32 
33 std::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 }
ViewFactorObjectSurfaceRadiation computes radiative heat transfer between side sets and the view fact...
GrayLambertSurfaceRadiationBase computes the heat flux on a set of surfaces in radiative heat transfe...
Real getViewFactor(BoundaryID from_id, BoundaryID to_id) const
public interface for obtaining view factors
ViewFactorObjectSurfaceRadiation(const InputParameters &parameters)
void addRequiredParam(const std::string &name, const std::string &doc_string)
A base class for automatic computation of view factors between sidesets.
registerMooseObject("HeatTransferApp", ViewFactorObjectSurfaceRadiation)
unsigned int _n_sides
number of active boundary ids
void addClassDescription(const std::string &doc_string)
static const std::complex< double > j(0, 1)
Complex number "j" (also known as "i")
virtual std::vector< std::vector< Real > > setViewFactors() override
a purely virtual function that defines where view factors come from