44 #ifndef Foam_cellZone_H 45 #define Foam_cellZone_H 153 const label newIndex = -1
210 static autoPtr<cellZone>
New 231 return static_cast<const labelList&
>(*this);
235 label
whichCell(
const label globalCellID)
const;
label whichCell(const label globalCellID) const
Helper function to re-direct to zone::localID(...)
TypeName("cellZone")
Runtime type information.
virtual void resetAddressing(cellZone &&zn)
Move reset addressing from another zone.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
static autoPtr< cellZone > New(const word &name, const dictionary &dict, const label index, const cellZoneMesh &zm)
Return a pointer to a new cell zone created on freestore from dictionary.
void operator=(const cellZone &zn)
Assign addressing, clearing demand-driven data.
virtual bool checkParallelSync(const bool report=false) const
Check whether zone is synchronised across coupled boundaries.
virtual bool checkDefinition(const bool report=false) const
Check zone definition. Return true if in error.
virtual ~cellZone()=default
Destructor.
const cellZoneMesh & zoneMesh() const noexcept
Return reference to the zone mesh.
Base class for mesh zones.
A class for handling words, derived from Foam::string.
friend Ostream & operator<<(Ostream &os, const cellZone &zn)
Ostream Operator.
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.
declareRunTimeSelectionTable(autoPtr, cellZone, dictionary,(const word &name, const dictionary &dict, const label index, const cellZoneMesh &zm),(name, dict, index, zm))
OBJstream os(runTime.globalPath()/outputName)
cellZone(const cellZone &)=delete
No copy construct.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
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 const char *const labelsName
The name associated with the zone-labels dictionary entry ("cellLabels")
virtual void writeDict(Ostream &os) const
Write dictionary.
static autoPtr< T > New(Args &&... args)
Construct autoPtr with forwarding arguments.
const labelList & addressing() const noexcept
The addressing (cell IDs) used for the zone.