thliebig / openEMS

openEMS is a free and open-source electromagnetic field solver using the EC-FDTD method.
http://openEMS.de
GNU General Public License v3.0
407 stars 145 forks source link

Feature request: progress bar #141

Open physicsnerd opened 1 month ago

physicsnerd commented 1 month ago

When running FDTD.Run, it'd be great if there was some sort of progress bar so I could tell where my simulation was at/whether it was a lost cause. (I'm running in Python.)

thliebig commented 1 month ago

If you have a good idea what that progress bar should track let me know. I'm doing FDTD for 20+ years now and I currently would have no idea ;)

Tracking e.g. steps vs max. number steps is bad because you should always set max number of steps way to large and let the energy decrement decide when to stop. Therefore you never know beforehand at what number of steps a simulation is done. And tracking the energy decay (decrement) does not really work either, because first the energy rises and then it decays uneven. Most of the time quick at first and (much) slower later...

But as I said, any ideas are welcome...

physicsnerd commented 4 weeks ago

I think tracking, for instance, both of these would be reasonable - I'm aware the max steps is not actually when the simulation will be done and the energy decay is not monotonic, but this is more a feature request for a sanity check that, e.g., each step isn't taking way too long, or that the energy decay isn't occurring excessively slowly, or even how close one is to the max number of steps. Maybe this is less a progress bar in the sense of 'towards completion' and more a progress bar in the sense of 'progress is occurring at a reasonable rate' haha.