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

cellZoneSet Class Reference

Like cellSet but updates cellZone when writing. More...

#include <meshTools/cellZoneSet.H>


Detailed Description

Like cellSet but updates cellZone when writing.

Source files

Definition at line 50 of file cellZoneSet.H.

Inheritance diagram for cellZoneSet:
Collaboration diagram for cellZoneSet:

List of all members.

Public Member Functions

 TypeName ("cellZoneSet")
 Runtime type information.
 cellZoneSet (const polyMesh &mesh, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE)
 Construct from objectRegistry and name.
 cellZoneSet (const polyMesh &mesh, const word &name, const label, writeOption w=NO_WRITE)
 Construct from additional size of labelHashSet.
 cellZoneSet (const polyMesh &mesh, const word &name, const topoSet &, writeOption w=NO_WRITE)
 Construct from existing set.
virtual  ~cellZoneSet ()
const labelList &  addressing () const
labelList &  addressing ()
void  updateSet ()
 Sort addressing and make cellSet part consistent with addressing.
virtual void  invert (const label maxLen)
 Invert contents. (insert all members 0..maxLen-1 which were not in.
virtual void  subset (const topoSet &set)
 Subset contents. Only elements present in both sets remain.
virtual void  addSet (const topoSet &set)
 Add elements present in set.
virtual void  deleteSet (const topoSet &set)
 Delete elements present in set.
virtual void  sync (const polyMesh &mesh)
 Sync cellZoneSet across coupled patches.
virtual void  writeDebug (Ostream &os, const primitiveMesh &, const label maxLen) const
 Write maxLen items with label and coordinates.
virtual bool  writeObject (IOstream::streamFormat, IOstream::versionNumber, IOstream::compressionType) const
 Write cellZone.
virtual void  updateMesh (const mapPolyMesh &morphMap)
 Update any stored data for new labels.
virtual label  maxSize (const polyMesh &mesh) const
 Return max index+1.

Constructor & Destructor Documentation

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

Construct from additional size of labelHashSet.

Definition at line 99 of file cellZoneSet.C.

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

Construct from existing set.

Definition at line 115 of file cellZoneSet.C.

~cellZoneSet (  ) [virtual]

Definition at line 132 of file cellZoneSet.C.


Member Function Documentation

TypeName ( "cellZoneSet"    )

Runtime type information.

const labelList& addressing (  ) const [inline]

Definition at line 104 of file cellZoneSet.H.

Referenced by cellZoneSet::addSet(), and setToCellZone::applyToSet().

labelList& addressing (  ) [inline]

Definition at line 109 of file cellZoneSet.H.

void invert ( const label   maxLen  ) [virtual]

Invert contents. (insert all members 0..maxLen-1 which were not in.

set)

Reimplemented from topoSet.

Definition at line 138 of file cellZoneSet.C.

References HashTable< nil, label, Hash< label > >::found(), List< T >::setSize(), and cellZoneSet::updateSet().

void subset ( const topoSet &   set  ) [virtual]

Subset contents. Only elements present in both sets remain.

Reimplemented from topoSet.

Definition at line 155 of file cellZoneSet.C.

References DynamicList< T, SizeInc, SizeMult, SizeDiv >::append(), forAll, HashTable< nil, label, Hash< label > >::found(), List< T >::size(), List< T >::transfer(), and cellZoneSet::updateSet().

void addSet ( const topoSet &   set  ) [virtual]
void deleteSet ( const topoSet &   set  ) [virtual]

Delete elements present in set.

Reimplemented from topoSet.

Definition at line 197 of file cellZoneSet.C.

References List< T >::append(), forAll, List< T >::size(), List< T >::transfer(), and cellZoneSet::updateSet().

void sync ( const polyMesh &   mesh  ) [virtual]

Sync cellZoneSet across coupled patches.

Reimplemented from cellSet.

Definition at line 219 of file cellZoneSet.C.

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

Write maxLen items with label and coordinates.

Reimplemented from cellSet.

Definition at line 299 of file cellZoneSet.C.

References cellSet::writeDebug().

void updateMesh ( const mapPolyMesh &   morphMap  ) [virtual]

Update any stored data for new labels.

Reimplemented from cellSet.

Definition at line 274 of file cellZoneSet.C.

References forAll, mapPolyMesh::reverseCellMap(), List< T >::setSize(), List< T >::size(), List< T >::transfer(), and cellZoneSet::updateSet().

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

Return max index+1.

Reimplemented from cellSet.

Definition at line 223 of file cellZoneSet.C.

References primitiveMesh::nCells().


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