Public Member Functions | List of all members
patchDataWave< TransferType, TrackingData > Class Template Reference

Takes a set of patches to start MeshWave from. More...

Inheritance diagram for patchDataWave< TransferType, TrackingData >:
Inheritance graph
[legend]
Collaboration diagram for patchDataWave< TransferType, TrackingData >:
Collaboration graph
[legend]

Public Member Functions

 patchDataWave (const polyMesh &mesh, const labelHashSet &patchIDs, const UPtrList< Field< Type >> &initialPatchValuePtrs, const bool correctWalls=true, TrackingData &td=dummyTrackData_)
 
virtual ~patchDataWave ()
 
virtual void correct ()
 
const scalarFielddistance () const
 
scalarFielddistance ()
 
const FieldField< Field, scalar > & patchDistance () const
 
FieldField< Field, scalar > & patchDistance ()
 
const Field< Type > & cellData () const
 
Field< Type > & cellData ()
 
const FieldField< Field, Type > & patchData () const
 
FieldField< Field, Type > & patchData ()
 
label nUnset () const
 
- Public Member Functions inherited from cellDistFuncs
 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

template<class TransferType, class TrackingData = int>
class Foam::patchDataWave< TransferType, TrackingData >

Takes a set of patches to start MeshWave from.

Holds after construction distance at cells and distance at patches (like patchWave), but also additional transported data. It is used, for example, in the y+ calculation.

See also
The patchWave class.
Source files

Definition at line 62 of file patchDataWave.H.

Constructor & Destructor Documentation

◆ patchDataWave()

patchDataWave ( const polyMesh mesh,
const labelHashSet patchIDs,
const UPtrList< Field< Type >> &  initialPatchValuePtrs,
const bool  correctWalls = true,
TrackingData &  td = dummyTrackData_ 
)

Definition at line 174 of file patchDataWave.C.

References correct().

Here is the call graph for this function:

◆ ~patchDataWave()

~patchDataWave
virtual

Definition at line 200 of file patchDataWave.C.

Member Function Documentation

◆ correct()

void correct
virtual

Definition at line 208 of file patchDataWave.C.

References MeshWave< Type, TrackingData >::allFaceInfo(), forAll, and mesh.

Here is the call graph for this function:

◆ distance() [1/2]

const scalarField& distance ( ) const
inline

Definition at line 156 of file patchDataWave.H.

Referenced by wallDistData< TransferType >::correct(), meshWave::correct(), and directionalMeshWave::correct().

Here is the caller graph for this function:

◆ distance() [2/2]

scalarField& distance ( )
inline

Definition at line 162 of file patchDataWave.H.

◆ patchDistance() [1/2]

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

Definition at line 167 of file patchDataWave.H.

Referenced by wallDistData< TransferType >::correct(), meshWave::correct(), and directionalMeshWave::correct().

Here is the caller graph for this function:

◆ patchDistance() [2/2]

FieldField<Field, scalar>& patchDistance ( )
inline

Definition at line 172 of file patchDataWave.H.

◆ cellData() [1/2]

const Field<Type>& cellData ( ) const
inline

Definition at line 177 of file patchDataWave.H.

Referenced by wallDistData< TransferType >::correct(), meshWave::correct(), and directionalMeshWave::correct().

Here is the caller graph for this function:

◆ cellData() [2/2]

Field<Type>& cellData ( )
inline

Definition at line 182 of file patchDataWave.H.

◆ patchData() [1/2]

const FieldField<Field, Type>& patchData ( ) const
inline

Definition at line 187 of file patchDataWave.H.

Referenced by wallDistData< TransferType >::correct(), meshWave::correct(), and directionalMeshWave::correct().

Here is the caller graph for this function:

◆ patchData() [2/2]

FieldField<Field, Type>& patchData ( )
inline

Definition at line 192 of file patchDataWave.H.

◆ nUnset()

label nUnset ( ) const
inline

Definition at line 197 of file patchDataWave.H.

Referenced by wallDistData< TransferType >::correct(), meshWave::correct(), and directionalMeshWave::correct().

Here is the caller graph for this function:

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