CellComplexToFiatTensorProduct¶
- class fuse.cells.CellComplexToFiatTensorProduct(cell, name=None, *args, **kwargs)¶
Bases:
TensorProductCellConvert cell complex to fiat
- Param:
cell: a fuse tensor product cell complex
- __init__(cell, name=None)¶
The constructor takes a shape code, the physical vertices expressed as a list of tuples of numbers, and the topology of a cell.
The topology is stored as a dictionary of dictionaries t[i][j] where i is the dimension and j is the index of the facet of that dimension. The result is a list of the vertices comprising the facet.
Methods
__init__(cell[, name])The constructor takes a shape code, the physical vertices expressed as a list of tuples of numbers, and the topology of a cell.
cell_orientation_reflection_map()Return the map indicating whether each possible cell orientation causes reflection (
1) or not (0).cellname()compare(op, other)Parent-based comparison between simplicial complexes.
compute_reference_normal(facet_dim, facet_i)Returns the unit normal in infinity norm to facet_i of subelement dimension facet_dim.
construct_subcomplex(dimension)Constructs the reference subcomplex of the parent cell subentity specified by subcomplex dimension.
construct_subelement(dimension)Constructs the reference element of a cell specified by subelement dimension.
contains_point(point[, epsilon])Checks if reference cell contains given point (with numerical tolerance as given by the L1 distance (aka 'manhattan', 'taxicab' or rectilinear distance) to the cell.
distance_to_point_l1(point[, rescale])Get the L1 distance (aka 'manhatten', 'taxicab' or rectilinear distance) to a point with 0.0 if the point is inside the cell.
extract_extrinsic_orientation(o)Extract extrinsic orientation.
extract_intrinsic_orientation(o, axis)Extract intrinsic orientation.
flatten()get_connectivity()Returns a dictionary encoding the connectivity of the element.
get_dimension()Returns the subelement dimension of the cell, a tuple of dimensions for each cell in the product.
get_entity_transform(dim, entity_i)Returns a mapping of point coordinates from the entity_i-th subentity of dimension dim to the cell.
get_facet_element()get_interior_facets(dim)Return the interior facets this cell is a split and () otherwise.
get_parent()Return the parent cell if this cell is a split and None otherwise.
get_parent_complex()Return the parent complex if this cell is a split and None otherwise.
get_shape()Returns the code for the element's shape.
get_spatial_dimension()Returns the spatial dimension in which the element lives.
get_topology()Returns a dictionary encoding the topology of the element.
get_vertices()Returns an iterable of the element's vertices, each stored as a tuple.
get_vertices_of_subcomplex(t)Returns the tuple of vertex coordinates associated with the labels contained in the iterable t.
is_macrocell()is_parent(other[, strict])Return whether this cell is the parent of the other cell.
is_simplex()point_entity_ids(points[, tol])Return the topological entity association for points on this cell.
symmetry_group_size(dim)Returns the size of the symmetry group of an entity of dimension dim.
volume()Computes the volume in the appropriate dimensional measure.
Attributes
extrinsic_orientation_permutation_mapA map from extrinsic orientations to corresponding axis permutation matrices.
- construct_subelement(dimension)¶
Constructs the reference element of a cell specified by subelement dimension.
- Parameters:
dimension – subentity dimension (integer)