meshio icon indicating copy to clipboard operation
meshio copied to clipboard

Save information about structured VTK files

Open MuellerSeb opened this issue 5 years ago • 4 comments

Since we now got reading routines for structured VTK meshes with PR https://github.com/nschloe/meshio/pull/399, it would be nice to conserve the information about the structured mesh.

Therefor we could add the dataset dict form

https://github.com/nschloe/meshio/blob/07a88dae1a4d8037904074f6f0ac6f20a8bf5c82/meshio/vtk_io.py#L153

to the Mesh container. The dataset dict could be initialized in the Mesh container as:

self.dataset = {"type": "UNSTRUCTURED_GRID"}

to be consistent.

I can come up with a PR to tackle that.

MuellerSeb avatar Jul 17 '19 13:07 MuellerSeb

Perhaps we could then also write structured meshes.

nschloe avatar Jul 17 '19 13:07 nschloe

That would be nice, since the evtk package got some down-sides.

MuellerSeb avatar Jul 17 '19 15:07 MuellerSeb

Perhaps we could then also write structured meshes.

Question is, which other mesh-formats provide structured meshes? And: Are they compatible?

MuellerSeb avatar Nov 20 '19 12:11 MuellerSeb

Yeah, we should probably collect formats which have structured meshes and see what their representations have in common.

nschloe avatar Nov 20 '19 13:11 nschloe