37void Foam::nearWallDist::calculate()
39 cellDistFuncs wallUtils(mesh_);
42 labelHashSet wallPatchIDs(wallUtils.getPatchIDs<wallPolyPatch>());
46 DynamicList<label> neighbours(wallUtils.maxPatchSize(wallPatchIDs));
59 if (isA<wallFvPatch>(patch))
61 const polyPatch& pPatch =
patch.patch();
68 wallUtils.getPointNeighbours(pPatch, patchFacei, neighbours);
72 ypatch[patchFacei] = wallUtils.smallestDist
74 cellCentres[faceCells[patchFacei]],
97 calculatedFvPatchScalarField::typeName
115 if (mesh_.topoChanging())
128 calculatedFvPatchScalarField::typeName,
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const T & operator[](const label i) const
Return const reference to the element.
label size() const noexcept
The number of elements in the list.
Mesh data needed to do the Finite Volume discretisation.
const volVectorField & C() const
Return cell centres as volVectorField.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
Distance calculation for cells with face on a wall. Searches pointNeighbours to find closest.
virtual void correct()
Correct for mesh geom/topo changes.
virtual ~nearWallDist()
Destructor.
const std::string patch
OpenFOAM patch number as a std::string.
GeometricField< vector, fvPatchField, volMesh > volVectorField
HashSet< label, Hash< label > > labelHashSet
A HashSet of labels, uses label hasher.
UList< label > labelUList
A UList of labels.
fvPatchField< scalar > fvPatchScalarField
points setSize(newPointi)
#define forAll(list, i)
Loop across all elements in list.