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.
Boundary(const BoundaryMesh &)
Construct from a BoundaryMesh.
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 T & operator[](const label) const
Return element const reference.
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
GeometricField< vector, fvPatchField, volMesh > volVectorField
UList< label > labelUList
HashSet< label, Hash< label > > labelHashSet
A HashSet with label keys.
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.
void setSize(const label)
Reset size of PtrList. If extending the PtrList, new entries are.
label size() const
Return the number of elements in the UPtrList.
Mesh data needed to do the Finite Volume discretisation.
bool topoChanging() const
Is mesh topology changing.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
const volVectorField & C() const
Return cell centres as volVectorField.
virtual void correct()
Correct for mesh geom/topo changes.
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
nearWallDist(const fvMesh &mesh)
Construct from components.