37Foam::sampledPatchInternalField::sampleOnFaces
42 const auto& vField = sampler.
psi();
46 auto& values = tvalues.ref();
52 mappers_[i].
map().distribute(interpVals);
74Foam::sampledPatchInternalField::sampleOnPoints
85 Field<Type> allPatchVals(sz);
91 const mapDistribute& distMap = mappers_[i].map();
99 Field<Type> patchVals(
mesh().nCells());
113 distMap.distribute(patchVals);
117 SubList<Type>(allPatchVals, patchVals.size(), sz) = patchVals;
118 sz += patchVals.
size();
124 labelList meshFaceLabels(allPatchVals.size());
131 meshFaceLabels[sz++] =
pp.start()+i;
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
void map(const UList< Type > &mapF, const labelUList &mapAddressing)
1 to 1 map from the given field
A List with indirect addressing.
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.
A non-owning sub-view of a List (allocated or unallocated storage).
void size(const label n)
Older name for setAddressableSize.
label size() const noexcept
The number of entries in the list.
Abstract base class for volume field interpolation.
const GeometricField< Type, fvPatchField, volMesh > & psi() const noexcept
Return the field to be interpolated.
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.
Class containing processor-to-processor mapping information.
void reverseDistribute(const label constructSize, List< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Reverse distribute data using default commsType.
void distribute(List< T > &fld, const bool dummyTransform=true, const int tag=UPstream::msgType()) const
Distribute List data using default commsType, default flip/negate operator.
const polyBoundaryMesh & boundaryMesh() const noexcept
Return boundary mesh.
A patch is a list of labels that address the faces in the global face list.
const labelList & patchStart() const
The offset into patchIndex, patchFaceLabels.
virtual const faceList & faces() const
Faces of surface.
const labelList & patchFaceLabels() const
For each face, the patch local face ID.
A class for managing temporary objects.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
List< label > labelList
A List of labels.
PrimitivePatch< IndirectList< face >, const pointField & > indirectPrimitivePatch
A PrimitivePatch with an IndirectList for the faces, const reference for the point field.
Field< vector > vectorField
Specialisation of Field<T> for vector.
#define forAll(list, i)
Loop across all elements in list.
scalarField samples(nIntervals, Zero)