Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paraview exporting with pyEVTK #14

Open
0xDBFB7 opened this issue Apr 27, 2021 · 4 comments
Open

Paraview exporting with pyEVTK #14

0xDBFB7 opened this issue Apr 27, 2021 · 4 comments

Comments

@0xDBFB7
Copy link
Contributor

0xDBFB7 commented Apr 27, 2021

When testing 3D geometries, it seemed pretty helpful to dump .vtk files with object and field grids. The pyEVTK lib makes this pretty clean, might perhaps be worth an optional dependency?

On the other hand, perhaps this is something best handled by user code...

@flaport
Copy link
Owner

flaport commented Apr 28, 2021

I think this is something that fits pretty well in fdtd.visualize. It's indeed something that generally speaking can be useful to handle in user code too, but I think having a default way of visualizing in 3D is definitely something we need.

Feel free to open a PR for this, maybe just move the vtk related imports into the dump_to_vtk function to ensure this remains an optional dependency.

@sofroniewn
Copy link

I'd be happy to contribute an example showing how to integrate these simulations with napari a python multidimensional image viewer (note, I'm one of the maintainers of that package so am heavily biased!). We do 2D and 3D rendering, including timeseries, so should be able to cover the needs here. What's nice about the napari approach is I can be working on my simulations in a notebook and interacting with them in napari at the same time.

I've been using napari to visualize some of my own simulations, here's a 2D one with a lens :-)

fdtd_napari_2.mov

@flaport
Copy link
Owner

flaport commented May 6, 2021

Hey @sofroniewn , This is pretty cool! I would definitely like to see a PR for such an example 🙂

@sofroniewn
Copy link

Hey @sofroniewn , This is pretty cool! I would definitely like to see a PR for such an example 🙂

Great, I'll try and put this together into an example script when I get a chance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants