46 #ifndef Foam_pointZone_H 47 #define Foam_pointZone_H 155 const label newIndex = -1
212 static autoPtr<pointZone>
New 233 return static_cast<const labelList&
>(*this);
237 label
whichPoint(
const label globalPointID)
const;
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.
virtual void movePoints(const pointField &)
Correct patch after moving points.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
friend Ostream & operator<<(Ostream &os, const pointZone &zn)
Ostream Operator.
virtual bool checkDefinition(const bool report=false) const
Check zone definition. Return true if in error.
pointZone(const pointZone &)=delete
No copy construct.
vectorField pointField
pointField is a vectorField.
Base class for mesh zones.
virtual ~pointZone()=default
Destructor.
A class for handling words, derived from Foam::string.
const labelList & addressing() const noexcept
The addressing (point IDs) used for the zone.
virtual bool checkParallelSync(const bool report=false) const
Check whether zone is synchronised across coupled boundaries.
label whichPoint(const label globalPointID) const
Helper function to re-direct to zone::localID(...)
virtual void resetAddressing(pointZone &&zn)
Move reset addressing from another zone.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
label index() const noexcept
The index of this zone in the zone list.
TypeName("pointZone")
Runtime type information.
OBJstream os(runTime.globalPath()/outputName)
const pointZoneMesh & zoneMesh() const noexcept
Return reference to the zone mesh.
declareRunTimeSelectionTable(autoPtr, pointZone, dictionary,(const word &name, const dictionary &dict, const label index, const pointZoneMesh &zm),(name, dict, index, zm))
static const char *const labelsName
The name associated with the zone-labels dictionary entry ("pointLabels")
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
virtual void writeDict(Ostream &os) const
Write dictionary.
const word & name() const noexcept
The zone name.
autoPtr< List< label > > clone() const
Clone.
A class representing the concept of 0 (zero) that can be used to avoid manipulating objects known to ...
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.