34 Foam::sampledSurfaces::patchInternalField::sampleField
47 mappers_[i].map().distribute(interpVals);
69 Foam::sampledSurfaces::patchInternalField::interpolateField
77 sz += mesh().boundaryMesh()[patchIndices()[i]].size();
86 const labelList& sampleCells = mappers_[i].cellIndices();
90 pointField samplePoints(mappers_[i].samplePoints());
97 if (sampleCells[i] != -1)
100 interpolator.
interpolate(samplePoints[i], sampleCells[i]);
110 sz += patchValues.
size();
123 meshFaceLabels[sz++] = pp.
start()+i;
#define forAll(list, i)
Loop across all elements in list.
Pre-declare SubField and related Field type.
Generic GeometricField class.
const Internal::FieldType & primitiveField() const
Return a const-reference to the primitive field.
A List with indirect addressing.
void size(const label)
Override size to be inconsistent with allocated storage.
label size() const
The surface size is the number of faces.
Interpolation class within a primitive patch. Allows interpolation from points to faces and vice vers...
tmp< Field< Type > > faceToPointInterpolate(const Field< Type > &ff) const
Interpolate from faces to points.
Class containing processor-to-processor mapping information.
void distribute(List< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Distribute data using default commsType.
void reverseDistribute(const label constructSize, List< T > &, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Reverse distribute data using default commsType.
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.
const labelList & patchFaceLabels() const
const labelList & patchStart() const
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.