Helper class to calculate visible faces for global, sun-like illumination. More...
#include <faceShading.H>
Public Member Functions | |
| ClassName ("faceShading") | |
| faceShading (const fvMesh &mesh, const vector &dir) | |
| Construct from mesh and vector to 'sun'. All uncoupled patches. | |
| faceShading (const fvMesh &mesh, const labelList &patchIDs, const labelList &zoneIDs, const vector &dir) | |
| Construct from mesh and vector to 'sun' and selected patches. | |
| ~faceShading ()=default | |
| Destructor. | |
| const vector | direction () const |
| Const access to direction. | |
| vector & | direction () |
| Non-const access to direction. | |
| const labelList & | rayStartFaces () const |
| Const access to rayStartFaces. | |
| void | correct () |
| Recalculate rayStartFaces using direction vector. | |
Static Public Member Functions | |
| static labelList | nonCoupledPatches (const polyMesh &mesh) |
| Helper: return all uncoupled patches. | |
Helper class to calculate visible faces for global, sun-like illumination.
faceShading uses the transmissivity value in the boundaryRadiationProperties in order to evaluate which faces are "hit" by the "direction" vector. NOTE: Only transmissivity values of zero are considered for opaque walls.
Definition at line 57 of file faceShading.H.
Construct from mesh and vector to 'sun'. All uncoupled patches.
are checked for visibility. faceZones are ignored.
Definition at line 502 of file faceShading.C.
References mesh, and nonCoupledPatches().

| faceShading | ( | const fvMesh & | mesh, |
| const labelList & | patchIDs, | ||
| const labelList & | zoneIDs, | ||
| const vector & | dir ) |
Construct from mesh and vector to 'sun' and selected patches.
and faceZones.
Definition at line 518 of file faceShading.C.
|
default |
Destructor.
|
static |
Helper: return all uncoupled patches.
Definition at line 538 of file faceShading.C.
References DynamicList< T, SizeMin >::append(), forAll, Foam::isA(), mesh, pbm, and pp().
Referenced by faceShading().


Const access to direction.
Definition at line 206 of file faceShading.H.
Non-const access to direction.
Definition at line 214 of file faceShading.H.
|
inline |
Const access to rayStartFaces.
Definition at line 222 of file faceShading.H.
| void correct | ( | ) |
Recalculate rayStartFaces using direction vector.
Definition at line 555 of file faceShading.C.