ndelement.reference_cell

Reference cell information.

Classes

ReferenceCellType

Reference cell type.

Functions

dim(→ int)

Get the topological dimension of a reference cell.

is_simplex(→ bool)

Check if a reference cell is a simplex.

vertices(→ numpy.typing.NDArray)

Get the vertices of a reference cell.

midpoint(→ numpy.typing.NDArray)

Get the midpoint of a reference cell.

edges(→ List[List[int]])

Get the edges of a reference cell.

faces(→ List[List[int]])

Get the faces of a reference cell.

volumes(→ List[List[int]])

Get the volumes of a reference cell.

entity_types(→ List[List[ReferenceCellType]])

Get the types of the sub-entities of a reference cell.

entity_counts(→ List[int])

Get the number of the sub-entities of each dimension for a reference cell.

connectivity(→ List[List[List[List[int]]]])

Get the connectivity of a reference cell.

compute_orientation(→ numpy.int32)

Compute a 32-bit integer encoding the orientation differences between the reference cell and a cell.

Module Contents

class ndelement.reference_cell.ReferenceCellType

Bases: enum.Enum

Reference cell type.

Point = 0
Interval = 1
Triangle = 2
Quadrilateral = 3
Tetrahedron = 4
Hexahedron = 5
Prism = 6
Pyramid = 7
ndelement.reference_cell.dim(cell: ReferenceCellType) int

Get the topological dimension of a reference cell.

ndelement.reference_cell.is_simplex(cell: ReferenceCellType) bool

Check if a reference cell is a simplex.

ndelement.reference_cell.vertices(cell: ReferenceCellType, dtype: Type[numpy.floating] = np.float64) numpy.typing.NDArray

Get the vertices of a reference cell.

ndelement.reference_cell.midpoint(cell: ReferenceCellType, dtype: Type[numpy.floating] = np.float64) numpy.typing.NDArray

Get the midpoint of a reference cell.

ndelement.reference_cell.edges(cell: ReferenceCellType) List[List[int]]

Get the edges of a reference cell.

ndelement.reference_cell.faces(cell: ReferenceCellType) List[List[int]]

Get the faces of a reference cell.

ndelement.reference_cell.volumes(cell: ReferenceCellType) List[List[int]]

Get the volumes of a reference cell.

ndelement.reference_cell.entity_types(cell: ReferenceCellType) List[List[ReferenceCellType]]

Get the types of the sub-entities of a reference cell.

ndelement.reference_cell.entity_counts(cell: ReferenceCellType) List[int]

Get the number of the sub-entities of each dimension for a reference cell.

ndelement.reference_cell.connectivity(cell: ReferenceCellType) List[List[List[List[int]]]]

Get the connectivity of a reference cell.

ndelement.reference_cell.compute_orientation(cell: ReferenceCellType, vertices: List[int]) numpy.int32

Compute a 32-bit integer encoding the orientation differences between the reference cell and a cell.