Public Member Functions | Static Public Attributes | Friends | List of all members
ZoneMesh Class Reference

A list of mesh zones. More...

Inheritance diagram for ZoneMesh:
Inheritance graph
[legend]

Public Member Functions

 ZoneMesh (const IOobject &io, const MeshType &mesh)
 
 ZoneMesh (const IOobject &io, const MeshType &mesh, const label size)
 
 ZoneMesh (const IOobject &io, const MeshType &mesh, const PtrList< ZoneType > &pzm)
 
 ~ZoneMesh ()
 
const MeshType & mesh () const noexcept
 
const Map< label > & zoneMap () const
 
label whichZone (const label objectIndex) const
 
wordList types () const
 
wordList names () const
 
wordList names (const wordRe &matcher) const
 
wordList names (const wordRes &matcher) const
 
wordList sortedNames () const
 
wordList sortedNames (const wordRe &matcher) const
 
wordList sortedNames (const wordRes &matcher) const
 
labelList indices (const wordRe &matcher, const bool useGroups=true) const
 
labelList indices (const wordRes &matcher, const bool useGroups=true) const
 
label findIndex (const wordRe &key) const
 
label findIndex (const wordRes &matcher) const
 
label findZoneID (const word &zoneName) const
 
const ZoneType * cfindZone (const word &zoneName) const
 
ZoneType * findZone (const word &zoneName)
 
bitSet selection (const labelUList &zoneIds) const
 
bitSet selection (const wordRe &matcher, const bool useGroups=true) const
 
bitSet selection (const wordRes &matcher, const bool useGroups=true) const
 
const HashTable< labelList > & groupZoneIDs () const
 
void setGroup (const word &groupName, const labelUList &zoneIDs)
 
bool checkDefinition (const bool report=false) const
 
bool checkParallelSync (const bool report=false) const
 
void movePoints (const pointField &pts)
 
void clearAddressing ()
 
void clear ()
 
bool hasFaceAreas () const
 
const ZoneType & operator[] (const word &zoneName) const
 
ZoneType & operator[] (const word &zoneName)
 
ZoneType & operator() (const word &zoneName, const bool verbose=false)
 
void updateMetaData ()
 
bool writeData (Ostream &os) const
 
labelList findIndices (const wordRes &key) const
 

Static Public Attributes

static int disallowGenericZones
 

Friends

Ostreamoperator (Ostream &os, const ZoneMesh< ZoneType, MeshType > &zones)
 

Detailed Description

A list of mesh zones.

Source files

Definition at line 38 of file cellZoneMeshFwd.H.

Constructor & Destructor Documentation

◆ ZoneMesh() [1/3]

ZoneMesh ( const IOobject io,
const MeshType &  mesh 
)

Definition at line 200 of file ZoneMesh.C.

◆ ZoneMesh() [2/3]

ZoneMesh ( const IOobject io,
const MeshType &  mesh,
const label  size 
)

Definition at line 215 of file ZoneMesh.C.

◆ ZoneMesh() [3/3]

ZoneMesh ( const IOobject io,
const MeshType &  mesh,
const PtrList< ZoneType > &  pzm 
)

Definition at line 232 of file ZoneMesh.C.

◆ ~ZoneMesh()

~ZoneMesh ( )

Definition at line 259 of file ZoneMesh.C.

Member Function Documentation

◆ mesh()

const MeshType& mesh ( ) const
inlinenoexcept

Definition at line 138 of file ZoneMesh.H.

◆ zoneMap()

const Foam::Map< Foam::label > & zoneMap ( ) const

Definition at line 269 of file ZoneMesh.C.

◆ whichZone()

Foam::label whichZone ( const label  objectIndex) const

◆ types()

Foam::wordList types ( ) const

Definition at line 291 of file ZoneMesh.C.

◆ names() [1/3]

Foam::wordList names ( ) const

◆ names() [2/3]

Foam::wordList names ( const wordRe matcher) const

Definition at line 306 of file ZoneMesh.C.

◆ names() [3/3]

Foam::wordList names ( const wordRes matcher) const

Definition at line 316 of file ZoneMesh.C.

◆ sortedNames() [1/3]

Foam::wordList sortedNames ( ) const

Definition at line 326 of file ZoneMesh.C.

◆ sortedNames() [2/3]

Foam::wordList sortedNames ( const wordRe matcher) const

Definition at line 337 of file ZoneMesh.C.

◆ sortedNames() [3/3]

Foam::wordList sortedNames ( const wordRes matcher) const

Definition at line 350 of file ZoneMesh.C.

◆ indices() [1/2]

labelList indices ( const wordRe matcher,
const bool  useGroups = true 
) const

◆ indices() [2/2]

labelList indices ( const wordRes matcher,
const bool  useGroups = true 
) const

◆ findIndex() [1/2]

Foam::label findIndex ( const wordRe key) const

◆ findIndex() [2/2]

Foam::label findIndex ( const wordRes matcher) const

Definition at line 498 of file ZoneMesh.C.

◆ findZoneID()

Foam::label findZoneID ( const word zoneName) const

◆ cfindZone()

const ZoneType * cfindZone ( const word zoneName) const

Definition at line 546 of file ZoneMesh.C.

◆ findZone()

ZoneType * findZone ( const word zoneName)

Definition at line 582 of file ZoneMesh.C.

◆ selection() [1/3]

Foam::bitSet selection ( const labelUList zoneIds) const

Definition at line 592 of file ZoneMesh.C.

◆ selection() [2/3]

bitSet selection ( const wordRe matcher,
const bool  useGroups = true 
) const

◆ selection() [3/3]

bitSet selection ( const wordRes matcher,
const bool  useGroups = true 
) const

◆ groupZoneIDs()

const Foam::HashTable< Foam::labelList > & groupZoneIDs ( ) const

Definition at line 646 of file ZoneMesh.C.

◆ setGroup()

void setGroup ( const word groupName,
const labelUList zoneIDs 
)

Definition at line 659 of file ZoneMesh.C.

◆ checkDefinition()

bool checkDefinition ( const bool  report = false) const

Definition at line 726 of file ZoneMesh.C.

◆ checkParallelSync()

bool checkParallelSync ( const bool  report = false) const

Definition at line 745 of file ZoneMesh.C.

◆ movePoints()

void movePoints ( const pointField pts)

Definition at line 821 of file ZoneMesh.C.

◆ clearAddressing()

void clearAddressing ( )

◆ clear()

void clear ( )

Definition at line 717 of file ZoneMesh.C.

Referenced by polyMeshAdder::add(), cellTable::addCellZones(), blockMesh::mesh(), and fvMeshTools::newMesh().

Here is the caller graph for this function:

◆ hasFaceAreas()

bool hasFaceAreas ( ) const
inline

Definition at line 266 of file ZoneMesh.H.

◆ operator[]() [1/2]

const ZoneType & operator[] ( const word zoneName) const

Definition at line 860 of file ZoneMesh.C.

◆ operator[]() [2/2]

ZoneType & operator[] ( const word zoneName)

Definition at line 880 of file ZoneMesh.C.

◆ operator()()

ZoneType & operator() ( const word zoneName,
const bool  verbose = false 
)

Definition at line 900 of file ZoneMesh.C.

◆ updateMetaData()

void updateMetaData ( )

Definition at line 833 of file ZoneMesh.C.

◆ writeData()

bool writeData ( Ostream os) const

Definition at line 849 of file ZoneMesh.C.

◆ findIndices()

labelList findIndices ( const wordRes key) const
inline

Definition at line 324 of file ZoneMesh.H.

Friends And Related Function Documentation

◆ operator

Ostream& operator ( Ostream os,
const ZoneMesh< ZoneType, MeshType > &  zones 
)
friend

Member Data Documentation

◆ disallowGenericZones

int disallowGenericZones
static

Definition at line 102 of file ZoneMesh.H.


The documentation for this class was generated from the following files: