dolfinx icon indicating copy to clipboard operation
dolfinx copied to clipboard

Read mixed topology mesh from file

Open chrisrichardson opened this issue 1 year ago • 3 comments

Add functionality to read a mixed topology mesh (e.g. triangle + quad, hex+prism+pyramid+tet) from file.

  • file format? VTK, XDMF, ADIOS2

chrisrichardson avatar May 28 '24 08:05 chrisrichardson

  • file format? VTK, XDMF, ADIOS2

I'd suggest VTKHDF, with maybe VTK first because it's easy to read.

garth-wells avatar May 29 '24 14:05 garth-wells

If we go for VTKHDF, please consider: https://discourse.vtk.org/t/vtkhdf-point-ownership/13913/4 as it is to me unclear how to actually make use of the partitioning offsets in VTKHDF. https://gist.github.com/jorgensd/6b3db748009ac1017929d7e7f3e83dc2 shows how the data-structure is written for a single cell type, which is fairly easy reverse engineer to reading and/or mixed topology.

jorgensd avatar May 29 '24 16:05 jorgensd

Thanks @jorgensd - I will take a look.

chrisrichardson avatar May 29 '24 16:05 chrisrichardson