-
Notifications
You must be signed in to change notification settings - Fork 24
Open
Description
In #31, we attempt to add support for structured curvilinear meshes (incomplete) by adding indices as the dimensions, instead of x and y.
Here the question is how to open a unstructured mesh into a Xarray dataset. In this case, we cannot rely on indexing the mesh. We have an example file which fits this description.
https://github.com/eX-Mech/pymech-test-data/tree/main/nek/naca
Close to the airfoil we cannot rely on indexing to group together elements.
Possible approaches
We need to explore and see what is the best approach:
-
There is a uxarray package which could be repurposed to load unstructured data.
- https://uxarray.readthedocs.io/en/latest/
- Load field file using
pymech.readnek - Load the EXODUS mesh file using
xarray.open_dataset
-
Convert to vtk and use pyvista-xarray:
- https://github.com/pyvista/pyvista-xarray
- We have a function to convert to vtk, but it relies on mayavi and traitlets. Directly relying on pyvista might be better solution. https://pymech.readthedocs.io/en/latest/vtksuite.html#pymech.vtksuite.hexa2vtk
Metadata
Metadata
Assignees
Labels
No labels
