46#ifndef Foam_pointZone_H
47#define Foam_pointZone_H
80 static constexpr const char*
labelsName() {
return "pointLabels"; }
153 const label newIndex = -1
164 const label newIndex = -1
206 const label newIndex = -1
255 label
whichPoint(
const label meshPointID)
const
autoPtr< List< label > > clone() const
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
static autoPtr< T > New(Args &&... args)
Construct autoPtr with forwarding arguments.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
declareRunTimeSelectionTable(autoPtr, pointZone, dictionary,(const word &name, const dictionary &dict, const label index, const pointZoneMesh &zm),(name, dict, index, zm))
virtual bool checkDefinition(const bool report=false) const
Check zone definition.
static constexpr const char * labelsName()
The name associated with the zone-labels dictionary entry.
virtual void movePoints(const pointField &)
Nothing to correct after moving points.
label whichPoint(const label meshPointID) const
The local index of the given mesh point, -1 if not in the zone.
TypeName("pointZone")
Runtime type information.
const pointZoneMesh & zoneMesh() const noexcept
Return reference to the zone mesh.
virtual autoPtr< pointZone > clone(const pointZoneMesh &zm, const label index, const labelUList &addr) const
Construct and return a clone, resetting the point list and zone mesh.
virtual autoPtr< pointZone > clone(const pointZoneMesh &zm, const label newIndex=-1) const
Construct and return a clone, resetting the zone mesh.
label max_index() const noexcept
The maximum index the zone may contain == mesh nPoints().
void writeDict(Ostream &os) const
Deprecated(2025-09) Write dictionary.
static autoPtr< pointZone > New(const word &name, const dictionary &dict, const label index, const pointZoneMesh &zm)
Return a pointer to a new point zone.
void operator=(const pointZone &zn)
Assign addressing, clearing demand-driven data.
friend Ostream & operator<<(Ostream &os, const pointZone &zn)
Ostream Operator.
virtual void resetAddressing(pointZone &&zn)
Move reset addressing from another zone.
virtual bool checkParallelSync(const bool report=false) const
Check whether zone is synchronised across coupled boundaries.
virtual ~pointZone()=default
Destructor.
pointZone(const pointZone &)=delete
No copy construct.
A class for handling words, derived from Foam::string.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
label index() const noexcept
The index of this zone in the zone list.
const word & name() const noexcept
The zone name.
virtual bool checkDefinition(const bool report=false) const =0
Check zone definition. Return true if in error.
label localID(const label globalID) const
Lookup local address in zone for given global index.
zone()
Default construct: empty zone with name="", index=0.
const labelList & addressing() const noexcept
The addressing used by the zone.
OBJstream os(runTime.globalPath()/outputName)
ZoneMesh< pointZone, polyMesh > pointZoneMesh
A ZoneMesh with pointZone content on a polyMesh.
List< label > labelList
A List of labels.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces).
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
vectorField pointField
pointField is a vectorField.
UList< label > labelUList
A UList of labels.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes).
#define FOAM_DEPRECATED_FOR(since, replacement)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.