OpenFOAM logo
Open Source CFD Toolkit

ZoneMesh Class Template Reference

Inheritance diagram for ZoneMesh:

Inheritance graph
[legend]
Collaboration diagram for ZoneMesh:

Collaboration graph
[legend]
List of all members.

template<class ZoneType>
class Foam::ZoneMesh< ZoneType >


Public Member Functions

 ZoneMesh (const IOobject &, const polyMesh &)
 Read constructor given IOobject and a polyMesh reference.
 ZoneMesh (const IOobject &, const polyMesh &, const label size)
 Construct given size.
 ~ZoneMesh ()
const polyMeshmesh () const
 Return the mesh reference.
const Map< label > & zoneMap () const
 Map of zones containing zone index for all zoned elements.
label whichZone (const label objectIndex) const
 Given a global object index, return the zone it is in. If.
wordList types () const
 Return a list of zone types.
wordList names () const
 Return a list of zone names.
label findZoneID (const word &zoneName) const
 Find zone index given a name.
void clearAddressing ()
 Clear addressing.
void clear ()
 Clear the zones.
void movePoints (const pointField &)
 Correct zone mesh after moving points.
bool writeData (Ostream &) const
 writeData member function required by regIOobject

Friends

Ostreamoperator (Ostream &, const ZoneMesh< ZoneType > &)

Constructor & Destructor Documentation

ZoneMesh const IOobject ,
const polyMesh
 

Read constructor given IOobject and a polyMesh reference.

ZoneMesh const IOobject ,
const polyMesh ,
const label  size
 

Construct given size.

~ZoneMesh  ) 
 


Member Function Documentation

void clear  ) 
 

Clear the zones.

Reimplemented from PtrList< ZoneType >.

void clearAddressing  ) 
 

Clear addressing.

label findZoneID const word zoneName  )  const
 

Find zone index given a name.

Referenced by ZoneID< faceZone >::active().

const polyMesh& mesh  )  const [inline]
 

Return the mesh reference.

Definition at line 126 of file ZoneMesh.H.

void movePoints const pointField  ) 
 

Correct zone mesh after moving points.

wordList names  )  const
 

Return a list of zone names.

wordList types  )  const
 

Return a list of zone types.

label whichZone const label  objectIndex  )  const
 

Given a global object index, return the zone it is in. If.

object does not belong to any zones, return -1

bool writeData Ostream  )  const [virtual]
 

writeData member function required by regIOobject

Implements regIOobject.

const Map<label>& zoneMap  )  const
 

Map of zones containing zone index for all zoned elements.

Return -1 if the object is not in the zone


Friends And Related Function Documentation

Ostream& operator Ostream ,
const ZoneMesh< ZoneType > & 
[friend]
 


The documentation for this class was generated from the following file:
For further information go to www.openfoam.org