Closed
Description
Summarize the issue
The connectivities (2,0)
(facet-to-vertex) and (2, 1)
(facet-to-edge) are missing the triangular facets in a prism mesh.
How to reproduce the bug
Run the MWE below. For a more detailed description of the problem see here
Minimal Example (Python)
from dolfinx.mesh import create_box, CellType
from mpi4py import MPI
mesh = create_box(MPI.COMM_WORLD, [[0, 0, 0], [1, 1, 1]], [1, 1, 1], CellType.prism)
print("Connectivity (2, 0)")
mesh.topology.create_connectivity(2, 0)
f_to_v = mesh.topology.connectivity(2, 0)
for i in range(f_to_v.num_nodes):
print(f_to_v.links(i))
print("\nConnectivity (2, 1)")
mesh.topology.create_connectivity(2, 1)
f_to_v = mesh.topology.connectivity(2, 1)
for i in range(f_to_v.num_nodes):
print(f_to_v.links(i))
Output (Python)
Connectivity (2, 0)
[0 1 3 4]
[0 2 3 5]
[1 2 4 5]
[1 4 6 7]
[2 5 6 7]
Connectivity (2, 1)
[0 2 4 8]
[1 2 6 9]
[ 3 4 6 10]
[ 4 5 11 13]
[ 6 7 12 13]
especially we do not retrieve the front and back facets, in the case of the (2,0) connectivity, given by: [0, 1, 2], [1, 2, 6], [3, 4, 5] and [4, 5, 7]
Version
main branch
DOLFINx git commit
No response
Installation
No response
Additional information
No response
Metadata
Metadata
Assignees
Labels
No labels