Skip to content

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

Merged
garth-wells merged 36 commits into
mainfrom
dokken/geometry-python-class
Sep 17, 2024
Merged

garth-wells merged 36 commits into
mainfrom
dokken/geometry-python-class

Conversation

@jorgensd

Copy link
Copy Markdown
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
Comment thread python/dolfinx/fem/element.py Outdated
Comment thread python/dolfinx/fem/element.py Outdated
Comment thread python/dolfinx/fem/element.py
Comment thread python/dolfinx/mesh.py Outdated
Comment thread python/dolfinx/mesh.py Outdated
Comment thread python/dolfinx/mesh.py Outdated
Comment thread python/dolfinx/mesh.py Outdated
Comment thread python/dolfinx/fem/element.py Outdated
Comment thread python/dolfinx/fem/element.py Outdated
Comment thread python/dolfinx/fem/element.py Outdated
Comment thread python/dolfinx/fem/element.py Outdated
Comment thread python/dolfinx/fem/element.py Outdated
Comment thread python/dolfinx/fem/element.py Outdated
Comment thread python/dolfinx/fem/element.py Outdated

@garth-wells garth-wells left a comment

Copy link
Copy Markdown
Member

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.

Comment thread python/dolfinx/fem/element.py Outdated
Comment thread python/dolfinx/mesh.py Outdated
Comment thread python/dolfinx/mesh.py Outdated
Comment thread python/dolfinx/mesh.py Outdated
Comment thread python/dolfinx/mesh.py Outdated
@jorgensd
jorgensd requested a review from jhale September 16, 2024 15:10
@jorgensd

jorgensd commented Sep 16, 2024

Copy link
Copy Markdown
Member Author

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
Copy Markdown
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

Comment thread cpp/dolfinx/mesh/Geometry.h Outdated
Comment thread python/dolfinx/fem/element.py Outdated
Comment thread python/dolfinx/fem/element.py Outdated
Comment thread python/dolfinx/fem/element.py Outdated
Comment thread python/dolfinx/fem/element.py Outdated
Comment thread python/dolfinx/mesh.py Outdated
Comment thread python/dolfinx/mesh.py Outdated
Comment thread python/dolfinx/mesh.py Outdated
Comment thread python/dolfinx/mesh.py Outdated
Comment thread python/dolfinx/mesh.py
@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
@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