Public Member Functions | List of all members
cellDistFuncs Class Reference

Collection of functions used in wall distance calculation. More...

Inheritance diagram for cellDistFuncs:
Inheritance graph
[legend]

Public Member Functions

 ClassName ("cellDistFuncs")
 
 cellDistFuncs (const polyMesh &mesh)
 
const polyMeshmesh () const
 
labelHashSet getPatchIDs (const UList< wordRe > &patchNames) const
 
template<class Type >
labelHashSet getPatchIDs () const
 
scalar smallestDist (const point &p, const polyPatch &patch, const labelUList &wallFaces, label &meshFacei) const
 
void getPointNeighbours (const primitivePatch &, const label patchFacei, DynamicList< label > &) const
 
label maxPatchSize (const labelHashSet &patchIDs) const
 
label sumPatchSize (const labelHashSet &patchIDs) const
 
void correctBoundaryFaceCells (const labelHashSet &patchIDs, scalarField &wallDistCorrected, Map< label > &nearestFace) const
 
void correctBoundaryPointCells (const labelHashSet &patchIDs, scalarField &wallDistCorrected, Map< label > &nearestFace) const
 
template<class Type >
Foam::labelHashSet getPatchIDs () const
 

Detailed Description

Collection of functions used in wall distance calculation.

Source files

Definition at line 59 of file cellDistFuncs.H.

Constructor & Destructor Documentation

◆ cellDistFuncs()

cellDistFuncs ( const polyMesh mesh)

Definition at line 35 of file cellDistFuncs.C.

Member Function Documentation

◆ ClassName()

ClassName ( "cellDistFuncs"  )

◆ mesh()

const polyMesh& mesh ( ) const
inline

Definition at line 88 of file cellDistFuncs.H.

Referenced by cellDistFuncs::getPatchIDs().

Here is the caller graph for this function:

◆ getPatchIDs() [1/3]

Foam::labelHashSet getPatchIDs ( const UList< wordRe > &  patchNames) const

Definition at line 44 of file cellDistFuncs.C.

References polyMesh::boundaryMesh(), mesh, patchNames(), and polyBoundaryMesh::patchSet().

Here is the call graph for this function:

◆ getPatchIDs() [2/3]

labelHashSet getPatchIDs ( ) const

◆ smallestDist()

Foam::scalar smallestDist ( const point p,
const polyPatch patch,
const labelUList wallFaces,
label &  meshFacei 
) const

Definition at line 56 of file cellDistFuncs.C.

References PointHit< PointType >::distance(), p, Foam::foamVersion::patch, and points.

Here is the call graph for this function:

◆ getPointNeighbours()

void getPointNeighbours ( const primitivePatch patch,
const label  patchFacei,
DynamicList< label > &  neighbours 
) const

◆ maxPatchSize()

Foam::label maxPatchSize ( const labelHashSet patchIDs) const

Definition at line 182 of file cellDistFuncs.C.

References polyMesh::boundaryMesh(), forAll, Foam::max(), mesh, and Foam::foamVersion::patch.

Here is the call graph for this function:

◆ sumPatchSize()

Foam::label sumPatchSize ( const labelHashSet patchIDs) const

Definition at line 203 of file cellDistFuncs.C.

References polyMesh::boundaryMesh(), forAll, mesh, Foam::foamVersion::patch, and Foam::sum().

Here is the call graph for this function:

◆ correctBoundaryFaceCells()

void correctBoundaryFaceCells ( const labelHashSet patchIDs,
scalarField wallDistCorrected,
Map< label > &  nearestFace 
) const

Definition at line 225 of file cellDistFuncs.C.

References polyMesh::boundaryMesh(), primitiveMesh::cellCentres(), polyMesh::faceOwner(), forAll, mesh, and Foam::foamVersion::patch.

Here is the call graph for this function:

◆ correctBoundaryPointCells()

void correctBoundaryPointCells ( const labelHashSet patchIDs,
scalarField wallDistCorrected,
Map< label > &  nearestFace 
) const

Definition at line 271 of file cellDistFuncs.C.

References polyMesh::boundaryMesh(), primitiveMesh::cellCentres(), forAll, mesh, Foam::foamVersion::patch, and primitiveMesh::pointCells().

Here is the call graph for this function:

◆ getPatchIDs() [3/3]

Foam::labelHashSet getPatchIDs ( ) const

Definition at line 29 of file cellDistFuncsTemplates.C.

References polyMesh::boundaryMesh(), forAll, HashSet::insert(), and cellDistFuncs::mesh().

Here is the call graph for this function:

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