Module reference_cell

Module reference_cell 

Source
Expand description

Cell definitions.

The reference cells used by ndelement are defined by:

  • The reference interval is (\left{x,\middle|,0\leqslant x\leqslant 1\right}).
  • The reference triangle is (\left{(x,y),\middle|,0\leqslant x,,0\leqslant y,,x+y\leqslant1\right}).
  • The reference quadrilateral is (\left{(x,y),\middle|,0\leqslant x\leqslant1,,0\leqslant y\leqslant1\right}).
  • The reference tetrahedron is (\left{(x,y,z),\middle|,0\leqslant x,,0\leqslant y,,0\leqslant z,,x+y+z\leqslant1\right}).
  • The reference hexahedron is (\left{(x,y,z),\middle|,0\leqslant x\leqslant1,,0\leqslant y\leqslant1,,0\leqslant z\leqslant1\right}).
  • The reference prism is (\left{(x,y,z),\middle|,0\leqslant x,,0\leqslant y,,x+y\leqslant1,,0\leqslant z\leqslant1\right}).
  • The reference pyramid is (\left{(x,y,z),\middle|,0\leqslant x,,0\leqslant y,,0\leqslant z\leqslant1,,x+z\leqslant1,,y+z\leqslant1\right}).

Functions§

connectivity
The connectivity of the reference cell
dim
The topological dimension of the cell
edges
The edges (dimension 1 entities) of the reference cell
entity_counts
The number of subentities of each dimension
entity_types
The types of the subentities of the reference cell
faces
The faces (dimension 2 entities) of the reference cell
facet_normals
The normals to the facets of the reference cell. The length of each normal is the volume of the facet
facet_unit_normals
The unit normals to the facets of the reference cell
facets
The facets (dimension dim-1 entities) of the reference cell
is_simplex
Is the cell a simplex?
midpoint
The midpoint of the cell
peaks
The peaks (dimension dim-3 entities) of the reference cell
ridges
The ridges (dimension dim-2 entities) of the reference cell
vertices
The vertices of the reference cell
volumes
The volumes (dimension 3 entities) of the reference cell