56 const dictionary&
dict
62 const dictionary* dictptr =
nullptr;
63 coordSystem::cartesian cs;
85 cs = coordSystem::cartesian(*dictptr);
92 const point orig = cs.globalPosition(pln.origin());
93 const vector norm = cs.globalVector(pln.normal());
97 <<
" origin:" << pln.origin()
98 <<
" normal:" << pln.normal()
100 <<
" origin:" << orig
101 <<
" normal:" << norm
105 pln =
plane(orig, norm);
131 const plane& planeDesc,
133 const bool triangulate
140 triangulate_(triangulate),
145 if (!zoneNames_.
empty())
151 Info<<
" not found!";
169 bounds_(
dict.getOrDefault(
"bounds",
boundBox::invertedBox)),
170 triangulate_(
dict.getOrDefault(
"triangulate", true)),
183 <<
" normal:" <<
normal();
187 Info<<
" bounds:" << bounds_;
190 if (!zoneNames_.
empty())
196 Info<<
" not found!";
236 performCut(
mesh(), triangulate_, cellSelection(
true));
244 needsUpdate_ =
false;
254 return sampleOnFaces(sampler);
263 return sampleOnFaces(sampler);
272 return sampleOnFaces(sampler);
281 return sampleOnFaces(sampler);
290 return sampleOnFaces(sampler);
299 return sampleOnPoints(interpolator);
308 return sampleOnPoints(interpolator);
316 return sampleOnPoints(interpolator);
325 return sampleOnPoints(interpolator);
334 return sampleOnPoints(interpolator);
340 os <<
"sampledPlane: " <<
name() <<
" :"
343 <<
" triangulate:" << triangulate_;
347 os <<
" faces:" << faces().size()
Macros for easy insertion into run-time selection tables.
#define addNamedToRunTimeSelectionTable(baseType, thisType, argNames, lookupName)
Add to construction table with 'lookupName' as the key.
Minimal example by using system/controlDict.functions:
void resize(const label len)
Adjust allocated size of list.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
static autoPtr< Time > New()
Construct (dummy) Time - no functionObjects or libraries.
T & first()
Return the first element of the list.
bool empty() const noexcept
True if the UList is empty (ie, size() is zero)
void size(const label n)
Older name for setAddressableSize.
label findIndex(const wordRe &key) const
Zone index for the first match, return -1 if not found.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
A bounding box defined in terms of min/max extrema points.
bool valid() const
Bounding box is non-inverted.
Constructs cutting plane through a mesh.
static int debug
Debug information.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
dictionary * findDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX)
Find and return a sub-dictionary pointer if present.
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
Abstract base class for volume field interpolation.
scalar print()
Print to screen.
Geometric class that creates a 3D plane and can return the intersection point between a line and the ...
plane()
Construct zero-initialised.
const point & origin() const noexcept
The plane base point.
const vector & normal() const noexcept
The plane unit normal.
Mesh consisting of general polyhedral cells.
const cellZoneMesh & cellZones() const noexcept
Return cell zone mesh.
A sampledSurface defined by a plane which cuts the mesh using the cuttingPlane alorithm....
virtual bool expire()
Mark the surface as needing an update.
virtual bool needsUpdate() const
Does the surface need an update?
virtual bool update()
Update the surface as required.
An abstract class for surfaces with sampling.
const word & name() const noexcept
Name of surface.
virtual void clearGeom() const
Additional cleanup when clearing the geometry.
const polyMesh & mesh() const noexcept
Access to the underlying mesh.
bool interpolate() const noexcept
Same as isPointData()
A class for managing temporary objects.
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
A List of wordRe with additional matching capabilities.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
OBJstream os(runTime.globalPath()/outputName)
#define DebugInfo
Report an information message using Foam::Info.
messageStream Info
Information stream (stdout output on master, null elsewhere)
vector point
Point is a vector.
Ostream & endl(Ostream &os)
Add newline and flush stream.
FlatOutput::OutputAdaptor< Container, Delimiters > flatOutput(const Container &obj, Delimiters delim)
Global flatOutput() function with specified output delimiters.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
prefixOSstream Pout
OSstream wrapped stdout (std::cout) with parallel prefix.