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...
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... | |
vector & | direction () |
Non-const access to direction. More... | |
const labelList & | rayStartFaces () 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 fvMesh & | mesh_ |
Reference to mesh. More... | |
vector | direction_ |
Direction. More... | |
labelList | rayStartFaces_ |
Faces directly hit by vector direction. More... | |
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 58 of file faceShading.H.
|
private |
Disallow default bitwise copy construct.
faceShading | ( | const fvMesh & | mesh, |
const vector | dir, | ||
const labelList & | hitFaceList | ||
) |
Construct from components.
Definition at line 406 of file faceShading.C.
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.
|
private |
Calculate ray start faces.
Definition at line 164 of file faceShading.C.
References DynamicList::append(), DynamicField::append(), GeometricField::boundaryField(), polyMesh::boundaryMesh(), polyMesh::bounds(), DynamicList::clear(), DynamicField::clear(), TimePaths::constant(), polyPatch::coupled(), dict, Foam::dimless, faceShading::direction_, distributedTriSurfaceMesh::distributionTypeNames_, Foam::e, Foam::endl(), treeBoundBox::extend(), polyPatch::faceCentres(), PrimitivePatch< Face, FaceList, PointField, PointType >::faceNormals(), forAll, distributedTriSurfaceMesh::FROZEN, Foam::Info, HashSet< Key, Hash >::insert(), localSurface, Foam::mag(), boundBox::max(), faceShading::mesh_, meshBb, boundBox::min(), n, MeshObject< fvMesh, Foam::GeometricMeshObject, boundaryRadiationProperties >::New(), IOobject::NO_READ, IOobject::NO_WRITE, patches, Time::path(), polyMesh::points(), faceShading::rayStartFaces_, Foam::reduce(), Foam::returnReduce(), rndGen(), List::size(), polyPatch::start(), surfacesMesh(), fvMesh::time(), Time::timeName(), List::transfer(), boundaryRadiationProperties::transmissivity(), faceShading::triangulate(), triSurfaceToAgglom(), and faceShading::writeRays().
|
private |
Construct a triSurface from patches and faces on global local index.
Definition at line 72 of file faceShading.C.
References DynamicList::append(), f(), forAll, forAllConstIter(), PrimitivePatch< Face, FaceList, PointField, PointType >::localFaces(), PrimitivePatch< Face, FaceList, PointField, PointType >::localPoints(), patchIdentifier::name(), geometryBase::name(), points, PrimitivePatch< Face, FaceList, PointField, PointType >::points(), and DynamicList::shrink().
Referenced by faceShading::calculate().
|
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().
|
private |
Disallow default bitwise assignment.
ClassName | ( | "faceShading" | ) |
const acess to direction
Definition at line 133 of file faceShading.H.
References faceShading::direction_.
Non-const access to direction.
Definition at line 139 of file faceShading.H.
References faceShading::direction_.
|
inline |
Access to rayStartFaces.
Definition at line 145 of file faceShading.H.
References faceShading::rayStartFaces_.
void correct | ( | ) |
Recalculate rayStartFaces using direction vector.
Definition at line 441 of file faceShading.C.
|
private |
Reference to mesh.
Definition at line 63 of file faceShading.H.
Referenced by faceShading::calculate().
|
private |
Direction.
Definition at line 66 of file faceShading.H.
Referenced by faceShading::calculate(), and faceShading::direction().
|
private |
Faces directly hit by vector direction.
Definition at line 69 of file faceShading.H.
Referenced by faceShading::calculate(), and faceShading::rayStartFaces().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.