OpenFOAM logo
The Open Source CFD Toolbox
  Programmer’s C++ Doxygen OpenCFD Solutions Contact OpenFOAM

ZoneMesh Class Template Reference

Inheritance diagram for ZoneMesh:

Inheritance graph
[legend]
Collaboration diagram for ZoneMesh:

Collaboration graph
[legend]
List of all members.

Detailed Description

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

Definition at line 72 of file ZoneMesh.H.


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 polyMesh & mesh () 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.
bool checkDefinition (const bool report=false) const
 Check zone definition. Return true if in error.
void movePoints (const pointField &)
 Correct zone mesh after moving points.
bool writeData (Ostream &) const
 writeData member function required by regIOobject

Friends

Ostream & operator (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

const polyMesh& mesh (  )  const [inline]

Return the mesh reference.

Definition at line 126 of file ZoneMesh.H.

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

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

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.

Referenced by ZoneID::active().

Here is the caller graph for this function:

void clearAddressing (  ) 

Clear addressing.

void clear (  ) 

Clear the zones.

Reimplemented from PtrList< ZoneType >.

bool checkDefinition ( const bool  report = false  )  const

Check zone definition. Return true if in error.

void movePoints ( const pointField &   ) 

Correct zone mesh after moving points.

bool writeData ( Ostream &   )  const [virtual]

writeData member function required by regIOobject

Implements regIOobject.


Friends And Related Function Documentation

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


The documentation for this class was generated from the following file:
  • src/OpenFOAM/meshes/polyMesh/zones/ZoneMesh/ZoneMesh.H
Copyright © 2000-2007 OpenCFD Ltd