FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

cellSet Class Reference

A collection of cell labels. More...

#include <meshTools/cellSet.H>


Detailed Description

A collection of cell labels.

Source files

Definition at line 49 of file cellSet.H.

Inheritance diagram for cellSet:
Collaboration diagram for cellSet:

List of all members.

Public Member Functions

 TypeName ("cellSet")
 Runtime type information.
 cellSet (const IOobject &obj)
 Construct from IOobject. No checking.
 cellSet (const polyMesh &mesh, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE)
 Construct from polyMesh and name. Checks for valid cell ids.
 cellSet (const polyMesh &mesh, const word &name, const label sizes, writeOption w=NO_WRITE)
 Construct empty from size of labelHashSet.
 cellSet (const polyMesh &mesh, const word &name, const topoSet &, writeOption w=NO_WRITE)
 Construct from existing set.
 cellSet (const polyMesh &mesh, const word &name, const labelHashSet &, writeOption w=NO_WRITE)
 Construct from labelHashSet.
 cellSet (const Time &, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE)
 Construct from objectRegistry and name.
 cellSet (const Time &, const word &name, const label size, writeOption w=NO_WRITE)
 Construct empty from objectRegistry.
 cellSet (const Time &, const word &name, const labelHashSet &, writeOption w=NO_WRITE)
 Construct from labelHashSet.
virtual  ~cellSet ()
virtual void  sync (const polyMesh &mesh)
 Sync cellSet across coupled patches.
virtual label  maxSize (const polyMesh &mesh) const
 Return max index+1.
virtual void  updateMesh (const mapPolyMesh &morphMap)
 Update any stored data for new labels.
virtual void  writeDebug (Ostream &os, const primitiveMesh &, const label maxLen) const
 Write maxLen items with label and coordinates.

Constructor & Destructor Documentation

cellSet ( const IOobject &   obj  )

Construct from IOobject. No checking.

Definition at line 48 of file cellSet.C.

cellSet ( const polyMesh &   mesh,
const word &   name,
readOption   r = MUST_READ,
writeOption   w = NO_WRITE  
)

Construct from polyMesh and name. Checks for valid cell ids.

Definition at line 55 of file cellSet.C.

References primitiveMesh::nCells().

cellSet ( const polyMesh &   mesh,
const word &   name,
const label   sizes,
writeOption   w = NO_WRITE  
)

Construct empty from size of labelHashSet.

Definition at line 70 of file cellSet.C.

cellSet ( const polyMesh &   mesh,
const word &   name,
const topoSet &   set,
writeOption   w = NO_WRITE  
)

Construct from existing set.

Definition at line 82 of file cellSet.C.

cellSet ( const polyMesh &   mesh,
const word &   name,
const labelHashSet &   set,
writeOption   w = NO_WRITE  
)

Construct from labelHashSet.

Definition at line 94 of file cellSet.C.

cellSet ( const Time &   runTime,
const word &   name,
readOption   r = MUST_READ,
writeOption   w = NO_WRITE  
)

Construct from objectRegistry and name.

Definition at line 107 of file cellSet.C.

cellSet ( const Time &   runTime,
const word &   name,
const label   size,
writeOption   w = NO_WRITE  
)

Construct empty from objectRegistry.

Definition at line 131 of file cellSet.C.

cellSet ( const Time &   runTime,
const word &   name,
const labelHashSet &   set,
writeOption   w = NO_WRITE  
)

Construct from labelHashSet.

Definition at line 155 of file cellSet.C.

~cellSet (  ) [virtual]

Definition at line 180 of file cellSet.C.


Member Function Documentation

TypeName ( "cellSet"    )

Runtime type information.

virtual void sync ( const polyMesh &   mesh  ) [inline, virtual]

Sync cellSet across coupled patches.

Reimplemented from topoSet.

Reimplemented in cellZoneSet.

Definition at line 147 of file cellSet.H.

label maxSize ( const polyMesh &   mesh  ) const [virtual]

Return max index+1.

Reimplemented from topoSet.

Reimplemented in cellZoneSet.

Definition at line 186 of file cellSet.C.

References primitiveMesh::nCells().

void updateMesh ( const mapPolyMesh &   morphMap  ) [virtual]

Update any stored data for new labels.

Reimplemented from topoSet.

Reimplemented in cellZoneSet.

Definition at line 192 of file cellSet.C.

References mapPolyMesh::reverseCellMap(), and topoSet::updateLabels().

void writeDebug ( Ostream &   os,
const primitiveMesh &   mesh,
const label   maxLen  
) const [virtual]

Write maxLen items with label and coordinates.

Reimplemented from topoSet.

Reimplemented in cellZoneSet.

Definition at line 199 of file cellSet.C.

References primitiveMesh::cellCentres(), and topoSet::writeDebug().

Referenced by cellZoneSet::writeDebug().


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