Go to the documentation of this file.
53 Foam::bitSet Foam::sampledPlane::cellSelection(
const bool warn)
const
72 const plane& planeDesc,
74 const bool triangulate
81 triangulate_(triangulate),
86 if (!zoneNames_.empty())
116 zoneNames_.resize(1);
123 if (
dict.
found(coordinateSystem::typeName_()))
129 plane& pln = planeDesc();
137 <<
" origin:" << origin()
138 <<
" normal:" << normal()
139 <<
" defined within a local coordinateSystem" <<
endl;
143 pln =
plane(orig, norm);
150 <<
" origin:" << origin()
151 <<
" normal:" << normal();
155 Info<<
" bounds:" << bounds_;
158 if (!zoneNames_.empty())
164 Info<<
" not found!";
204 performCut(
mesh(), triangulate_, cellSelection(
true));
212 needsUpdate_ =
false;
222 return sampleOnFaces(sampler);
231 return sampleOnFaces(sampler);
240 return sampleOnFaces(sampler);
249 return sampleOnFaces(sampler);
258 return sampleOnFaces(sampler);
267 return sampleOnPoints(interpolator);
276 return sampleOnPoints(interpolator);
284 return sampleOnPoints(interpolator);
293 return sampleOnPoints(interpolator);
302 return sampleOnPoints(interpolator);
308 os <<
"sampledPlane: " <<
name() <<
" :"
311 <<
" triangulate:" << triangulate_
312 <<
" faces:" << faces().
size()
313 <<
" points:" <<
points().size();
sampledPlane(const word &name, const polyMesh &mesh, const plane &planeDesc, const wordRes &zones=wordRes(), const bool triangulate=true)
Construct from components.
int debug
Static debugging option.
point globalPosition(const point &local) const
From local coordinate position to global (cartesian) position.
const vector & normal() const
The plane unit normal.
virtual bool update()
Update the surface as required.
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...
virtual bool expire()
Mark the surface as needing an update.
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.
Constructs cutting plane through a mesh.
static const boundBox invertedBox
A large inverted boundBox: min/max == +/- ROOTVGREAT.
static constexpr direction size()
Return the number of elements in the VectorSpace = Ncmpts.
const cellZoneMesh & cellZones() const
Return cell zone mesh.
virtual tmp< scalarField > sample(const interpolation< scalar > &sampler) const
Sample volume field onto surface faces.
label findIndex(const keyType &key) const
Return zone index for the first match, return -1 if not found.
Ostream & endl(Ostream &os)
Add newline and flush stream.
T lookupOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const
prefixOSstream Pout
An Ostream wrapper for parallel output to std::cout.
Mesh consisting of general polyhedral cells.
Geometric class that creates a 3D plane and can return the intersection point between a line and the ...
virtual bool needsUpdate() const
Does the surface need an update?
messageStream Info
Information stream (uses stdout - output is on the master only)
word name(const complex &c)
Return string representation of complex.
vector globalVector(const vector &local) const
From local to global (cartesian) vector components.
static autoPtr< coordinateSystem > New(word modelType, const objectRegistry &obr, const dictionary &dict)
addNamedToRunTimeSelectionTable(topoSetCellSource, badQualityToCell, word, badQuality)
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,...
Macros for easy insertion into run-time selection tables.
const point & origin() const
The plane base point.
virtual void print(Ostream &os) const
Print information.
FlatOutput< Container > flatOutput(const Container &obj, label len=0)
Global flatOutput function.
A Cartesian coordinate system.
const word & name() const
Name of surface.
Ostream & print(Ostream &os, UIntType value, char off='0', char on='1')
Print 0/1 bits in the (unsigned) integral type.
A List of wordRe with additional matching capabilities.
virtual void clearGeom() const
Additional cleanup when clearing the geometry.
const polyMesh & mesh() const
Access to the underlying mesh.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
bool interpolate() const
Interpolation to nodes requested for surface.
defineTypeNameAndDebug(combustionModel, 0)
bitSet cellSelection(const polyMesh &mesh, const boundBox &userBounds, const wordRes &zoneNames, const word callerName, const bool warn) const
Define cell selection from bounding-box and zones.
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const