Go to the documentation of this file.
35 Foam::sampledTriSurfaceMesh::sampleOnFaces
40 const labelList& elements = sampleElements_;
46 return sampledSurface::sampleOnFaces
61 auto&
values = tvalues.ref();
64 const label nBnd =
mesh().nBoundaryFaces();
74 const label bFacei = (pbm[patchi].
start() -
mesh().nInternalFaces());
79 bField[patchi].size(),
88 const label bFacei = (elements[i] -
mesh().nInternalFaces());
98 Foam::sampledTriSurfaceMesh::sampleOnPoints
105 auto&
values = tvalues.ref();
111 forAll(sampleElements_, pointi)
115 samplePoints_[pointi],
116 sampleElements_[pointi]
124 forAll(samplePoints_, pointi)
126 const label facei = sampleElements_[pointi];
130 samplePoints_[pointi],
131 mesh().faceOwner()[facei],
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
A class for managing temporary objects.
static constexpr const zero Zero
Global zero.
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
A List obtained as a section of another List.
label start() const
The start label of the boundary faces in the polyMesh face list.
#define forAll(list, i)
Loop across all elements in list.
const GeometricField< Type, fvPatchField, volMesh > & psi() const
Return the field to be interpolated.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Generic templated field type.
Abstract base class for interpolation.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
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 Boundary & boundaryField() const
Return const-reference to the boundary field.