32 Foam::sampledSurfaces::patch::sampleField
40 forAll(patchFaceLabels_, i)
44 values[i] = bField[patchFaceLabels_[i]];
53 Foam::sampledSurfaces::patch::sampleField
62 forAll(patchFaceLabels_, i)
74 Foam::sampledSurfaces::patch::interpolateField
83 const labelList& own = mesh().faceOwner();
89 label patchi = patchIndices_[patchIndex_[cutFacei]];
91 label patchFacei = patchFaceLabels()[cutFacei];
92 const face&
f = faces()[cutFacei];
96 label pointi =
f[faceVertI];
98 if (!pointDone[pointi])
101 label celli = own[facei];
109 pointDone[pointi] =
true;
#define forAll(list, i)
Loop across all elements in list.
Pre-declare SubField and related Field type.
Generic GeometricField class.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
void size(const label)
Override size to be inconsistent with allocated storage.
A face is a list of labels corresponding to mesh vertices.
Abstract base class for interpolation.
virtual Type interpolate(const vector &position, const label celli, const label facei=-1) const =0
Interpolate field to the given point in the given cell.
A patch is a list of labels that address the faces in the global face list.
label start() const
Return start label of this patch in the polyMesh face list.
const polyBoundaryMesh & boundaryMesh() const
Return boundaryMesh reference.
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.