37 void 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,
const Type & operator[](const labelPair &index) const
Const access to a single field element via (fieldi, elemi)
GeometricField< vector, fvPatchField, volMesh > volVectorField
UList< label > labelUList
A UList of labels.
#define forAll(list, i)
Loop across all elements in list.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
HashSet< label, Hash< label > > labelHashSet
A HashSet of labels, uses label hasher.
points setSize(newPointi)
fvPatchField< scalar > fvPatchScalarField
label size() const noexcept
The number of elements in the list.
virtual ~nearWallDist()
Destructor.
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 std::string patch
OpenFOAM patch number as a std::string.
const volVectorField & C() const
Return cell centres as volVectorField.
virtual void correct()
Correct for mesh geom/topo changes.
static tmp< fvPatchField< Type > > New(const word &patchFieldType, const fvPatch &, const DimensionedField< Type, volMesh > &)
Return a pointer to a new patchField created on freestore given.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.