35Foam::sampledMeshedSurface::sampleOnFaces
42 defaultValues_.getOrDefault<Type>
49 const labelList& elements = sampleElements_;
72 auto& values = tvalues.ref();
86 const auto& pfld = bField[patchi];
102 values[i] = bVals[bFacei];
112Foam::sampledMeshedSurface::sampleOnPoints
119 defaultValues_.getOrDefault<Type>
126 const labelList& elements = sampleElements_;
132 auto& values = tvalues.ref();
140 const label celli = elements[i];
166 const label facei = elements[i];
177 mesh().faceOwner()[facei],
const polyBoundaryMesh & pbm
Generic templated field type that is much like a Foam::List except that it is expected to hold numeri...
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.
const word & name() const noexcept
Return the object name.
A non-owning sub-view of a List (allocated or unallocated storage).
void size(const label n)
Older name for setAddressableSize.
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.
A polyBoundaryMesh is a polyPatch list with registered IO, a reference to the associated polyMesh,...
const polyBoundaryMesh & boundaryMesh() const noexcept
Return boundary mesh.
label nInternalFaces() const noexcept
Number of internal faces.
virtual const pointField & points() const
Points of surface.
bool onBoundary() const
Sampling boundary values instead of cell values.
virtual const faceList & faces() const
Faces of surface.
static tmp< Field< Type > > sampleOnFaces(const interpolation< Type > &sampler, const labelUList &elements, const faceList &fcs, const pointField &pts, const Type &defaultValue=Type(Zero))
Loop for sampling volume elements to faces.
static autoPtr< sampledSurface > New(const word &name, const polyMesh &mesh, const dictionary &dict)
Return a reference to the selected surface.
const polyMesh & mesh() const noexcept
Access to the underlying mesh.
A class for managing temporary objects.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
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.
#define forAll(list, i)
Loop across all elements in list.