Go to the documentation of this file.
35 Foam::sampledMeshedSurface::sampleOnFaces
42 defaultValues_.getOrDefault<Type>(sampler.
psi().name(),
Zero)
45 const labelList& elements = sampleElements_;
52 return sampledSurface::sampleOnFaces
68 auto&
values = tvalues.ref();
87 const label bFacei = (elements[i] -
mesh().nInternalFaces());
105 Foam::sampledMeshedSurface::sampleOnPoints
112 defaultValues_.getOrDefault<Type>(interpolator.
psi().name(),
Zero)
115 const labelList& elements = sampleElements_;
121 auto&
values = tvalues.ref();
129 const label celli = elements[i];
155 const label facei = elements[i];
166 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 (0)
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.
#define forAll(list, i)
Loop across all elements in list.
const GeometricField< Type, fvPatchField, volMesh > & psi() const
Return the field to be interpolated.
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.