CellComplexToUFL¶
- class fuse.cells.CellComplexToUFL(cell, name=None)¶
Bases:
CellConvert cell complex to UFL
- Param:
cell: a fuse cell complex
Currently just maps to a subset of existing UFL cells TODO work out generic way around the naming issue
- __init__(cell, name=None)¶
Initialise.
- Args:
cellname: Name of the cell
Methods
__init__(cell[, name])Initialise.
num_sub_entities(dim)Get the number of sub-entities of the given dimension.
reconstruct(**kwargs)Reconstruct this cell, overwriting properties by those in kwargs.
sub_entities(dim)Get the sub-entities of the given dimension.
sub_entity_types(dim)Get the unique sub-entity types of the given dimension.
to_fiat()Attributes
cellnameReturn the cellname of the cell.
cellsReturn the component cells in the CellSequence sense.
edge_typesGet the unique edge types.
edgesGet the edges.
face_typesGet the unique face types.
facesGet the faces.
facet_typesGet the unique facet types.
facetsGet the facets.
has_simplex_facetsReturn True if all the facets of this cell are simplex cells.
is_simplexReturn True if this is a simplex cell.
num_edgesGet the number of edges.
num_facesGet the number of faces.
num_facetsGet the number of facets.
num_peaksGet the number of peaks.
num_ridgesGet the number of ridges.
num_verticesGet the number of vertices.
peak_typesGet the unique peak types.
peaksGet the peaks.
ridge_typesGet the unique ridge types.
ridgesGet the ridges.
topological_dimensionReturn the dimension of the topology of this cell.
vertex_typesGet the unique vertices types.
verticesGet the vertices.
- reconstruct(**kwargs)¶
Reconstruct this cell, overwriting properties by those in kwargs.