Bases: dolfin.cpp.mesh.MeshEntity
A Cell is a MeshEntity of topological codimension 0.
Overloaded versions
Cell()
Create empty cell
Cell(mesh, index)
Create cell on given mesh with given index
The mesh.
The index.
Compute normal to cell itself (viewed as embedded in 3D)
Overloaded versions
collides(point)
Check whether given point collides with cell
The point to be checked.
True iff point collides with cell.
collides(entity)
Check whether given entity collides with cell
The cell to be checked.
True iff entity collides with cell.
Check whether given point is contained in cell. This function is identical to the function collides(point).
Compute diameter of cell
Note
No example code available for this function.
Compute distance to given point.
Compute the area/length of given facet with respect to the cell
Fill UFC cell with miscellaneous data
Fill UFC cell with topology data
Overloaded versions
get_vertex_coordinates(coordinates)
Get cell vertex coordinates
get_vertex_coordinates(coordinates)
Get cell vertex coordinates
Compute inradius of cell
Note
No example code available for this function.
Overloaded versions
normal(facet, i)
Compute component i of normal of given facet with respect to the cell
Index of facet.
Component.
Component i of the normal of the facet.
normal(facet)
Compute normal of given facet with respect to the cell
Index of facet.
Normal of the facet.
Return number of vertices of cell
Order entities locally
Check if entities are ordered
Overloaded versions
orientation()
Compute orientation of cell
Orientation of the cell (0 is ‘up’/’right’, 1 is ‘down’/’left’)
orientation(up)
Compute orientation of cell relative to given ‘up’ direction
The direction defined as ‘up’
Orientation of the cell (0 is ‘same’, 1 is ‘opposite’)
Compute ratio of inradius to circumradius times dim for cell. Useful as cell quality measure. Returns 1. for equilateral and 0. for degenerate cell. See Jonathan Richard Shewchuk: What Is a Good Linear Finite Element?, online: http://www.cs.berkeley.edu/~jrs/papers/elemj.pdf
Note
No example code available for this function.
Compute squared distance to given point.
The membership flag
Compute triangulation of intersection with given entity
Return type of cell
Compute (generalized) volume of cell
Note
No example code available for this function.