ModernElectron / WarpX

Modern Electron's WarpX repository serves as both a fork of the WarpX code (an advanced electromagnetic Particle-In-Cell code - see https://ecp-warpx.github.io) and the repository for a set of tools used in simulating thermionic devices (mewarpx).
https://mewarpx.readthedocs.io/en/latest/index.html
Other
0 stars 1 forks source link

Postprocessing utilities, inc. movie creation #177

Open peterscherpelz opened 2 years ago

peterscherpelz commented 2 years ago

Also fixes a typo in default plotted units

peterscherpelz commented 2 years ago

@roelof-groenewald Thanks for that example, that's very helpful in thinking about how to generalize this. I like the idea of separately factoring out the different elements, I'll figure out how to do that in a reusable way and update this accordingly when I get a chance.

peterscherpelz commented 2 years ago

Also I need to recall if I forgot about the animation package when I originally wrote this a year ago or if there's a reason I didn't use it... probably the former, if so I'll change it to use that too.

peterscherpelz commented 1 year ago

Just a note as I leave this for now - my last commit was exploring the concept of having a MovieMaker class that would basically hold the overall figure, and then iterate through frames either saving each image (and if desired an ffmpeg conversion), or doing a matplotlib animate function. Each axes object inside that would be primarily managed by a separate class, as AnimatedArray (or a future LinePlot or some such for current timeseries w/ a moving bar as Roelof had) and those would be called at each frame to update their respective plots. It's unfinished - not even run once - but I think the concept is sound for flexible movies.