Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

dolfin::Cell Class Reference

#include <Cell.h>

Collaboration diagram for dolfin::Cell:

Collaboration graph
[legend]
List of all members.

Public Types

enum  Type { triangle, tetrahedron, none }

Public Member Functions

 Cell ()
 Create an empty cell.

 Cell (Node &n0, Node &n1, Node &n2)
 Create cell (triangle) from three given nodes.

 Cell (Node &n0, Node &n1, Node &n2, Node &n3)
 Create cell (tetrahedron) from four given nodes.

 ~Cell ()
 Destructor.

void clear ()
 Clear cell data.

int id () const
 --- Cell data --- Return id of cell

Type type () const
 Return cell type.

int noNodes () const
 Return number of nodes.

int noEdges () const
 Return number of edges.

int noFaces () const
 Return number of faces.

int noBoundaries () const
 Return number of boundaries.

int noCellNeighbors () const
 Return number of cell neighbors.

int noNodeNeighbors () const
 Return number of node neighbors.

int noChildren () const
 Return number of cell children.

Nodenode (int i) const
 Return node number i.

Edgeedge (int i) const
 Return edge number i.

Faceface (int i) const
 Return face number i.

Cellneighbor (int i) const
 Return cell neighbor number i.

Cellparent () const
 Return parent cell (null if no parent).

Cellchild (int i) const
 Return child cell (null if no child).

Pointcoord (int i) const
 Return coordinate for node i.

Point midpoint () const
 Return midpoint of cell.

int nodeID (int i) const
real volume () const
real diameter () const
bool operator== (const Cell &cell) const
 Comparison with another cell.

bool operator!= (const Cell &cell) const
 Comparison with another cell.

void mark ()
 --- Mesh refinement --- Mark cell for refinement


Friends

class Mesh
class MeshData
class MeshInit
class MeshRefinement
class MeshRefinementData
class TriMeshRefinement
class TetMeshRefinement
class GenericCell
class CellRefData
class NodeIterator::CellNodeIterator
class CellIterator::CellCellIterator
class EdgeIterator::CellEdgeIterator
class FaceIterator::CellFaceIterator
LogStreamoperator<< (LogStream &stream, const Cell &cell)
 --- Output --- Display condensed cell data


Member Enumeration Documentation

enum dolfin::Cell::Type
 

Enumeration values:
triangle 
tetrahedron 
none 


Constructor & Destructor Documentation

Cell::Cell  ) 
 

Create an empty cell.

Cell::Cell Node n0,
Node n1,
Node n2
 

Create cell (triangle) from three given nodes.

Cell::Cell Node n0,
Node n1,
Node n2,
Node n3
 

Create cell (tetrahedron) from four given nodes.

Cell::~Cell  ) 
 

Destructor.


Member Function Documentation

Cell * Cell::child int  i  )  const
 

Return child cell (null if no child).

void Cell::clear  ) 
 

Clear cell data.

Point & Cell::coord int  i  )  const
 

Return coordinate for node i.

real Cell::diameter  )  const
 

Edge & Cell::edge int  i  )  const
 

Return edge number i.

Face & Cell::face int  i  )  const
 

Return face number i.

int Cell::id  )  const
 

--- Cell data --- Return id of cell

void Cell::mark  ) 
 

--- Mesh refinement --- Mark cell for refinement

Point Cell::midpoint  )  const
 

Return midpoint of cell.

Cell & Cell::neighbor int  i  )  const
 

Return cell neighbor number i.

int Cell::noBoundaries  )  const
 

Return number of boundaries.

int Cell::noCellNeighbors  )  const
 

Return number of cell neighbors.

int Cell::noChildren  )  const
 

Return number of cell children.

Node & Cell::node int  i  )  const
 

Return node number i.

int Cell::nodeID int  i  )  const
 

int Cell::noEdges  )  const
 

Return number of edges.

int Cell::noFaces  )  const
 

Return number of faces.

int Cell::noNodeNeighbors  )  const
 

Return number of node neighbors.

int Cell::noNodes  )  const
 

Return number of nodes.

bool Cell::operator!= const Cell cell  )  const
 

Comparison with another cell.

bool Cell::operator== const Cell cell  )  const
 

Comparison with another cell.

Cell * Cell::parent  )  const
 

Return parent cell (null if no parent).

Cell::Type Cell::type  )  const
 

Return cell type.

real Cell::volume  )  const
 


Friends And Related Function Documentation

friend class CellIterator::CellCellIterator [friend]
 

friend class CellRefData [friend]
 

friend class EdgeIterator::CellEdgeIterator [friend]
 

friend class FaceIterator::CellFaceIterator [friend]
 

friend class GenericCell [friend]
 

friend class Mesh [friend]
 

friend class MeshData [friend]
 

friend class MeshInit [friend]
 

friend class MeshRefinement [friend]
 

friend class MeshRefinementData [friend]
 

friend class NodeIterator::CellNodeIterator [friend]
 

LogStream& operator<< LogStream stream,
const Cell cell
[friend]
 

--- Output --- Display condensed cell data

friend class TetMeshRefinement [friend]
 

friend class TriMeshRefinement [friend]
 


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


Documentation automatically generated with Doxygen on 10 Sep 2004.