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

refinementHistory Class Reference

Inheritance diagram for refinementHistory:

Inheritance graph
[legend]
Collaboration diagram for refinementHistory:

Collaboration graph
[legend]
List of all members.

Detailed Description

Definition at line 101 of file refinementHistory.H.


Public Member Functions

 refinementHistory (const IOobject &)
 Construct (read) given an IOobject.
 refinementHistory (const IOobject &, const List< splitCell8 > &splitCells, const labelList &visibleCells)
 Construct (read) or construct null.
 refinementHistory (const IOobject &, const label nCells)
 Construct (read) or construct from initial number of cells.
 refinementHistory (const IOobject &, const refinementHistory &)
 Construct as copy.
 refinementHistory (const IOobject &, Istream &)
 Construct from Istream.
const labelList & visibleCells () const
 Per cell in the current mesh (i.e. visible) either -1 (unrefined).
const DynamicList< splitCell8 > & splitCells () const
 Storage for splitCell8s.
const DynamicList< label > & freeSplitCells () const
 Cache of unused indices in splitCells.
bool active () const
 Is there unrefinement history. Note that this will fall over if.
label parentIndex (const label cellI) const
 Get parent of cell.
void storeSplit (const label cellI, const labelList &addedCells)
 Store splitting of cell into 8.
void combineCells (const label masterCellI, const labelList &combinedCells)
 Store combining 8 cells into master.
void updateMesh (const mapPolyMesh &)
 Update numbering for mesh changes.
void subset (const labelList &pointMap, const labelList &faceMap, const labelList &cellMap)
 Update numbering for subsetting.
void distribute (const mapDistributePolyMesh &)
 Update local numbering for mesh redistribution.
void compact ()
 Compact splitCells_. Removes all freeSplitCells_ elements.
void resize (const label nCells)
 Extend/shrink storage. additional visibleCells_ elements get.
void writeDebug () const
 Debug write.
virtual bool readData (Istream &)
 ReadData function required for regIOobject read operation.
virtual bool writeData (Ostream &) const
 WriteData function required for regIOobject write operation.

Friends

Istream & operator>> (Istream &, refinementHistory &)
Ostream & operator<< (Ostream &, const refinementHistory &)

Classes

class  splitCell8

Constructor & Destructor Documentation

refinementHistory ( const IOobject &   ) 

Construct (read) given an IOobject.

refinementHistory ( const IOobject &  ,
const List< splitCell8 > &  splitCells,
const labelList &  visibleCells 
)

Construct (read) or construct null.

refinementHistory ( const IOobject &  ,
const label  nCells 
)

Construct (read) or construct from initial number of cells.

(all visible)

refinementHistory ( const IOobject &  ,
const refinementHistory &   
)

Construct as copy.

refinementHistory ( const IOobject &  ,
Istream &   
)

Construct from Istream.


Member Function Documentation

const labelList& visibleCells (  )  const [inline]

Per cell in the current mesh (i.e. visible) either -1 (unrefined).

or an index into splitCells.

Definition at line 273 of file refinementHistory.H.

const DynamicList<splitCell8>& splitCells (  )  const [inline]

Storage for splitCell8s.

Definition at line 279 of file refinementHistory.H.

References UList::size().

Here is the call graph for this function:

const DynamicList<label>& freeSplitCells (  )  const [inline]

Cache of unused indices in splitCells.

Definition at line 285 of file refinementHistory.H.

bool active (  )  const [inline]

Is there unrefinement history. Note that this will fall over if.

there are 0 cells in the mesh. But this gives problems with lots of other programs anyway.

Definition at line 295 of file refinementHistory.H.

label parentIndex ( const label  cellI  )  const [inline]

Get parent of cell.

Definition at line 301 of file refinementHistory.H.

void storeSplit ( const label  cellI,
const labelList &  addedCells 
)

Store splitting of cell into 8.

void combineCells ( const label  masterCellI,
const labelList &  combinedCells 
)

Store combining 8 cells into master.

void updateMesh ( const mapPolyMesh &   ) 

Update numbering for mesh changes.

void subset ( const labelList &  pointMap,
const labelList &  faceMap,
const labelList &  cellMap 
)

Update numbering for subsetting.

void distribute ( const mapDistributePolyMesh &   ) 

Update local numbering for mesh redistribution.

Can only distribute clusters sent across in one go; cannot handle parts recombined in multiple passes.

void compact (  ) 

Compact splitCells_. Removes all freeSplitCells_ elements.

void resize ( const label  nCells  ) 

Extend/shrink storage. additional visibleCells_ elements get.

set to -1.

void writeDebug (  )  const

Debug write.

virtual bool readData ( Istream &   )  [virtual]

ReadData function required for regIOobject read operation.

Reimplemented from regIOobject.

virtual bool writeData ( Ostream &   )  const [virtual]

WriteData function required for regIOobject write operation.

Implements regIOobject.


Friends And Related Function Documentation

Istream& operator>> ( Istream &  ,
refinementHistory &   
) [friend]

Ostream& operator<< ( Ostream &  ,
const refinementHistory &   
) [friend]


The documentation for this class was generated from the following file: Copyright © 2000-2007 OpenCFD Ltd