Helper class to calculate visible faces for global, sun-like illumination. More...
Public Member Functions | |
ClassName ("faceShading") | |
faceShading (const fvMesh &mesh, const vector &dir) | |
Construct from mesh and vector to 'sun'. All uncoupled patches. More... | |
faceShading (const fvMesh &mesh, const labelList &patchIDs, const labelList &zoneIDs, const vector &dir) | |
Construct from mesh and vector to 'sun' and selected patches. More... | |
~faceShading ()=default | |
Destructor. More... | |
const vector | direction () const |
Const access to direction. More... | |
vector & | direction () |
Non-const access to direction. More... | |
const labelList & | rayStartFaces () const |
Const access to rayStartFaces. More... | |
void | correct () |
Recalculate rayStartFaces using direction vector. More... | |
Static Public Member Functions | |
static labelList | nonCoupledPatches (const polyMesh &mesh) |
Helper: return all uncoupled patches. More... | |
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.
faceShading | ( | const fvMesh & | mesh, |
const vector & | dir | ||
) |
Construct from mesh and vector to 'sun'. All uncoupled patches.
are checked for visibility. faceZones are ignored.
Definition at line 510 of file faceShading.C.
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 526 of file faceShading.C.
|
default |
Destructor.
ClassName | ( | "faceShading" | ) |
|
static |
Helper: return all uncoupled patches.
Definition at line 545 of file faceShading.C.
References DynamicList< T, SizeMin >::append(), polyMesh::boundaryMesh(), forAll, mesh, pbm, and pp().
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 562 of file faceShading.C.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.