ndelement.reference_cell¶
Reference cell information.
Classes¶
Reference cell type. |
Functions¶
|
Get the topological dimension of a reference cell. |
|
Check if a reference cell is a simplex. |
|
Get the vertices of a reference cell. |
|
Get the midpoint of a reference cell. |
|
Get the edges of a reference cell. |
|
Get the faces of a reference cell. |
|
Get the volumes of a reference cell. |
|
Get the types of the sub-entities of a reference cell. |
|
Get the number of the sub-entities of each dimension for a reference cell. |
|
Get the connectivity of a reference cell. |
|
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.EnumReference 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.