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

Add Python-interface for geometry constructor and geometry class #3403

Merged
merged 36 commits into from
Sep 17, 2024

Conversation

jorgensd
Copy link
Member

Continuation of #3400.

Add Geometry Python class and appropriate constructor (create_geometry).
Expose some bindings and wrap return types (Geometry and CoordinateElement) when returned from Python objects.

@jorgensd jorgensd added the documentation Documentation improvements or fixes label Sep 15, 2024
python/dolfinx/fem/element.py Outdated Show resolved Hide resolved
python/dolfinx/fem/element.py Outdated Show resolved Hide resolved
python/dolfinx/fem/element.py Show resolved Hide resolved
python/dolfinx/mesh.py Outdated Show resolved Hide resolved
python/dolfinx/mesh.py Outdated Show resolved Hide resolved
python/dolfinx/mesh.py Outdated Show resolved Hide resolved
python/dolfinx/mesh.py Outdated Show resolved Hide resolved
python/dolfinx/fem/element.py Outdated Show resolved Hide resolved
python/dolfinx/fem/element.py Outdated Show resolved Hide resolved
python/dolfinx/fem/element.py Outdated Show resolved Hide resolved
Copy link
Member

@garth-wells garth-wells left a comment

Choose a reason for hiding this comment

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

Are the pull-back/push-forward functions for single cells only? If yes, this will often be slow. Would be good to support 'vectorisation' over multiple cells.

python/dolfinx/fem/element.py Outdated Show resolved Hide resolved
python/dolfinx/mesh.py Outdated Show resolved Hide resolved
python/dolfinx/mesh.py Outdated Show resolved Hide resolved
python/dolfinx/mesh.py Outdated Show resolved Hide resolved
python/dolfinx/mesh.py Outdated Show resolved Hide resolved
@jorgensd jorgensd requested a review from jhale September 16, 2024 15:10
@jorgensd
Copy link
Member Author

jorgensd commented Sep 16, 2024

Are the pull-back/push-forward functions for single cells only? If yes, this will often be slow. Would be good to support 'vectorisation' over multiple cells.

This is introducing new functionality and a non-backwards compatible API and is best addressed in a separate PR

Base automatically changed from dokken/expose_geometry_constructor to main September 16, 2024 16:15
@jorgensd
Copy link
Member Author

@garth-wells
I've made an issue describing potential actions that could be made in another PR, and some potential issues/interface changes one could make: #3408

cpp/dolfinx/mesh/Geometry.h Outdated Show resolved Hide resolved
python/dolfinx/fem/element.py Outdated Show resolved Hide resolved
python/dolfinx/fem/element.py Outdated Show resolved Hide resolved
python/dolfinx/fem/element.py Outdated Show resolved Hide resolved
python/dolfinx/fem/element.py Outdated Show resolved Hide resolved
python/dolfinx/mesh.py Outdated Show resolved Hide resolved
python/dolfinx/mesh.py Outdated Show resolved Hide resolved
python/dolfinx/mesh.py Outdated Show resolved Hide resolved
python/dolfinx/mesh.py Outdated Show resolved Hide resolved
python/dolfinx/mesh.py Show resolved Hide resolved
@garth-wells garth-wells added the enhancement New feature or request label Sep 17, 2024
@garth-wells garth-wells added this pull request to the merge queue Sep 17, 2024
Merged via the queue into main with commit 873fac5 Sep 17, 2024
27 checks passed
@garth-wells garth-wells deleted the dokken/geometry-python-class branch September 17, 2024 19:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation improvements or fixes enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants