72 mutable std::unique_ptr<Map<label>> lookupMapPtr_;
110 const word& labelsName,
118 const zone& originalZone,
127 const zone& originalZone,
134 virtual ~zone() =
default;
144 label
localID(
const label globalID)
const;
149 return static_cast<const labelList&
>(*this);
166 const bool report =
false
virtual void clearAddressing()
Clear addressing (remove lookup maps and other auxiliary information)
label localID(const label globalID) const
Lookup local address in zone for given global index.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
virtual void writeDict(Ostream &os) const =0
Write dictionary.
virtual void clearPrimitives()
Clear primitive addressing.
TypeNameNoDebug("zone")
Runtime type information.
virtual ~zone()=default
Destructor.
Base class for mesh zones.
A class for handling words, derived from Foam::string.
virtual bool checkDefinition(const bool report=false) const =0
Check zone definition. Return true if in error.
virtual void movePoints(const pointField &pts)
Correct patch after moving points.
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.
friend Ostream & operator<<(Ostream &os, const zone &zn)
Ostream Operator.
OBJstream os(runTime.globalPath()/outputName)
virtual void write(Ostream &os) const
Write.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
Identifies a mesh zone by name and index, with optional physical type and group information.
const Map< label > & lookupMap() const
Demand-driven: the look-up map from global to local id.
const word & name() const noexcept
The zone name.
const labelList & addressing() const noexcept
The addressing used by the zone.