Go to the documentation of this file.
40 Foam::sampledThresholdCellFaces::sampleOnFaces
49 const label len = faces().size();
52 auto&
values = tvalues.ref();
57 for (label i=0; i < len; ++i)
59 const label celli = elements[i];
60 const point pt = fcs[i].centre(pts);
71 Foam::sampledThresholdCellFaces::sampleOnPoints
82 auto&
values = tvalues.ref();
91 const face&
f = fcs[i];
92 const label celli = elements[i];
94 for (
const label pointi :
f)
96 if (pointDone.
set(pointi))
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
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.
void set(const bitSet &bitset)
Set specified bits from another bitset.
#define forAll(list, i)
Loop across all elements in list.
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.
A face is a list of labels corresponding to mesh vertices.
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.