49 const List<point>& lPoints,
50 const List<point>& rPoints,
78 return max(0, 0.25*Fij/mathematical::pi);
87 const UList<List<vector>>& compactFineSf,
88 const UList<List<point>>& compactFineCf,
89 const UList<List<point>>& compactPoints,
90 const UList<label>& compactPatchId
97 forAll(visibleFaceFaces, facei)
101 Pout<<
"facei:" << facei <<
"/" << visibleFaceFaces.
size()
105 const labelList& visibleFaces = visibleFaceFaces[facei];
109 const vector& Ai = compactSf[facei];
110 const scalar magAi =
mag(Ai);
112 forAll(visibleFaces, visibleFacei)
114 const label sloti = visibleFaces[visibleFacei];
115 const List<point>& lPoints = compactPoints[facei];
116 const List<point>& rPoints = compactPoints[sloti];
118 const scalar Fij2LI = calculateFij(lPoints, rPoints, alpha_);
120 Fij[facei][visibleFacei] = Fij2LI/magAi;
137 alpha_(
dict.getOrDefault(
"alpha", 0.21))
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
void resize(const label len)
Adjust allocated size of list.
const T & rcValue(const label i) const
Return reverse circular value (ie, previous value in the list).
void size(const label n)
Older name for setAddressableSize.
Computes view factors according to the double line integral (2LI) method.
static scalar calculateFij(const List< point > &lPoints, const List< point > &rPoints, const scalar alpha)
Calculate view factor using the double-area integral.
viewFactor2LI(const fvMesh &mesh, const dictionary &dict)
Constructor.
A base class for viewFactor models.
virtual void calculate()
Calculate the view factors.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
A namespace for various viewFactor model implementations.
Different types of constants.
List< scalarList > scalarListList
List of scalarList.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
List< labelList > labelListList
List of labelList.
List< label > labelList
A List of labels.
dimensionedScalar log(const dimensionedScalar &ds)
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
Field< vector > vectorField
Specialisation of Field<T> for vector.
vector point
Point is a vector.
static constexpr const zero Zero
Global zero (0).
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
vectorField pointField
pointField is a vectorField.
#define forAll(list, i)
Loop across all elements in list.