patchWave Class Reference

Takes a set of patches to start MeshWave from. After construction holds distance at cells and distance at patches. Is e.g. used by wallDist to construct volScalarField with correct distance to wall. More...

Inheritance diagram for patchWave:
[legend]
Collaboration diagram for patchWave:
[legend]

Public Member Functions

 patchWave (const polyMesh &mesh, const labelHashSet &patchIDs, bool correctWalls=true)
 Construct from mesh and patches to initialize to 0 and flag. More...
 
virtual ~patchWave ()
 Destructor. More...
 
virtual void correct ()
 Correct for mesh geom/topo changes. More...
 
label nUnset () const
 
const scalarFielddistance () const
 
scalarFielddistance ()
 Non const access so we can 'transfer' contents for efficiency. More...
 
const FieldField< Field, scalar > & patchDistance () const
 
FieldField< Field, scalar > & patchDistance ()
 
- Public Member Functions inherited from cellDistFuncs
 ClassName ("cellDistFuncs")
 
 cellDistFuncs (const polyMesh &mesh)
 Construct from mesh. More...
 
const polyMeshmesh () const
 Access mesh. More...
 
labelHashSet getPatchIDs (const UList< wordRe > &patchNames) const
 Return the set of patch IDs corresponding to the given names. More...
 
template<class Type >
labelHashSet getPatchIDs () const
 Get patchIDs of/derived off certain type (e.g. 'processorPolyPatch') More...
 
scalar smallestDist (const point &p, const polyPatch &patch, const labelUList &wallFaces, label &meshFacei) const
 Calculate smallest true distance (and face index) More...
 
void getPointNeighbours (const primitivePatch &, const label patchFacei, DynamicList< label > &) const
 Get faces sharing point with face on patch. More...
 
label maxPatchSize (const labelHashSet &patchIDs) const
 Size of largest patch (out of supplied subset of patches) More...
 
label sumPatchSize (const labelHashSet &patchIDs) const
 Sum of patch sizes (out of supplied subset of patches). More...
 
void correctBoundaryFaceCells (const labelHashSet &patchIDs, scalarField &wallDistCorrected, Map< label > &nearestFace) const
 Correct all cells connected to boundary (via face). Sets values in. More...
 
void correctBoundaryPointCells (const labelHashSet &patchIDs, scalarField &wallDistCorrected, Map< label > &nearestFace) const
 Correct all cells connected to wall (via point). Sets values in. More...
 
template<class Type >
Foam::labelHashSet getPatchIDs () const
 

Detailed Description

Takes a set of patches to start MeshWave from. After construction holds distance at cells and distance at patches. Is e.g. used by wallDist to construct volScalarField with correct distance to wall.

Source files

Definition at line 58 of file patchWave.H.

Constructor & Destructor Documentation

◆ patchWave()

patchWave ( const polyMesh mesh,
const labelHashSet patchIDs,
bool  correctWalls = true 
)

Construct from mesh and patches to initialize to 0 and flag.

whether or not to correct wall. Calculate for all cells. correctWalls : correct wall (face&point) cells for correct distance, searching neighbours.

Definition at line 136 of file patchWave.C.

References patchWave::correct().

Here is the call graph for this function:

◆ ~patchWave()

~patchWave ( )
virtual

Destructor.

Definition at line 156 of file patchWave.C.

Member Function Documentation

◆ correct()

void correct ( )
virtual

Correct for mesh geom/topo changes.

Definition at line 162 of file patchWave.C.

References mesh.

Referenced by patchWave::patchWave().

Here is the caller graph for this function:

◆ nUnset()

label nUnset ( ) const
inline

Definition at line 122 of file patchWave.H.

Referenced by meshWave::correct().

Here is the caller graph for this function:

◆ distance() [1/2]

const scalarField & distance ( ) const
inline

Definition at line 127 of file patchWave.H.

Referenced by meshWave::correct().

Here is the caller graph for this function:

◆ distance() [2/2]

scalarField & distance ( )
inline

Non const access so we can 'transfer' contents for efficiency.

Definition at line 133 of file patchWave.H.

◆ patchDistance() [1/2]

const FieldField< Field, scalar > & patchDistance ( ) const
inline

Definition at line 138 of file patchWave.H.

Referenced by meshWave::correct().

Here is the caller graph for this function:

◆ patchDistance() [2/2]

FieldField< Field, scalar > & patchDistance ( )
inline

Definition at line 143 of file patchWave.H.


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