OpenFOAM logo
Open Source CFD Toolkit

topoSet Class Reference

Inheritance diagram for topoSet:

Inheritance graph
[legend]
Collaboration diagram for topoSet:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 TypeName ("topoSet")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, topoSet, word,(const polyMesh &mesh, const word &name, readOption r, writeOption w),(mesh, name, r, w))
 declareRunTimeSelectionTable (autoPtr, topoSet, size,(const polyMesh &mesh, const word &name, const label size, writeOption w),(mesh, name, size, w))
 topoSet (const IOobject &, const word &wantedType)
 Construct from IOobject as explicitly passed type.
 topoSet (const polyMesh &mesh, const word &wantedType, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE)
 Construct from polyMesh and name.
 topoSet (const polyMesh &mesh, const word &name, const label, writeOption w=NO_WRITE)
 Construct empty from additional size of labelHashSet.
 topoSet (const polyMesh &mesh, const word &name, const labelHashSet &, writeOption w=NO_WRITE)
 Construct empty from additional labelHashSet.
 topoSet (const IOobject &, const label size)
 Construct empty from IOobject and size.
 topoSet (const IOobject &, const labelHashSet &)
 Construct from IOobject and labelHashSet.
autoPtr< topoSet > clone () const
 Clone.
virtual ~topoSet ()
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 set across coupled patches.
virtual void writeDebug (Ostream &os, const label maxLen) const
 Write labels columnwise to os. Truncate to maxLen.
virtual void writeDebug (Ostream &os, const primitiveMesh &, const label maxLen) const
 Like above but also writes mesh related quantity.
virtual bool writeData (Ostream &) const
 Write contents.
virtual void updateMesh (const mapPolyMesh &morphMap)
 Update any stored data for new labels. Not implemented.
virtual label maxSize (const polyMesh &mesh) const
 Return max allowable index (+1). Not implemented.
void operator= (const topoSet &)
 Copy labelHashSet part only.

Static Public Member Functions

fileName localPath (const polyMesh &mesh, const word &name)
 Name of file set will use.
autoPtr< topoSet > New (const word &setType, const polyMesh &mesh, const word &name, readOption r=MUST_READ, writeOption w=NO_WRITE)
 Return a reference to the selected source.
autoPtr< topoSet > New (const word &setType, const polyMesh &mesh, const word &name, const label size, writeOption w=NO_WRITE)
 Return a reference to the selected source.

Protected Member Functions

void updateLabels (const labelList &map)
 Update map from map. Used to update cell/face labels.
void check (const label maxLabel)
 Check validity of contents.
void writeDebug (Ostream &os, const label maxElem, topoSet::const_iterator &iter, label &elemI) const
 Write part of contents nicely formatted. Prints labels only.
void writeDebug (Ostream &os, const pointField &coords, const label maxElem, topoSet::const_iterator &iter, label &elemI) const
 Write part of contents nicely formatted. Prints label.
void writeDebug (Ostream &os, const pointField &coords, const label maxLen) const
 Write labels and coordinates columnwise to os. Truncate to maxLen.
 topoSet (const topoSet &)
 Disallow default bitwise copy construct.

Constructor & Destructor Documentation

topoSet (  const topoSet &   )  [protected]
 

Disallow default bitwise copy construct.

topoSet (  const IOobject &  ,
const word &  wantedType
) 
 

Construct from IOobject as explicitly passed type.

Can't use typeName info here since subclasses not yet instantiated

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

Construct from polyMesh and name.

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

Construct empty from additional size of labelHashSet.

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

Construct empty from additional labelHashSet.

topoSet (  const IOobject &  ,
const label  size
) 
 

Construct empty from IOobject and size.

topoSet (  const IOobject &  ,
const labelHashSet & 
) 
 

Construct from IOobject and labelHashSet.

virtual ~topoSet (   )  [virtual]
 


Member Function Documentation

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

Add elements present in set.

void check (  const label  maxLabel  )  [protected]
 

Check validity of contents.

autoPtr<topoSet> clone (   )  const [inline]
 

Clone.

Reimplemented from IOobject.

Definition at line 215 of file topoSet.H.

References Foam::label.

declareRunTimeSelectionTable (  autoPtr  ,
topoSet  ,
size  ,
(const polyMesh &mesh, const word &name, const label size, writeOption w)  ,
(mesh, name, size, w) 
) 
 

declareRunTimeSelectionTable (  autoPtr  ,
topoSet  ,
word  ,
(const polyMesh &mesh, const word &name, readOption r, writeOption w)  ,
(mesh, name, r, w) 
) 
 

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

Delete elements present in set.

virtual void invert (  const label  maxLen  )  [virtual]
 

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

set)

fileName localPath (  const polyMesh &  mesh,
const word &  name
)  [static]
 

Name of file set will use.

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

Return max allowable index (+1). Not implemented.

virtual void updateMesh(const directPolyTopoChange& meshMod);

Reimplemented in cellSet, faceSet, and pointSet.

autoPtr<topoSet> New (  const word &  setType,
const polyMesh &  mesh,
const word &  name,
const label  size,
writeOption  w = NO_WRITE
)  [static]
 

Return a reference to the selected source.

autoPtr<topoSet> New (  const word &  setType,
const polyMesh &  mesh,
const word &  name,
readOption  r = MUST_READ,
writeOption  w = NO_WRITE
)  [static]
 

Return a reference to the selected source.

void operator= (  const topoSet &   ) 
 

Copy labelHashSet part only.

virtual void subset (  const topoSet &  set  )  [virtual]
 

Subset contents. Only elements present in both sets remain.

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

Sync set across coupled patches.

Reimplemented in cellSet, faceSet, and pointSet.

TypeName (  "topoSet"   ) 
 

Runtime type information.

void updateLabels (  const labelList &  map  )  [protected]
 

Update map from map. Used to update cell/face labels.

after morphing

virtual void updateMesh (  const mapPolyMesh &  morphMap  )  [virtual]
 

Update any stored data for new labels. Not implemented.

Reimplemented in cellSet, faceSet, and pointSet.

virtual bool writeData (  Ostream &   )  const [virtual]
 

Write contents.

Implements regIOobject.

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

Like above but also writes mesh related quantity.

(usually coordinate). Not implemented.

Reimplemented in cellSet, faceSet, and pointSet.

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

Write labels columnwise to os. Truncate to maxLen.

void writeDebug (  Ostream &  os,
const pointField &  coords,
const label  maxLen
)  const [protected]
 

Write labels and coordinates columnwise to os. Truncate to maxLen.

void writeDebug (  Ostream &  os,
const pointField &  coords,
const label  maxElem,
topoSet::const_iterator &  iter,
label &  elemI
)  const [protected]
 

Write part of contents nicely formatted. Prints label.

and corresponding coordinate.

void writeDebug (  Ostream &  os,
const label  maxElem,
topoSet::const_iterator &  iter,
label &  elemI
)  const [protected]
 

Write part of contents nicely formatted. Prints labels only.


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