Go to the documentation of this file.
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,
103 zoneNames_.resize(1);
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);
int debug
Static debugging option.
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
A class for handling words, derived from Foam::string.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
A class for managing temporary objects.
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
static const boundBox invertedBox
A large inverted boundBox: min/max == +/- ROOTVGREAT.
static void checkOverlap(const word callerName, const boundBox &meshBounds, const boundBox &userBounds)
Check and warn if bounding boxes do not intersect.
Ostream & endl(Ostream &os)
Add newline and flush stream.
sampledCuttingSurface(const polyMesh &mesh, const word &surfaceType, const word &surfaceName, const bool triangulate=true, const boundBox &bounds=boundBox::invertedBox)
Construct from components.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.
static bitSet cellSelection(const polyMesh &mesh, const boundBox &userBounds, const wordRes &zoneNames, boundBox &meshBounds)
Define cell selection from bounding-box and zones.
Mesh consisting of general polyhedral cells.
void print(Ostream &os, int level=0) const
Print information.
bool interpolate() const noexcept
Same as isPointData()
virtual bool needsUpdate() const
Does the surface need an update?
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
An abstract class for surfaces with sampling.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool expire()
Mark the surface as needing an update.
Macros for easy insertion into run-time selection tables.
const word & name() const noexcept
Name of surface.
virtual tmp< scalarField > sample(const interpolation< scalar > &sampler) const
Sample volume field onto surface faces.
virtual bool update()
Update the surface as required.
const polyMesh & mesh() const noexcept
Access to the underlying mesh.
virtual void clearGeom() const
Additional cleanup when clearing the geometry.
A bounding box defined in terms of min/max extrema points.
Constructs a cutting surface through a mesh.
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
defineTypeNameAndDebug(combustionModel, 0)
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const