Loading...
Searching...
No Matches
patchDataWave< TransferType, TrackingData > Class Template Reference

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

#include <patchDataWave.H>

Inheritance diagram for patchDataWave< TransferType, TrackingData >:
Collaboration diagram for patchDataWave< TransferType, TrackingData >:

Public Member Functions

 patchDataWave (const polyMesh &mesh, const labelHashSet &patchIDs, const UPtrList< Field< Type > > &initialPatchValuePtrs, const bool correctWalls=true, TrackingData &td=dummyTrackData_)
 Construct from mesh, information on patches to initialize and flag.
virtual ~patchDataWave ()
 Destructor.
virtual void correct ()
 Correct for mesh geom/topo changes.
const scalarFielddistance () const
scalarFielddistance ()
 Non const access so we can 'transfer' contents for efficiency.
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)
 Construct from mesh.
const polyMeshmesh () const
 Access mesh.
labelHashSet getPatchIDs (const UList< wordRe > &patchNames) const
 Return the set of patch IDs corresponding to the given names.
template<class Type>
labelHashSet getPatchIDs () const
 Get patchIDs of/derived off certain type (e.g. 'processorPolyPatch').
template<class PatchType>
scalar smallestDist (const point &p, const PatchType &patch, const labelUList &wallFaces, label &patchFacei) const
 Calculate smallest true distance (and patch face index).
template<class PatchType>
void getPointNeighbours (const PatchType &, const label patchFacei, DynamicList< label > &) 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.
void correctBoundaryCells (const labelList &patchIDs, const bool doPointCells, scalarField &wallDistCorrected, Map< label > &nearestFace) const
 Correct all cells connected to any of the patches in patchIDs. Sets.
template<class Type>
Foam::labelHashSet getPatchIDs () const
template<class PatchType>
Foam::scalar smallestDist (const point &p, const PatchType &patch, const labelUList &wallFaces, label &minFacei) const

Additional Inherited Members

Static Public Attributes inherited from cellDistFuncs
static bool useCombinedWallPatch = true
 Use combined-wall-patches wall distance v.s. v2406 per-patch distance. Default is true.

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

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

Construct from mesh, information on patches to initialize 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 181 of file patchDataWave.C.

References correct(), cellDistFuncs::mesh(), patchIDs, and td().

Here is the call graph for this function:

◆ ~patchDataWave()

template<class TransferType, class TrackingData>
~patchDataWave ( )
virtual

Destructor.

Definition at line 208 of file patchDataWave.C.

Member Function Documentation

◆ correct()

template<class TransferType, class TrackingData>
void correct ( )
virtual

◆ distance() [1/2]

template<class TransferType, class TrackingData = int>
const scalarField & distance ( ) const
inline

Definition at line 188 of file patchDataWave.H.

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

Here is the caller graph for this function:

◆ distance() [2/2]

template<class TransferType, class TrackingData = int>
scalarField & distance ( )
inline

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

Definition at line 196 of file patchDataWave.H.

◆ patchDistance() [1/2]

template<class TransferType, class TrackingData = int>
const FieldField< Field, scalar > & patchDistance ( ) const
inline

Definition at line 201 of file patchDataWave.H.

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

Here is the caller graph for this function:

◆ patchDistance() [2/2]

template<class TransferType, class TrackingData = int>
FieldField< Field, scalar > & patchDistance ( )
inline

Definition at line 206 of file patchDataWave.H.

◆ cellData() [1/2]

template<class TransferType, class TrackingData = int>
const Field< Type > & cellData ( ) const
inline

Definition at line 211 of file patchDataWave.H.

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

Here is the caller graph for this function:

◆ cellData() [2/2]

template<class TransferType, class TrackingData = int>
Field< Type > & cellData ( )
inline

Definition at line 216 of file patchDataWave.H.

◆ patchData() [1/2]

template<class TransferType, class TrackingData = int>
const FieldField< Field, Type > & patchData ( ) const
inline

Definition at line 221 of file patchDataWave.H.

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

Here is the caller graph for this function:

◆ patchData() [2/2]

template<class TransferType, class TrackingData = int>
FieldField< Field, Type > & patchData ( )
inline

Definition at line 226 of file patchDataWave.H.

◆ nUnset()

template<class TransferType, class TrackingData = int>
label nUnset ( ) const
inline

Definition at line 231 of file patchDataWave.H.

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

Here is the caller graph for this function:

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