35Foam::sampledMeshedSurface::sampleOnFaces
45 const labelList& elements = sampleElements_;
68 auto& values = tvalues.ref();
76 const auto& bField = sampler.
psi().boundaryField();
95 values[i] = bVals[bFacei];
105Foam::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],
Generic templated field type.
A List obtained as a section of another List.
void size(const label n)
Older name for setAddressableSize.
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
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 additional search methods and registered IO.
const polyBoundaryMesh & boundaryMesh() const
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.
static constexpr const zero Zero
Global zero (0)
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh > > &tdf1, const word &name, const dimensionSet &dimensions)
Global function forwards to reuseTmpDimensionedField::New.
#define forAll(list, i)
Loop across all elements in list.