34 void Foam::nearWallDist::calculate()
36 cellDistFuncs wallUtils(mesh_);
39 labelHashSet wallPatchIDs(wallUtils.getPatchIDs<wallPolyPatch>());
43 labelList neighbours(wallUtils.maxPatchSize(wallPatchIDs));
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,
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const volVectorField & C() const
Return cell centres as volVectorField.
GeometricField< vector, fvPatchField, volMesh > volVectorField
UList< label > labelUList
HashSet< label, Hash< label > > labelHashSet
A HashSet with label keys.
points setSize(newPointi)
fvPatchField< scalar > fvPatchScalarField
static tmp< fvPatchField< Type > > New(const word &, const fvPatch &, const DimensionedField< Type, volMesh > &)
Return a pointer to a new patchField created on freestore given.
List< label > labelList
A List of labels.
faceListList boundary(nPatches)
virtual ~nearWallDist()
Destructor.
bool topoChanging() const
Is mesh topology changing.
Mesh data needed to do the Finite Volume discretisation.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
virtual void correct()
Correct for mesh geom/topo changes.
label size() const
Return the number of elements in the UPtrList.