34 void Foam::nearWallDist::calculate()
36 cellDistFuncs wallUtils(mesh_);
39 labelHashSet wallPatchIDs(wallUtils.getPatchIDs<wallPolyPatch>());
43 labelList neighbours(wallUtils.maxPatchSize(wallPatchIDs));
54 const fvPatch& patch = mesh_.
boundary()[patchI];
56 if (isA<wallFvPatch>(patch))
58 const polyPatch& pPatch = patch.patch();
60 const labelUList& faceCells = patch.faceCells();
65 label nNeighbours = wallUtils.getPointNeighbours
74 ypatch[patchFaceI] = wallUtils.smallestDist
76 cellCentres[faceCells[patchFaceI]],
100 calculatedFvPatchScalarField::typeName
131 calculatedFvPatchScalarField::typeName,
virtual ~nearWallDist()
Destructor.
faceListList boundary(nPatches)
UList< label > labelUList
Mesh data needed to do the Finite Volume discretisation.
label size() const
Return the number of elements in the PtrList.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
virtual void correct()
Correct for mesh geom/topo changes.
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
bool topoChanging() const
Is mesh topology changing.
static tmp< fvPatchField< Type > > New(const word &, const fvPatch &, const DimensionedField< Type, volMesh > &)
Return a pointer to a new patchField created on freestore given.
const volVectorField & C() const
Return cell centres as volVectorField.
fvPatchField< scalar > fvPatchScalarField
HashSet< label, Hash< label > > labelHashSet
A HashSet with label keys.
GeometricField< vector, fvPatchField, volMesh > volVectorField
points setSize(newPointi)
List< label > labelList
A List of labels.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.