FreeFOAM The Cross-Platform CFD Toolkit
splitCell Class Reference

Description of cell after splitting. Contains cellLabel and pointers to cells it it split in. See directedRefinement. More...

#include <dynamicMesh/splitCell.H>


Detailed Description

Description of cell after splitting. Contains cellLabel and pointers to cells it it split in. See directedRefinement.

Source files

Definition at line 52 of file splitCell.H.

List of all members.

Public Member Functions

 splitCell (const label cellI, splitCell *parent)
 Construct from cell number and parent.
 ~splitCell ()
label cellLabel () const
label & cellLabel ()
splitCellparent () const
splitCell *& parent ()
splitCellmaster () const
splitCell *& master ()
splitCellslave () const
splitCell *& slave ()
bool isMaster () const
 Check if this is master cell of split.
bool isUnrefined () const
 Check if this is unrefined (i.e. has no master or slave)
splitCellgetOther () const
 Returns other half of split cell. I.e. slave if this is master.

Constructor & Destructor Documentation

splitCell ( const label  cellI,
splitCell parent 
)

Construct from cell number and parent.

Definition at line 32 of file splitCell.C.


Member Function Documentation

label cellLabel ( ) const
inline
label& cellLabel ( )
inline

Definition at line 100 of file splitCell.H.

splitCell*& parent ( )
inline

Definition at line 110 of file splitCell.H.

splitCell* master ( ) const
inline
splitCell*& master ( )
inline

Definition at line 120 of file splitCell.H.

splitCell* slave ( ) const
inline
splitCell*& slave ( )
inline

Definition at line 130 of file splitCell.H.

bool isMaster ( ) const

Check if this is master cell of split.

Definition at line 70 of file splitCell.C.

References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorIn, splitCell::master(), and splitCell::slave().

Referenced by undoableMeshCutter::getAddedCells(), and undoableMeshCutter::getSplitFaces().

bool isUnrefined ( ) const

Check if this is unrefined (i.e. has no master or slave)

Definition at line 100 of file splitCell.C.

Referenced by undoableMeshCutter::getAddedCells(), undoableMeshCutter::getSplitFaces(), and undoableMeshCutter::removeSplitFaces().

Foam::splitCell * getOther ( ) const

Returns other half of split cell. I.e. slave if this is master.

Definition at line 106 of file splitCell.C.

References Foam::abort(), Foam::endl(), Foam::FatalError, FatalErrorIn, splitCell::master(), and splitCell::slave().

Referenced by undoableMeshCutter::getAddedCells(), undoableMeshCutter::getSplitFaces(), and undoableMeshCutter::~undoableMeshCutter().


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