212 label
whichCell(
const label globalCellID)
const;
autoPtr< List< label > > clone() const
Clone.
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.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
virtual bool checkDefinition(const bool report=false) const
Check zone definition. Return true if in error.
void operator=(const cellZone &zn)
Assign addressing, clearing demand-driven data.
static autoPtr< cellZone > New(const word &name, const dictionary &dict, const label index, const cellZoneMesh &zm)
label whichCell(const label globalCellID) const
Helper function to re-direct to zone::localID(...)
virtual bool checkParallelSync(const bool report=false) const
Check whether zone is synchronised across coupled boundaries.
declareRunTimeSelectionTable(autoPtr, cellZone, dictionary,(const word &name, const dictionary &dict, const label index, const cellZoneMesh &zm),(name, dict, index, zm))
virtual autoPtr< cellZone > clone(const labelUList &addr, const label index, const cellZoneMesh &zm) const
virtual autoPtr< cellZone > clone(const cellZoneMesh &zm) const
Construct and return a clone, resetting the zone mesh.
static const char *const labelsName
friend Ostream & operator<<(Ostream &os, const cellZone &zn)
Ostream Operator.
const cellZoneMesh & zoneMesh() const noexcept
Return reference to the zone mesh.
virtual void writeDict(Ostream &os) const
Write dictionary.
TypeName("cellZone")
Runtime type information.
virtual ~cellZone()=default
Destructor.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling words, derived from Foam::string.
label index() const noexcept
The index of this zone in the zone list.
const word & name() const noexcept
The zone name.
Base class for mesh zones.
OBJstream os(runTime.globalPath()/outputName)
List< label > labelList
A List of labels.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
UList< label > labelUList
A UList of labels.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes)
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.