Go to the documentation of this file.
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,
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
fvPatchField< scalar > fvPatchScalarField
points setSize(newPointi)
void set(List< bool > &bools, const labelRange &range)
Set the specified range 'on' in a boolList.
#define forAll(list, i)
Loop across all elements in list.
virtual void correct()
Correct for mesh geom/topo changes.
virtual ~nearWallDist()
Destructor.
const volVectorField & C() const
Return cell centres as volVectorField.
Mesh data needed to do the Finite Volume discretisation.
GeometricField< vector, fvPatchField, volMesh > volVectorField
const fvBoundaryMesh & boundary() const
Return reference to boundary mesh.
const std::string patch
OpenFOAM patch number as a std::string.
UList< label > labelUList
A UList of labels.
HashSet< label, Hash< label > > labelHashSet
A HashSet of labels, uses label hasher.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...