Note
The documentation on this page was automatically extracted from the DOLFIN C++ code and may need to be edited or expanded.
Parent class(es)
A Cell is a MeshEntity of topological codimension 0.
Create empty cell
Create cell on given mesh with given index
Return type of cell
Return number of vertices of cell
Compute orientation of cell
Compute orientation of cell relative to given ‘up’ direction
Compute (generalized) volume of cell
UnitSquare mesh(1, 1);
Cell cell(mesh, 0);
info("%g", cell.volume());
output:
0.5
Compute diameter of cell
UnitSquare mesh(1, 1);
Cell cell(mesh, 0);
info("%g", cell.diameter());
output:
1.41421
Compute inradius of cell
UnitSquare mesh(1, 1);
Cell cell(mesh, 0);
info("%g", cell.inradius());
output:
0.29289
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
UnitSquare mesh(1, 1);
Cell cell(mesh, 0);
info("%g", cell.radius_ratio());
output:
0.828427
Compute squared distance to given point.
Compute distance to given point.
Compute component i of normal of given facet with respect to the cell
Compute normal of given facet with respect to the cell
Compute normal to cell itself (viewed as embedded in 3D)
Compute the area/length of given facet with respect to the cell
Order entities locally
Check if entities are ordered
Check whether given point is contained in cell. This function is identical to the function collides(point).
Check whether given point collides with cell
Check whether given entity collides with cell
Compute triangulation of intersection with given entity
Get cell vertex coordinates
Get cell vertex coordinates
Fill UFC cell with miscellaneous data
Fill UFC cell with topology data
Parent class(es)
- MeshFunction
A CellFunction is a MeshFunction of topological codimension 0.