Go to the documentation of this file.
12 #include "SideUserObject.h"
31 Real
getViewFactor(BoundaryID from_id, BoundaryID to_id)
const;
32 Real
getViewFactor(BoundaryName from_name, BoundaryName to_name)
const;
35 virtual void finalize()
override final;
38 virtual void threadJoin(
const UserObject & y)
override final;
A base class for automatic computation of view factors between sidesets.
std::unordered_map< std::string, unsigned int > _side_name_index
boundary name to index map
virtual void finalize() override final
std::vector< Real > _areas
area of the sides i
const bool _normalize_view_factor
whether to normalize view factors so vf[from][:] sums to one
virtual void finalizeViewFactor()=0
a purely virtural function called in finalize, must be overriden by derived class
unsigned int _n_sides
number of boundaries of this side uo
std::vector< std::vector< Real > > _view_factors
the view factor from side i to side j
const Real _view_factor_tol
view factor tolerance
Real getViewFactor(BoundaryID from_id, BoundaryID to_id) const
public interface for obtaining view factors
ViewFactorBase(const InputParameters ¶meters)
virtual void threadJoinViewFactor(const UserObject &y)=0
a purely virtural function called in finalize, must be overriden by derived class
void checkAndNormalizeViewFactor()
this function checks & normalizes view factors to sum to one, this is not always
InputParameters validParams< ViewFactorBase >()
virtual void threadJoin(const UserObject &y) override final
static InputParameters validParams()