Home Installation Demos C++ docs Python docs
basix.cell¶
Functions to get cell geometry information and manipulate cell types.
Functions
|
Jacobians of the facets of a reference cell. |
|
Normals to the facets of a reference cell. |
|
Orientations of the facets of a reference cell. |
|
Normals to the facets of a reference cell. |
|
Reference volumes of the facets of a reference cell. |
|
Cell geometry. |
|
Convert a string to a Basix CellType. |
|
Numbers of entities connected to each sub-entity of the cell. |
|
Cell topology. |
|
Volume of a reference cell. |
Classes
|
Cell type. |
- basix.cell.facet_jacobians(celltype: CellType) ndarray[Any, dtype[ScalarType]] ¶
Jacobians of the facets of a reference cell.
- Parameters:
celltype – cell type.
- Returns:
Jacobians of the facets.
- basix.cell.facet_normals(celltype: CellType) ndarray[Any, dtype[ScalarType]] ¶
Normals to the facets of a reference cell.
These normals will be oriented using the low-to-high ordering of the facet.
- Parameters:
celltype – Cell type.
- Returns:
Normals to the facets.
- basix.cell.facet_orientations(celltype: CellType) list[bool] ¶
Orientations of the facets of a reference cell.
This returns a list of bools that are
True
if the facet normal points outwards andFalse
otherwise.- Parameters:
celltype – Cell type.
- Returns:
Facet orientations.
- basix.cell.facet_outward_normals(celltype: CellType) ndarray[Any, dtype[ScalarType]] ¶
Normals to the facets of a reference cell.
These normals will be oriented to be pointing outwards.
- Parameters:
celltype – Cell type.
- Returns:
Normals to the facets.
- basix.cell.facet_reference_volumes(celltype: CellType) ndarray[Any, dtype[ScalarType]] ¶
Reference volumes of the facets of a reference cell.
- Parameters:
celltype – Cell type.
- Returns:
Reference volumes.
- basix.cell.string_to_type(cell: str) CellType ¶
Convert a string to a Basix CellType.
- Parameters:
cell – Name of the cell as a string.
- Returns:
The cell type.