Go to the documentation of this file.
35 Foam::sampledMeshedSurface::sampleOnFaces
45 const labelList& elements = sampleElements_;
68 auto&
values = tvalues.ref();
76 const auto& bField = sampler.
psi().boundaryField();
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],
static autoPtr< sampledSurface > New(const word &name, const polyMesh &mesh, const dictionary &dict)
A polyBoundaryMesh is a polyPatch list with additional search methods and registered IO.
static tmp< Field< Type > > sampleOnFaces(const interpolation< Type > &sampler, const labelUList &elements, const faceList &fcs, const pointField &pts, const Type &defaultValue=Type(Zero))
A class for managing temporary objects.
static constexpr const zero Zero
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
A List obtained as a section of another List.
const polyBoundaryMesh & boundaryMesh() const
const GeometricField< Type, fvPatchField, volMesh > & psi() const
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tdf1, const word &name, const dimensionSet &dimensions)
virtual const pointField & points() const
label nInternalFaces() const noexcept
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
const polyMesh & mesh() const noexcept
virtual const faceList & faces() const
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
virtual Type interpolate(const vector &position, const label celli, const label facei=-1) const =0