21 "Name of the view factor ray study UO.");
22 params.
addClassDescription(
"Computes view factors for arbitrary geometries using raytracing.");
30 mooseError(
"View factor calculations do not support 1D");
41 current_boundary_name,
44 " not in boundary parameter.");
74 for (
unsigned int i = 0; i <
_n_sides; ++i)
76 const Real factor = 1. / (
_areas[i] * divisor);
86 for (
unsigned int i = 0; i <
_n_sides; ++i)
87 _areas[i] += pps._areas[i];
static InputParameters validParams()
std::vector< Real > _areas
area of the sides i
std::unordered_map< std::string, unsigned int > _side_name_index
boundary name to index map
unsigned int _n_sides
number of boundaries of this side uo
const std::string & getBoundaryName(BoundaryID boundary_id)
virtual void threadJoinViewFactor(const UserObject &y) override
a purely virtual function called in finalize, must be overriden by derived class
const std::vector< double > y
Computes the view factors for planar faces in unobstructed radiative heat transfer.
virtual void initialize() override
A base class for automatic computation of view factors between sidesets.
registerMooseObject("HeatTransferApp", RayTracingViewFactor)
RayTracingStudy used to generate Rays for view factor computation using the angular quadrature method...
const Real & _current_side_volume
const BoundaryID & _current_boundary_id
RayTracingViewFactor(const InputParameters ¶meters)
std::vector< std::vector< Real > > _view_factors
the view factor from side i to side j
virtual unsigned int dimension() const
boundary_id_type BoundaryID
virtual void execute() override
unsigned int getSideNameIndex(std::string name) const
helper function to get the index from the boundary name
static InputParameters validParams()
DIE A HORRIBLE DEATH HERE typedef LIBMESH_DEFAULT_SCALAR_TYPE Real
void mooseError(Args &&... args) const
Real viewFactorInfo(const BoundaryID from_id, const BoundaryID to_id) const
Accessor for the finalized view factor info.
const ViewFactorRayStudy & _ray_study
const std::vector< BoundaryName > & boundaryNames() const
virtual void finalizeViewFactor() override
a purely virtural function called in finalize, must be overriden by derived class ...
BoundaryID getBoundaryID(const BoundaryName &boundary_name) const