35 Foam::sampledPatch::sampleOnFaces
40 const auto& vField = sampler.
psi();
44 auto&
values = tvalues.ref();
46 forAll(patchFaceLabels_, i)
48 const label patchi = patchIDs_[patchIndex_[i]];
49 const label patchFacei = patchFaceLabels_[i];
51 values[i] = vField.boundaryField()[patchi][patchFacei];
60 Foam::sampledPatch::sampleOnFaces
67 auto&
values = tvalues.ref();
69 forAll(patchFaceLabels_, i)
71 const label patchi = patchIDs_[patchIndex_[i]];
72 const label patchFacei = patchFaceLabels_[i];
83 Foam::sampledPatch::sampleOnPoints
90 auto&
values = tvalues.ref();
98 const face&
f = faces()[i];
99 const label patchi = patchIDs_[patchIndex_[i]];
100 const label patchFacei = patchFaceLabels_[i];
104 const label facei = patchFacei +
pp.start();
105 const label celli = own[facei];
107 for (
const label pointi :
f)
109 if (pointDone.
set(pointi))
void size(const label n)
Older name for setAddressableSize.
void set(const bitSet &bitset)
Set specified bits from another bitset.
A face is a list of labels corresponding to mesh vertices.
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.
Generic GeometricField class.
static autoPtr< sampledSurface > New(const word &name, const polyMesh &mesh, const dictionary &dict)
Return a reference to the selected surface.
#define forAll(list, i)
Loop across all elements in list.
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
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.
const polyBoundaryMesh & boundaryMesh() const noexcept
Return boundary mesh.
virtual const labelList & faceOwner() const
Return face owner.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
Abstract base class for volume field interpolation.
A class for managing temporary objects.
A patch is a list of labels that address the faces in the global face list.
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.
uindirectPrimitivePatch pp(UIndirectList< face >(mesh.faces(), faceLabels), mesh.points())
const GeometricField< Type, fvPatchField, volMesh > & psi() const noexcept
Return the field to be interpolated.