A base class for automatic computation of view factors between sidesets. More...
#include <ViewFactorBase.h>
Public Member Functions | |
ViewFactorBase (const InputParameters ¶meters) | |
virtual void | finalize () override final |
Real | getViewFactor (BoundaryID from_id, BoundaryID to_id) const |
public interface for obtaining view factors More... | |
Real | getViewFactor (BoundaryName from_name, BoundaryName to_name) const |
Static Public Member Functions | |
static InputParameters | validParams () |
Protected Member Functions | |
virtual void | threadJoin (const UserObject &y) override final |
void | checkAndNormalizeViewFactor () |
this function checks & normalizes view factors to sum to one, this is not always More... | |
virtual void | finalizeViewFactor ()=0 |
a purely virtural function called in finalize, must be overriden by derived class More... | |
virtual void | threadJoinViewFactor (const UserObject &y)=0 |
a purely virtural function called in finalize, must be overriden by derived class More... | |
Protected Attributes | |
unsigned int | _n_sides |
number of boundaries of this side uo More... | |
std::vector< Real > | _areas |
area of the sides i More... | |
const Real | _view_factor_tol |
view factor tolerance More... | |
const bool | _normalize_view_factor |
whether to normalize view factors so vf[from][:] sums to one More... | |
std::vector< std::vector< Real > > | _view_factors |
the view factor from side i to side j More... | |
std::unordered_map< std::string, unsigned int > | _side_name_index |
boundary name to index map More... | |
A base class for automatic computation of view factors between sidesets.
Definition at line 23 of file ViewFactorBase.h.
ViewFactorBase::ViewFactorBase | ( | const InputParameters & | parameters | ) |
Definition at line 33 of file ViewFactorBase.C.
|
protected |
this function checks & normalizes view factors to sum to one, this is not always
Definition at line 106 of file ViewFactorBase.C.
Referenced by finalize().
|
finaloverridevirtual |
Definition at line 83 of file ViewFactorBase.C.
|
protectedpure virtual |
a purely virtural function called in finalize, must be overriden by derived class
Implemented in UnobstructedPlanarViewFactor.
Referenced by finalize().
Real ViewFactorBase::getViewFactor | ( | BoundaryID | from_id, |
BoundaryID | to_id | ||
) | const |
public interface for obtaining view factors
Definition at line 52 of file ViewFactorBase.C.
Referenced by ViewFactorPP::getValue(), and ViewFactorObjectSurfaceRadiation::setViewFactors().
Real ViewFactorBase::getViewFactor | ( | BoundaryName | from_name, |
BoundaryName | to_name | ||
) | const |
Definition at line 61 of file ViewFactorBase.C.
|
finaloverrideprotectedvirtual |
Definition at line 94 of file ViewFactorBase.C.
|
protectedpure virtual |
a purely virtural function called in finalize, must be overriden by derived class
Implemented in UnobstructedPlanarViewFactor.
Referenced by threadJoin().
|
static |
Definition at line 18 of file ViewFactorBase.C.
Referenced by UnobstructedPlanarViewFactor::validParams().
|
protected |
area of the sides i
Definition at line 53 of file ViewFactorBase.h.
Referenced by UnobstructedPlanarViewFactor::execute(), UnobstructedPlanarViewFactor::finalizeViewFactor(), UnobstructedPlanarViewFactor::initialize(), and UnobstructedPlanarViewFactor::threadJoinViewFactor().
|
protected |
number of boundaries of this side uo
Definition at line 50 of file ViewFactorBase.h.
Referenced by checkAndNormalizeViewFactor(), finalize(), UnobstructedPlanarViewFactor::finalizeViewFactor(), UnobstructedPlanarViewFactor::initialize(), threadJoin(), UnobstructedPlanarViewFactor::threadJoinViewFactor(), and ViewFactorBase().
|
protected |
whether to normalize view factors so vf[from][:] sums to one
Definition at line 59 of file ViewFactorBase.h.
Referenced by checkAndNormalizeViewFactor().
|
protected |
boundary name to index map
Definition at line 65 of file ViewFactorBase.h.
Referenced by UnobstructedPlanarViewFactor::execute(), getViewFactor(), and ViewFactorBase().
|
protected |
view factor tolerance
Definition at line 56 of file ViewFactorBase.h.
Referenced by checkAndNormalizeViewFactor().
|
protected |
the view factor from side i to side j
Definition at line 62 of file ViewFactorBase.h.
Referenced by checkAndNormalizeViewFactor(), UnobstructedPlanarViewFactor::execute(), finalize(), UnobstructedPlanarViewFactor::finalizeViewFactor(), getViewFactor(), UnobstructedPlanarViewFactor::initialize(), threadJoin(), and ViewFactorBase().