Go to the documentation of this file.
42 label nChangedFaces = 0;
46 if (patchIDs.
found(patchI))
54 changedFaces[nChangedFaces] = meshFaceI;
56 faceDist[nChangedFaces] =
82 scalar dist =
cellInfo[cellI].distSqr();
108 forAll(patchField, patchFaceI)
112 scalar dist = faceInfo[meshFaceI].distSqr();
114 if (faceInfo[meshFaceI].valid(waveInfo.
data()))
118 patchField[patchFaceI] =
Foam::sqrt(dist) + SMALL;
122 patchField[patchFaceI] = dist;
138 const bool correctWalls
143 correctWalls_(correctWalls),
164 label nPatch = sumPatchSize(patchIDs_);
170 setChangedFaces(patchIDs_, changedFaces, faceDist);
178 mesh().globalData().nTotalCells()+1
182 nUnset_ = getValues(waveInfo);
189 correctBoundaryFaceCells
196 correctBoundaryPointCells
Holds information regarding nearest wall point. Used in wall distance calculation.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const List< Type > & allFaceInfo() const
Get allFaceInfo.
#define forAll(list, i)
Loop across all elements in list.
const polyBoundaryMesh & boundaryMesh() const
Return boundary mesh.
Mesh consisting of general polyhedral cells.
FieldField< Field, scalar > patchDistance_
Distance at patch faces.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
void setChangedFaces(const labelHashSet &patchIDs, labelList &changedFaces, List< wallPoint > &changedInfo) const
Set initial set of changed faces (= all faces of patches in.
A patch is a list of labels that address the faces in the global face list.
virtual void correct()
Correct for mesh geom/topo changes.
label getValues(const MeshWave< wallPoint > &)
Copy MeshWave cell values. Return number of illegal/unset.
scalarField distance_
Distance at cell centres.
const TrackingData & data() const
Additional data to be passed into container.
bool found(const Key &) const
Return true if hashedEntry is found in table.
label start() const
Return start label of this patch in the polyMesh face list.
const polyMesh & mesh() const
Access mesh.
Holds information regarding type of cell. Used in inside/outside determination in cellClassification.
Collection of functions used in wall distance calculation.
const vectorField::subField faceCentres() const
Return face centres.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
dimensionedScalar sqrt(const dimensionedScalar &ds)
label size() const
Return the number of elements in the PtrList.
patchWave(const polyMesh &mesh, const labelHashSet &patchIDs, bool correctWalls=true)
Construct from mesh and patches to initialize to 0 and flag.
virtual ~patchWave()
Destructor.
const List< Type > & allCellInfo() const
Get allCellInfo.