Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Facet-to-vertex and facet-to-edge connectivities in prism mesh are missing triangular facets #3603

Open
schnellerhase opened this issue Jan 26, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@schnellerhase
Copy link
Contributor

schnellerhase commented Jan 26, 2025

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

@schnellerhase schnellerhase added the bug Something isn't working label Jan 26, 2025
@schnellerhase schnellerhase changed the title [BUG]: facet to vertex connectivity in prism is missing triangular facets [BUG]: facet to vertex and facet to edge connectivity in prism are missing triangular facets Jan 27, 2025
@schnellerhase schnellerhase changed the title [BUG]: facet to vertex and facet to edge connectivity in prism are missing triangular facets [BUG]: Facet-to-vertex and facet-to-edge connectivities in prism mesh are missing triangular facets Jan 27, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant