Tabulation Project basix
Enumerations | Functions
basix::cell Namespace Reference

Enumerations

enum class  type {
  point , interval , triangle , tetrahedron ,
  quadrilateral , hexahedron , prism , pyramid
}
 Cell type.
 

Functions

Eigen::ArrayXXd geometry (cell::type celltype)
 
std::vector< std::vector< std::vector< int > > > topology (cell::type celltype)
 
Eigen::ArrayXXd sub_entity_geometry (cell::type celltype, int dim, int index)
 
int sub_entity_count (cell::type celltype, int dim)
 
int topological_dimension (cell::type celltype)
 
cell::type sub_entity_type (cell::type celltype, int dim, int index)
 
cell::type str_to_type (std::string name)
 
const std::string & type_to_str (cell::type type)
 Convert cell type enum to string.
 

Detailed Description

Information about reference cells including their topological and geometric data.

Function Documentation

◆ geometry()

Eigen::ArrayXXd basix::cell::geometry ( cell::type  celltype)

Cell geometry

Parameters
celltypeCell Type
Returns
Set of vertex points of the cell

◆ str_to_type()

cell::type basix::cell::str_to_type ( std::string  name)

Convert a cell type string to enum

Parameters
nameString
Returns
cell type

◆ sub_entity_count()

int basix::cell::sub_entity_count ( cell::type  celltype,
int  dim 
)

Number of sub-entities of a cell by topological dimension

Parameters
celltypeThe cell::type
dimDimension of sub-entity
Returns
The number of sub-entities of the given dimension

◆ sub_entity_geometry()

Eigen::ArrayXXd basix::cell::sub_entity_geometry ( cell::type  celltype,
int  dim,
int  index 
)

Sub-entity of a cell, given by topological dimension and index

Parameters
celltypeThe cell::type
dimDimension of sub-entity
indexLocal index of sub-entity
Returns
Set of vertex points of the sub-entity

◆ sub_entity_type()

cell::type basix::cell::sub_entity_type ( cell::type  celltype,
int  dim,
int  index 
)

Get the cell type of a sub-entity of given dimension and index

Parameters
celltypeType of cell
dimTopological dimension of sub-entity
indexIndex of sub-entity
Returns
cell type of sub-entity

◆ topological_dimension()

int basix::cell::topological_dimension ( cell::type  celltype)

Get the topological dimension for a given cell type

Parameters
celltypeCell type
Returns
the topological dimension

◆ topology()

std::vector< std::vector< std::vector< int > > > basix::cell::topology ( cell::type  celltype)

Cell topology

Parameters
celltypeCell Type
Returns
List of topology (vertex indices) for each dimension (0..tdim)