34 Foam::sampledPatchInternalField::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::sampledPatchInternalField::interpolateField
77 sz +=
mesh().boundaryMesh()[patchIDs()[i]].size();
113 sz += patchVals.
size();
126 meshFaceLabels[sz++] = pp.
start()+i;
139 ).faceToPointInterpolate(allPatchVals);
A List with indirect addressing.
const pointField & points
static void distribute(const Pstream::commsTypes commsType, const List< labelPair > &schedule, const label constructSize, const labelListList &subMap, const labelListList &constructMap, List< T > &, const int tag=UPstream::msgType())
Distribute data. Note:schedule only used for Pstream::scheduled.
Class containing processor-to-processor mapping information.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Abstract base class for interpolation.
void size(const label)
Override size to be inconsistent with allocated storage.
InternalField & internalField()
Return internal field.
Interpolation class within a primitive patch. Allows interpolation from points to faces and vice vers...
A patch is a list of labels that address the faces in the global face list.
void reverseDistribute(const label constructSize, List< T > &, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Reverse distribute data using default commsType.
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.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
Pre-declare SubField and related Field type.
A list of faces which address into the list of points.
label start() const
Return start label of this patch in the polyMesh face list.
Generic GeometricField class.
scalarField samples(nIntervals, 0)
A class for managing temporary objects.