34 Foam::sampledSurfaces::patchInternalField::sampleField
47 mappers_[i].map().distribute(interpVals);
52 i < patchStart().size()-1
54 : patchFaceLabels().size()
57 for (
label triI = patchStart()[i]; triI < end; triI++)
59 values[triI] = interpVals[patchFaceLabels()[triI]];
69 Foam::sampledSurfaces::patchInternalField::interpolateField
77 sz +=
mesh().boundaryMesh()[patchIDs()[i]].size();
113 sz += patchVals.
size();
126 meshFaceLabels[sz++] = pp.
start()+i;
139 ).faceToPointInterpolate(allPatchVals);
Interpolation class within a primitive patch. Allows interpolation from points to faces and vice vers...
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
void distribute(List< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Distribute data using default commsType.
T & ref() const
Return non-const reference or generate a fatal error.
void size(const label)
Override size to be inconsistent with allocated storage.
const Internal::FieldType & primitiveField() const
Return a const-reference to the internal field.
Generic GeometricField class.
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.
scalarField samples(nIntervals, 0)
A list of faces which address into the list of points.
Pre-declare SubField and related Field type.
void reverseDistribute(const label constructSize, List< T > &, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Reverse distribute data using default commsType.
Class containing processor-to-processor mapping information.
label start() const
Return start label of this patch in the polyMesh face list.
Abstract base class for interpolation.
A class for managing temporary objects.
A patch is a list of labels that address the faces in the global face list.
A List with indirect addressing.