CellComplexToUFL

class fuse.cells.CellComplexToUFL(cell, name=None)

Bases: Cell

Convert 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

cellname

Return the cellname of the cell.

cells

Return the component cells in the CellSequence sense.

edge_types

Get the unique edge types.

edges

Get the edges.

face_types

Get the unique face types.

faces

Get the faces.

facet_types

Get the unique facet types.

facets

Get the facets.

has_simplex_facets

Return True if all the facets of this cell are simplex cells.

is_simplex

Return True if this is a simplex cell.

num_edges

Get the number of edges.

num_faces

Get the number of faces.

num_facets

Get the number of facets.

num_peaks

Get the number of peaks.

num_ridges

Get the number of ridges.

num_vertices

Get the number of vertices.

peak_types

Get the unique peak types.

peaks

Get the peaks.

ridge_types

Get the unique ridge types.

ridges

Get the ridges.

topological_dimension

Return the dimension of the topology of this cell.

vertex_types

Get the unique vertices types.

vertices

Get the vertices.

reconstruct(**kwargs)

Reconstruct this cell, overwriting properties by those in kwargs.