Metadata-Version: 2.4
Name: zoomy-prepost
Version: 0.1.0
Summary: Shared pre/postprocessing conversions for Zoomy (VTK/.pvd -> HDF5, mesh conversion).
Author-email: Ingo Steldermann <steldermann@mbd.rwth-aachen.de>
License: LGPL-3.0-or-later
Project-URL: Homepage, https://github.com/ZoomyLab/Zoomy
Project-URL: Documentation, https://zoomylab.github.io/Zoomy
Project-URL: Source, https://github.com/ZoomyLab/Zoomy
Project-URL: Issues, https://github.com/ZoomyLab/Zoomy/issues
Keywords: simulation,zoomy,VTK,HDF5,mesh,postprocessing
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)
Classifier: Operating System :: OS Independent
Requires-Python: >=3.10
Description-Content-Type: text/markdown
Requires-Dist: numpy
Requires-Dist: h5py
Requires-Dist: meshio
Requires-Dist: jupytext
Requires-Dist: nbformat
Provides-Extra: core
Requires-Dist: zoomy-core>=0.2.17; extra == "core"
Requires-Dist: sympy; extra == "core"

# zoomy-prepost

Shared pre/postprocessing conversions for Zoomy — the general place for format
conversion so backends don't each ship custom writers.

Today it converts **VTK / ParaView `.pvd` → zoomy HDF5** (the format
`zoomy_plotting.read_hdf5` and the GUI read), so any backend that emits VTK
(firedrake `.pvd`, foam / dmplex `.vtu`/`.vtk`) does one call and the normal
postprocessing just works.

```python
from zoomy_prepost import vtk_to_hdf5
vtk_to_hdf5("simulation.pvd", "simulation.h5")   # .pvd collection, .vtu, or [frames]
```

```bash
zoomy-convert simulation.pvd simulation.h5
```

Output layout (`zoomy_core.misc.io` convention):

    /mesh/{dimension, type, n_cells, n_inner_cells,
           vertex_coordinates:(dim,n_vert), cell_vertices:(k,n_cells)}
    /fields/iteration_i/{time, Q:(n_vars,n_cells)}

Install it only in the containers that need it (firedrake, foam, dmplex). Mesh
conversion helpers can grow here too.
