CellComplexToFiatSimplex

class fuse.cells.CellComplexToFiatSimplex(cell, name=None, renumber=False)

Bases: Simplex

Convert cell complex to fiat

Param:

cell: a fuse cell complex

Currently assumes simplex.

__init__(cell, name=None, renumber=False)

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, renumber])

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()

compute_barycentric_coordinates(points[, ...])

Returns the barycentric coordinates of a list of points on the complex.

compute_bubble(points[, entity])

Returns the lowest-order bubble on an entity evaluated at the given points on the cell.

compute_edge_tangent(edge_i)

Computes the nonnormalized tangent to a 1-dimensional facet.

compute_face_edge_tangents(dim, entity_id)

Computes all the edge tangents of any k-face with k>=1.

compute_face_tangents(face_i)

Computes the two tangents to a face.

compute_normal(facet_i[, cell])

Returns the unit normal vector to facet i of codimension 1.

compute_normalized_edge_tangent(edge_i)

Computes the unit tangent vector to a 1-dimensional facet

compute_normalized_tangents(dim, i)

Computes tangents in any dimension based on differences between vertices and the first vertex of the i:th facet of dimension dim.

compute_reference_normal(facet_dim, facet_i)

Returns the unit normal in infinity norm to facet_i.

compute_scaled_normal(facet_i)

Returns the unit normal to facet_i of scaled by the volume of that facet.

compute_tangents(dim, i)

Computes tangents in any dimension based on differences between vertices and the first vertex of the i:th facet of dimension dim.

construct_subcomplex(dimension)

Constructs the reference subcomplex of the parent cell subentity specified by subcomplex dimension.

construct_subelement(dimension[, e_id, o])

Constructs the reference element of a cell specified by subelement dimension.

contains_point(point[, epsilon, entity])

Checks if reference cell contains given point (with numerical tolerance as given by the L1 distance (aka 'manhatten', 'taxicab' or rectilinear distance) to the cell.

distance_to_point_l1(points[, entity, rescale])

Get the L1 distance (aka 'manhatten', 'taxicab' or rectilinear distance) from an entity to a point with 0.0 if the point is inside the entity.

extract_extrinsic_orientation(o)

Extract extrinsic orientation.

extract_intrinsic_orientation(o, axis)

Extract intrinsic orientation.

get_connectivity()

Returns a dictionary encoding the connectivity of the element.

get_dimension()

Returns the subelement dimension of the cell.

get_entity_transform(dim, entity)

Returns a mapping of point coordinates from the entity-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()

make_points(dim, entity_id, order[, ...])

Constructs a lattice of points on the entity_id:th facet of dimension dim.

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 of the simplicial complex in the appropriate dimensional measure.

volume_of_subcomplex(dim, facet_no)

Attributes

extrinsic_orientation_permutation_map

A map from extrinsic orientations to corresponding axis permutation matrices.

construct_subelement(dimension, e_id=0, o=None)

Constructs the reference element of a cell specified by subelement dimension.

Parameters:
  • dimension – subentity dimension (integer)

  • e_id – subentity id, default 0, (integer)

  • o – orientation of subentity, default None (GroupMemberRep)