Public Member Functions | Private Member Functions | Private Attributes
faceShading Class Reference

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. More...

Collaboration diagram for faceShading:
Collaboration graph
[legend]

Public Member Functions

 ClassName ("faceShading")
 
 faceShading (const fvMesh &mesh, const vector dir, const labelList &hitFaceList)
 Construct from components. More...
 
 faceShading (const fvMesh &mesh, const vector)
 Construct from mesh and vector. More...
 
 ~faceShading ()
 Destructor. More...
 
const vector direction () const
 const acess to direction More...
 
vectordirection ()
 Non-const access to direction. More...
 
const labelListrayStartFaces () const
 Access to rayStartFaces. More...
 
void correct ()
 Recalculate rayStartFaces using direction vector. More...
 

Private Member Functions

void calculate ()
 Calculate ray start faces. More...
 
triSurface triangulate (const labelHashSet &includePatches, const List< labelHashSet > &includeAllFaces)
 Construct a triSurface from patches and faces on global local index. More...
 
void writeRays (const fileName &fName, const DynamicField< point > &endCf, const pointField &myFc)
 Write rays. More...
 
 faceShading (const faceShading &)
 Disallow default bitwise copy construct. More...
 
void operator= (const faceShading &)
 Disallow default bitwise assignment. More...
 

Private Attributes

const fvMeshmesh_
 Reference to mesh. More...
 
vector direction_
 Direction. More...
 
labelList rayStartFaces_
 Faces directly hit by vector direction. More...
 

Detailed Description

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.

Source files

Definition at line 58 of file faceShading.H.

Constructor & Destructor Documentation

◆ faceShading() [1/3]

faceShading ( const faceShading )
private

Disallow default bitwise copy construct.

◆ faceShading() [2/3]

faceShading ( const fvMesh mesh,
const vector  dir,
const labelList hitFaceList 
)

Construct from components.

Definition at line 406 of file faceShading.C.

◆ faceShading() [3/3]

faceShading ( const fvMesh mesh,
const vector  dir 
)

Construct from mesh and vector.

Definition at line 420 of file faceShading.C.

◆ ~faceShading()

Destructor.

Definition at line 435 of file faceShading.C.

Member Function Documentation

◆ calculate()

void calculate ( )
private

◆ triangulate()

Foam::triSurface triangulate ( const labelHashSet includePatches,
const List< labelHashSet > &  includeAllFaces 
)
private

◆ writeRays()

void writeRays ( const fileName fName,
const DynamicField< point > &  endCf,
const pointField myFc 
)
private

Write rays.

Definition at line 46 of file faceShading.C.

References Foam::endl(), forAll, fileName::lessExt(), OFstream::name(), Foam::nl, Foam::Pout, Foam::system(), and writeOBJ().

Referenced by faceShading::calculate().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator=()

void operator= ( const faceShading )
private

Disallow default bitwise assignment.

◆ ClassName()

ClassName ( "faceShading"  )

◆ direction() [1/2]

const vector direction ( ) const
inline

const acess to direction

Definition at line 133 of file faceShading.H.

References faceShading::direction_.

◆ direction() [2/2]

vector& direction ( )
inline

Non-const access to direction.

Definition at line 139 of file faceShading.H.

References faceShading::direction_.

◆ rayStartFaces()

const labelList& rayStartFaces ( ) const
inline

Access to rayStartFaces.

Definition at line 145 of file faceShading.H.

References faceShading::rayStartFaces_.

◆ correct()

void correct ( )

Recalculate rayStartFaces using direction vector.

Definition at line 441 of file faceShading.C.

Field Documentation

◆ mesh_

const fvMesh& mesh_
private

Reference to mesh.

Definition at line 63 of file faceShading.H.

Referenced by faceShading::calculate().

◆ direction_

vector direction_
private

Direction.

Definition at line 66 of file faceShading.H.

Referenced by faceShading::calculate(), and faceShading::direction().

◆ rayStartFaces_

labelList rayStartFaces_
private

Faces directly hit by vector direction.

Definition at line 69 of file faceShading.H.

Referenced by faceShading::calculate(), and faceShading::rayStartFaces().


The documentation for this class was generated from the following files: