A cell is defined as a list of faces with extra functionality. More...
#include <OpenFOAM/cell.H>
A cell is defined as a list of faces with extra functionality.
Definition at line 57 of file cell.H.
Public Member Functions | |
cell () | |
Construct null.
| |
cell (label) | |
Construct given size.
| |
cell (const UList< label > &) | |
Construct from list of labels.
| |
cell (const Xfer< labelList > &) | |
Construct by transferring the parameter contents.
| |
cell (Istream &) | |
Construct from Istream.
| |
label | nFaces () const |
Return number of faces.
| |
labelList | labels (const unallocFaceList &) const |
Return labels of cell vertices.
| |
pointField | points (const unallocFaceList &, const pointField &) const |
Return the cell vertices.
| |
edgeList | edges (const unallocFaceList &) const |
Return cell edges.
| |
label | opposingFaceLabel (const label masterFaceLabel, const unallocFaceList &meshFaces) const |
Return index of opposite face.
| |
oppositeFace | opposingFace (const label masterFaceLabel, const unallocFaceList &meshFaces) const |
Return opposite face oriented the same way as the master face.
| |
point | centre (const pointField &, const unallocFaceList &) const |
Returns cell centre.
| |
scalar | mag (const pointField &, const unallocFaceList &) const |
Returns cell volume.
| |
Static Public Attributes | |
static const char *const | typeName = "cell" |
Friends | |
bool | operator== (const cell &, const cell &) |
bool | operator!= (const cell &, const cell &) |
Foam::label nFaces | ( | ) | const [inline]
|
Foam::labelList labels | ( | const unallocFaceList & | f ) | const |
Return labels of cell vertices.
Definition at line 35 of file cell.C.
References forAll, p, List< T >::setSize(), List< T >::size(), and UList< T >::size().
Foam::pointField points | ( | const unallocFaceList & | f, |
const pointField & | meshPoints | ||
) | const |
Return the cell vertices.
Definition at line 102 of file cell.C.
References forAll, p, pointLabels(), and List< T >::size().
Foam::edgeList edges | ( | const unallocFaceList & | f ) | const |
Return cell edges.
Definition at line 120 of file cell.C.
References forAll, and List< T >::setSize().
Foam::label opposingFaceLabel | ( | const label | masterFaceLabel, |
const unallocFaceList & | meshFaces | ||
) | const |
Return index of opposite face.
Definition at line 40 of file oppositeCellFace.C.
References Foam::endl(), forAll, Foam::Info, and List< T >::size().
Foam::oppositeFace opposingFace | ( | const label | masterFaceLabel, |
const unallocFaceList & | meshFaces | ||
) | const |
Return opposite face oriented the same way as the master face.
Definition at line 115 of file oppositeCellFace.C.
References e, forAll, and List< T >::size().
Foam::point centre | ( | const pointField & | p, |
const unallocFaceList & | f | ||
) | const |
Returns cell centre.
Definition at line 173 of file cell.C.
References forAll, and Vector< Cmpt >::zero.
Foam::scalar mag | ( | const pointField & | p, |
const unallocFaceList & | f | ||
) | const |
Returns cell volume.
Definition at line 239 of file cell.C.
References forAll, Foam::mag(), and Vector< Cmpt >::zero.