FieldField< Field, scalar > & patchDistance()
bool correctWalls_
Do accurate distance calculation for near-wall cells.
labelHashSet patchIDs_
Current patch subset (stored as patchIDs)
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.
Takes a set of patches to start MeshWave from. After construction holds distance at cells and distanc...
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.
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.
label nUnset_
Number of cells/faces unset after MeshWave has finished.
const polyMesh & mesh() const
Access mesh.
const FieldField< Field, scalar > & patchDistance() const
scalarField & distance()
Non const access so we can 'transfer' contents for efficiency.
Collection of functions used in wall distance calculation.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const scalarField & distance() const
patchWave(const polyMesh &mesh, const labelHashSet &patchIDs, bool correctWalls=true)
Construct from mesh and patches to initialize to 0 and flag.
virtual ~patchWave()
Destructor.