53 template<
class ZoneType,
class MeshType>
class MeshZones;
55 template<
class ZoneType,
class MeshType>
56 Ostream& operator<<(Ostream&, const MeshZones<ZoneType, MeshType>&);
62 template<
class ZoneType,
class MeshType>
65 public PtrList<ZoneType>,
71 const MeshType& mesh_;
74 mutable Map<label>* zoneMapPtr_;
83 MeshZones(
const MeshZones&);
86 void operator=(
const MeshZones<ZoneType, MeshType>&);
90 void calcZoneMap()
const;
117 const PtrList<ZoneType>&
128 const MeshType&
mesh()
const 193 friend Ostream& operator<< <ZoneType, MeshType>
label findZoneID(const word &zoneName) const
Find zone index given a name.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
IOobject(const word &name, const fileName &instance, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true)
Construct from name, instance, registry, io options.
bool checkParallelSync(const bool report=false) const
Check whether all procs have all zones and in same order. Return.
bool checkDefinition(const bool report=false) const
Check zone definition. Return true if in error.
void clear()
Clear the zones.
void movePoints(const pointField &)
Correct zones after moving points.
PackedBoolList findMatching(const wordRe &) const
Mark cells that match the zone specification.
wordList names() const
Return a list of zone names.
wordList types() const
Return a list of zone types.
A class for handling words, derived from string.
const MeshType & mesh() const
Return the mesh reference.
A wordRe is a word, but can also have a regular expression for matching words.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
const ZoneType & operator[](const word &) const
Return const reference to ZoneType by name.
const Map< label > & zoneMap() const
Map of zones containing zone index for all zoned elements.
label size() const
Return the number of elements in the UPtrList.
label whichZone(const label objectIndex) const
Given a global object index, return the zone it is in.
A templated 1D list of pointers to objects of type <T>, where the size of the array is known and used...
label findIndex(const wordRe &) const
Return zone index for the first match, return -1 if not found.
bool writeData(Ostream &) const
writeData member function required by regIOobject
void clearAddressing()
Clear addressing.
labelList findIndices(const wordRe &) const
Return zone indices for all matches.