40 sampledCuttingSurface,
48 Foam::bitSet Foam::sampledCuttingSurface::cellSelection(
const bool warn)
const 52 bitSet cellsToSelect =
55 mesh(), bounds_, zoneNames_, meshBounds
72 const word& surfaceType,
73 const word& surfaceName,
74 const bool triangulate,
82 triangulate_(triangulate),
89 const word& defaultSurfaceName,
98 triangulate_(
dict.getOrDefault(
"triangulate", true)),
101 if (!
dict.readIfPresent(
"zones", zoneNames_) &&
dict.found(
"zone"))
141 performCut(
mesh(), triangulate_, cellSelection(
true));
149 needsUpdate_ =
false;
159 return sampleOnFaces(sampler);
168 return sampleOnFaces(sampler);
177 return sampleOnFaces(sampler);
186 return sampleOnFaces(sampler);
195 return sampleOnFaces(sampler);
204 return sampleOnPoints(interpolator);
213 return sampleOnPoints(interpolator);
221 return sampleOnPoints(interpolator);
230 return sampleOnPoints(interpolator);
239 return sampleOnPoints(interpolator);
sampledCuttingSurface(const polyMesh &mesh, const word &surfaceType, const word &surfaceName, const bool triangulate=true, const boundBox &bounds=boundBox::null())
Construct from components.
bool interpolate() const noexcept
Same as isPointData()
void print(Ostream &os, int level=0) const
Print information.
void resize(const label len)
Adjust allocated size of list.
const polyMesh & mesh() const noexcept
Access to the underlying mesh.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
An abstract class for surfaces with sampling.
static bitSet cellSelection(const polyMesh &mesh, const boundBox &userBounds, const wordRes &zoneNames, boundBox &meshBounds)
Define cell selection from bounding-box and zones.
T & first()
Access first element of the list, position [0].
Ostream & endl(Ostream &os)
Add newline and flush stream.
A bounding box defined in terms of min/max extrema points.
Macros for easy insertion into run-time selection tables.
const word & name() const noexcept
Name of surface.
static void checkOverlap(const word callerName, const boundBox &meshBounds, const boundBox &userBounds)
Check and warn if bounding boxes do not intersect.
virtual void clearGeom() const
Additional cleanup when clearing the geometry.
virtual tmp< scalarField > sample(const interpolation< scalar > &sampler) const
Sample volume field onto surface faces.
A class for handling words, derived from Foam::string.
int debug
Static debugging option.
defineTypeNameAndDebug(combustionModel, 0)
virtual bool needsUpdate() const
Does the surface need an update?
virtual bool expire()
Mark the surface as needing an update.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
Mesh consisting of general polyhedral cells.
A class for managing temporary objects.
Constructs a cutting surface through a mesh.
virtual bool update()
Update the surface as required.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)