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

Wrap entities_to_geometry in Python #3038

Merged
merged 15 commits into from
Feb 20, 2024
Merged

Conversation

mscroggs
Copy link
Member

@mscroggs mscroggs commented Feb 5, 2024

Resolves #3023

dim: Topological dimension of the entities of interest.
entities: Entity indices (local to the process) to determine the
vertex geometry indices for.
orient: If ``True``, in 3D, re-orients facets to have consistent
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this mean? (I know it straight from the C++ docs). @jorgensd?

Copy link
Sponsor Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a flag only used by BEMPP (at least at its introduction) to ensure consistent orientation of each facet (to make all cell normals point outwards).

@mscroggs might be able to comment on the necessity of this at the current stage of BEMPP

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It it's still needed it needs an explanation of what is required for a consistent orientation, i.e. document how we related the normal vector to a facet to the vertex ordering. And does it apply for all facet shapes?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still used by Bempp-cl, so I'm keen to keep it for now. I think we've only tested it for triangle facets, and I'd be keen to work towards removing this once Bempp-rs can do coupling without needing this.

python/dolfinx/mesh.py Outdated Show resolved Hide resolved
@garth-wells garth-wells added this to the v0.8.0 milestone Feb 15, 2024
python/dolfinx/mesh.py Outdated Show resolved Hide resolved
python/dolfinx/mesh.py Outdated Show resolved Hide resolved
@mscroggs mscroggs added this pull request to the merge queue Feb 20, 2024
Merged via the queue into main with commit 1dc8c01 Feb 20, 2024
19 checks passed
@mscroggs mscroggs deleted the mscroggs/entities_to_geometry branch February 20, 2024 16:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Wrap entities_to_geometry in Python interface
4 participants