OpenFOAM logo
Open Source CFD Toolkit

cellDistFuncs Class Reference

Inheritance diagram for cellDistFuncs:

Inheritance graph
[legend]
Collaboration diagram for cellDistFuncs:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 ClassName ("cellDistFuncs")
 cellDistFuncs (const polyMesh &mesh)
 Construct from mesh.
const polyMeshmesh () const
 Access mesh.
labelHashSet getPatchIDs (const wordList &) const
 Get patchIDs of named patches.
labelHashSet getPatchIDs (const word &) const
 Get patchIDs of certain type (e.g. 'processorPolyPatch').
scalar smallestDist (const point &p, const polyPatch &patch, const label nWallFaces, const labelList &wallFaces, label &meshFaceI) const
 Calculate smallest true distance (and face index).
label getPointNeighbours (const primitivePatch &, const label patchFaceI, labelList &) const
 Get faces sharing point with face on patch.
label maxPatchSize (const labelHashSet &patchIDs) const
 Size of largest patch (out of supplied subset of patches).
label sumPatchSize (const labelHashSet &patchIDs) const
 Sum of patch sizes (out of supplied subset of patches).
void correctBoundaryFaceCells (const labelHashSet &patchIDs, scalarField &wallDistCorrected, Map< label > &nearestFace) const
 Correct all cells connected to boundary (via face). Sets values in.
void correctBoundaryPointCells (const labelHashSet &patchIDs, scalarField &wallDistCorrected, Map< label > &nearestFace) const
 Correct all cells connected to wall (via point). Sets values in.

Constructor & Destructor Documentation

cellDistFuncs const polyMesh mesh  ) 
 

Construct from mesh.


Member Function Documentation

ClassName "cellDistFuncs"   ) 
 

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

Correct all cells connected to boundary (via face). Sets values in.

wallDistCorrected. Sets nearest wallface in nearestFace.

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

Correct all cells connected to wall (via point). Sets values in.

wallDistCorrected. Uses/sets nearest wallFace in nearestFace.

labelHashSet getPatchIDs const word  )  const
 

Get patchIDs of certain type (e.g. 'processorPolyPatch').

labelHashSet getPatchIDs const wordList  )  const
 

Get patchIDs of named patches.

label getPointNeighbours const primitivePatch ,
const label  patchFaceI,
labelList
const
 

Get faces sharing point with face on patch.

label maxPatchSize const labelHashSet patchIDs  )  const
 

Size of largest patch (out of supplied subset of patches).

const polyMesh& mesh  )  const [inline]
 

Access mesh.

Definition at line 105 of file cellDistFuncs.H.

References Foam::label, Foam::labelHashSet, Foam::labelList, Foam::point, Foam::primitivePatch, and Foam::scalarField.

scalar smallestDist const point p,
const polyPatch patch,
const label  nWallFaces,
const labelList wallFaces,
label meshFaceI
const
 

Calculate smallest true distance (and face index).

from pt to faces wallFaces. For efficiency reasons we still pass in patch instead of extracting it from mesh_

label sumPatchSize const labelHashSet patchIDs  )  const
 

Sum of patch sizes (out of supplied subset of patches).

Used in sizing arrays.


The documentation for this class was generated from the following file:
For further information go to www.openfoam.org