Ejemplo n.º 1
0
    def __init__(self):
        product = TensorProductCell(UFCInterval(), UFCInterval())
        pt = product.get_topology()

        verts = product.get_vertices()
        topology = flatten_entities(pt)

        super(UFCQuadrilateral, self).__init__(QUADRILATERAL, verts, topology)

        self.product = product
        self.unflattening_map = compute_unflattening_map(pt)
Ejemplo n.º 2
0
    def __init__(self):
        product = TensorProductCell(UFCInterval(), UFCInterval(), UFCInterval())
        pt = product.get_topology()

        verts = product.get_vertices()
        topology = flatten_entities(pt)

        super(UFCHexahedron, self).__init__(HEXAHEDRON, verts, topology)

        self.product = product
        self.unflattening_map = compute_unflattening_map(pt)
Ejemplo n.º 3
0
    def __init__(self):
        product = TensorProductCell(UFCInterval(), UFCInterval())
        pt = product.get_topology()

        verts = product.get_vertices()
        topology = {
            0:
            pt[(0, 0)],
            1:
            dict(
                enumerate(
                    list(itervalues(pt[(0, 1)])) +
                    list(itervalues(pt[(1, 0)])))),
            2:
            pt[(1, 1)]
        }
        super(FiredrakeQuadrilateral, self).__init__(QUADRILATERAL, verts,
                                                     topology)
        self.product = product