OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

cellDistFuncs Class Reference

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

Inheritance diagram for cellDistFuncs:
Collaboration diagram for cellDistFuncs:

List of all members.


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.

Detailed Description

Collection of functions used in wall distance calculation.

Source files

Definition at line 56 of file cellDistFuncs.H.


Constructor & Destructor Documentation

cellDistFuncs ( const polyMesh &  mesh  ) 

Construct from mesh.

Definition at line 60 of file cellDistFuncs.C.


Member Function Documentation

ClassName ( "cellDistFuncs"   ) 

const polyMesh& mesh (  )  const [inline]

Access mesh.

Definition at line 92 of file cellDistFuncs.H.

Foam::labelHashSet getPatchIDs ( const wordList &  patchNames  )  const

Get patchIDs of named patches.

Definition at line 70 of file cellDistFuncs.C.

Foam::labelHashSet getPatchIDs ( const word &  wantedType  )  const

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

Definition at line 102 of file cellDistFuncs.C.

Foam::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_

Definition at line 126 of file cellDistFuncs.C.

Foam::label getPointNeighbours ( const primitivePatch &  patch,
const label  patchFaceI,
labelList &  neighbours 
) const

Get faces sharing point with face on patch.

Definition at line 160 of file cellDistFuncs.C.

Foam::label maxPatchSize ( const labelHashSet &  patchIDs  )  const

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

Definition at line 271 of file cellDistFuncs.C.

Foam::label sumPatchSize ( const labelHashSet &  patchIDs  )  const

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

Used in sizing arrays.

Definition at line 290 of file cellDistFuncs.C.

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.

Definition at line 310 of file cellDistFuncs.C.

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.

Definition at line 366 of file cellDistFuncs.C.


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