OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

cellDistFuncs Class Reference

Inheritance diagram for cellDistFuncs:

Inheritance graph
[legend]
Collaboration diagram for cellDistFuncs:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 69 of file cellDistFuncs.H.


Public Member Functions

 ClassName ("cellDistFuncs")
 cellDistFuncs (const polyMesh &mesh)
 Construct from mesh.
const polyMesh & mesh () 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"   ) 

const polyMesh& mesh (  )  const [inline]

Access mesh.

Definition at line 105 of file cellDistFuncs.H.

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

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

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

Used in sizing arrays.

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.


The documentation for this class was generated from the following file: Copyright © 2000-2007 OpenCFD Ltd