Go to the documentation of this file.
42 #ifndef patchDataWave_H
43 #define patchDataWave_H
63 template<
class TransferType>
71 typedef typename TransferType::dataType
Type;
132 bool correctWalls =
true
FieldField< Field, Type > patchData_
Extra data at patch faces.
void setChangedFaces(const labelHashSet &patchIDs, labelList &, List< TransferType > &) const
Set initial set of changed faces.
Takes a set of patches to start MeshWave from.
scalarField & distance()
Non const access so we can 'transfer' contents for efficiency.
Mesh consisting of general polyhedral cells.
Field< Type > & cellData()
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.
FieldField< Field, scalar > patchDistance_
Distance at patch faces.
virtual ~patchDataWave()
Destructor.
TransferType::dataType Type
const scalarField & distance() const
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
bool correctWalls_
Do accurate distance calculation for near-wall cells.
const Field< Type > & cellData() const
scalarField distance_
Distance at cell centres.
const polyMesh & mesh() const
Access mesh.
labelHashSet patchIDs_
Current patch subset (stored as patchIDs)
FieldField< Field, Type > & patchData()
const FieldField< Field, Type > & patchData() const
Collection of functions used in wall distance calculation.
patchDataWave(const polyMesh &mesh, const labelHashSet &patchIDs, const UPtrList< Field< Type > > &initialPatchValuePtrs, bool correctWalls=true)
Construct from mesh, information on patches to initialize and flag.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual void correct()
Correct for mesh geom/topo changes.
label nUnset_
Number of cells/faces unset after MeshWave has finished.
label getValues(const MeshWave< TransferType > &)
Copy MeshWave values into *this.
const UPtrList< Field< Type > > & initialPatchValuePtrs_
Reference to initial extra data at patch faces.
const FieldField< Field, scalar > & patchDistance() const
FieldField< Field, scalar > & patchDistance()
Field< Type > cellData_
Extra data at cell centres.