NanoComp / meep

free finite-difference time-domain (FDTD) software for electromagnetic simulations
GNU General Public License v2.0
1.17k stars 598 forks source link

I don't have enough time until_after_source #2675

Closed leSemaleon closed 9 months ago

leSemaleon commented 9 months ago

I want to calculate the transmission spectrum. I use the stop_when_fields_decayed function. With my simulation size, the field from the gaussiansource does not have time to reach the point at which I check the byDecay before the source stops emitting. This causes the simulation to end prematurely. It is possible to add a constant term to until_after_source?