[FEATURE] - Create VTK exporters

Open
#1,759 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python

Research direction

No files or tests are named. Start by locating the existing structured-grid VTK writer, then review the example code from @FTW12345 and Flopy's exporters. Done means supporting unstructured DISV grids and exporting complete simulations, including grid data and a .pvd model structure readable by Paraview or PyVista.

Written by the indexing model from the issue text.

Description

enhancement

Part of the wishlist on our roadmap, we could do with some exporters to VTK to easily view things in 3D viewers like Paraview or PyVista. We already have a function to write structured grids to VTK for PyVista, but lack this for unstructured grids (DISV). This is low-hanging fruit.

Furthermore, we'd like to be able to export a complete simulation to VTK. Griddata will be exported to VTK files, and the model structure can be stored in a .pvd file for which both Paraview and PyVista have readers.

@FTW12345, mentioned he had some example code which can be our starting point. Furthermore I know Flopy also has some exporters we could take inspiration from.

Dominant language
Python
Stars
41
Forks
12
Avg merge
20h 23m
Merged PRs (30d)
2

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Deltares/imod-python

All issues in Deltares/imod-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.