35void Foam::nearWallDistNoSearch::doAll()
44 if (isA<wallFvPatch>(
patches[patchi]))
49 = cellCentres.boundaryField()[patchi];
57 forAll(patchCentres, facei)
64 - cellCentres[faceCells[facei]]
85 calculatedFvPatchScalarField::typeName
103 if (mesh_.changing())
106 forAll(mesh_.boundary(), patchi)
108 operator[](patchi).setSize(mesh_.boundary()[patchi].size());
const Boundary & boundaryField() const
Return const-reference to the boundary field.
const T & operator[](const label i) const
Return const reference to the element.
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.
const surfaceVectorField & Sf() const
Return cell face area vectors.
const surfaceScalarField & magSf() const
Return cell face area magnitudes.
Distance calculation for cells with face on a wall. Does not search anything, just takes normal compo...
virtual void correct()
Correct for mesh geom/topo changes.
virtual ~nearWallDistNoSearch()
Destructor.
UPtrList< const labelUList > faceCells() const
Return a list of faceCells for each patch.
const polyBoundaryMesh & patches
GeometricField< vector, fvPatchField, volMesh > volVectorField
PtrList< fvPatch > fvPatchList
Store lists of fvPatch as a PtrList.
UList< label > labelUList
A UList of labels.
fvsPatchField< vector > fvsPatchVectorField
fvPatchField< vector > fvPatchVectorField
fvsPatchField< scalar > fvsPatchScalarField
fvPatchField< scalar > fvPatchScalarField
#define forAll(list, i)
Loop across all elements in list.