Takes a set of patches to start MeshWave from. More...
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. More... | |
virtual | ~patchDataWave () |
Destructor. More... | |
virtual void | correct () |
Correct for mesh geom/topo changes. More... | |
const scalarField & | distance () const |
scalarField & | distance () |
Non const access so we can 'transfer' contents for efficiency. More... | |
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. More... | |
const polyMesh & | mesh () 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 |
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.
Definition at line 62 of file patchDataWave.H.
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 174 of file patchDataWave.C.
References correct.
|
virtual |
Destructor.
Definition at line 200 of file patchDataWave.C.
|
virtual |
Correct for mesh geom/topo changes.
Definition at line 208 of file patchDataWave.C.
References MeshWave< Type, TrackingData >::allFaceInfo(), UList< T >::data(), forAll, mesh, and HashTable< T, Key, Hash >::toc().
|
inline |
Definition at line 188 of file patchDataWave.H.
Referenced by wallDistData< TransferType >::correct(), directionalMeshWave::correct(), and meshWave::correct().
|
inline |
Non const access so we can 'transfer' contents for efficiency.
Definition at line 196 of file patchDataWave.H.
|
inline |
Definition at line 201 of file patchDataWave.H.
Referenced by wallDistData< TransferType >::correct(), directionalMeshWave::correct(), and meshWave::correct().
|
inline |
Definition at line 206 of file patchDataWave.H.
|
inline |
Definition at line 211 of file patchDataWave.H.
Referenced by wallDistData< TransferType >::correct(), directionalMeshWave::correct(), and meshWave::correct().
|
inline |
Definition at line 216 of file patchDataWave.H.
|
inline |
Definition at line 221 of file patchDataWave.H.
Referenced by wallDistData< TransferType >::correct(), directionalMeshWave::correct(), and meshWave::correct().
|
inline |
Definition at line 226 of file patchDataWave.H.
|
inline |
Definition at line 231 of file patchDataWave.H.
Referenced by wallDistData< TransferType >::correct(), directionalMeshWave::correct(), and meshWave::correct().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.