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

sim.output.phys_fields.animate function to create movies and GIF #118

Closed
paugier opened this issue Nov 26, 2021 · 2 comments · Fixed by #136
Closed

sim.output.phys_fields.animate function to create movies and GIF #118

paugier opened this issue Nov 26, 2021 · 2 comments · Fixed by #136
Milestone

Comments

@paugier
Copy link
Contributor

paugier commented Nov 26, 2021

I think it's a very nice feature of core fluidsim solvers to have this function. Users can very easily create simple 2d animations representing the flow simulated. It's very useful to "see what happens" and of course for communication (BTW, we don't use it enough).

Animations in fluidsim are based on this method: https://fluidsim.readthedocs.io/en/latest/generated/fluidsim.base.output.movies.html#fluidsim.base.output.movies.MoviesBase.animate

It would be very nice to have something similar for Snek. I don't know if it could be based on the code of fluidsim.base.output.movies.MoviesBase. If it could, we would have to move this class in fluidsim_core (super easy).

I don't include this issue in our 0.8.0 milestone, but it would be very useful for #92 since it would be very easy to create nice animated GIF that could be included in the README and in the doc. Such GIF would also be useful for communication on social media (see for example https://twitter.com/me3250).

@paugier
Copy link
Contributor Author

paugier commented Nov 26, 2021

I don't know if it could be based on the code of fluidsim.base.output.movies.MoviesBase

Actually, I think it could be based on this class. And for the solvers/meshes for which the pymech reader works, it should not be difficult.

@paugier
Copy link
Contributor Author

paugier commented Mar 23, 2022

See also https://github.com/jbusecke/xmovie

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

Successfully merging a pull request may close this issue.

2 participants