Go to the documentation of this file.
55 template<
class ZoneType,
class MeshType>
class ZoneMesh;
57 template<
class ZoneType,
class MeshType>
58 Ostream&
operator<<(Ostream& os,
const ZoneMesh<ZoneType, MeshType>& zones);
65 template<
class ZoneType,
class MeshType>
68 public PtrList<ZoneType>,
74 const MeshType& mesh_;
77 mutable Map<label>* zoneMapPtr_;
86 void calcZoneMap()
const;
89 template<
class UnaryMatchPredicate>
92 const PtrList<ZoneType>& list,
93 const UnaryMatchPredicate& matcher,
98 template<
class UnaryMatchPredicate>
101 const PtrList<ZoneType>& list,
102 const UnaryMatchPredicate& matcher
106 template<
class UnaryMatchPredicate>
107 static label findIndexImpl
109 const PtrList<ZoneType>& list,
110 const UnaryMatchPredicate& matcher
115 ZoneMesh(
const ZoneMesh&) =
delete;
118 void operator=(
const ZoneMesh<ZoneType, MeshType>&) =
delete;
140 const MeshType&
mesh,
148 const MeshType&
mesh,
160 const MeshType&
mesh()
const
171 label
whichZone(
const label objectIndex)
const;
295 ZoneType&
operator()(
const word& zoneName,
const bool verbose=
false);
300 friend Ostream& operator<< <ZoneType, MeshType>
const Map< label > & zoneMap() const
Map of zones containing zone index for all zoned elements.
bool checkDefinition(const bool report=false) const
Check zone definition. Return true if in error.
List< label > labelList
A List of labels.
void clear()
Clear the zones.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
A class for handling words, derived from Foam::string.
bool writeData(Ostream &os) const
writeData member function required by regIOobject
const ZoneType * cfindZone(const word &zoneName) const
Find zone by name and return const pointer, nullptr on error.
A bitSet stores bits (elements with only two states) in packed internal format and supports a variety...
const MeshType & mesh() const
Return the mesh reference.
label findIndex(const keyType &key) const
Zone index for the first match, return -1 if not found.
A wordRe is a Foam::word, but can contain a regular expression for matching words or strings.
List< word > wordList
A List of words.
Ostream & operator<<(Ostream &, const boundaryPatch &p)
Write boundaryPatch as dictionary entries (without surrounding braces)
A class for handling keywords in dictionaries.
void movePoints(const pointField &pts)
Correct zone mesh after moving points.
A list of pointers to objects of type <T>, with allocation/deallocation management of the pointers....
labelList findIndices(const keyType &key) const
Identical to the indices() method (AUG-2018)
label whichZone(const label objectIndex) const
Given a global object index, return the zone it is in.
label findZoneID(const word &zoneName) const
Find zone index by name, return -1 if not found.
wordList names() const
A list of the zone names.
wordList sortedNames() const
Sorted list of the zone names.
A List of wordRe with additional matching capabilities.
class FOAM_DEPRECATED_FOR(2017-05, "Foam::Enum") NamedEnum
static int disallowGenericZones
Debug switch to disallow the use of generic zones.
const ZoneType & operator[](const word &zoneName) const
Return const reference to zone by name.
bitSet selection(const labelUList &zoneIds) const
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
void clearAddressing()
Clear addressing.
labelList indices(const keyType &key) const
Return zone indices for all matches.
ZoneType * findZone(const word &zoneName)
Find zone by name and return pointer, nullptr on error.
bool checkParallelSync(const bool report=false) const
Check whether all procs have all zones and in same order.
ZoneType & operator()(const word &zoneName, const bool verbose=false)
wordList types() const
Return a list of zone types.