NanoComp / meep

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

How to descide the running time under using continous source? #2804

Closed beizhixing closed 3 months ago

beizhixing commented 3 months ago

Hi, I want to simulate waveguide by using continous source, it is tricky to set the running time.

The image below are under different simulation time setting:

E_gama0_15 00

sum.run(until=400)

E_gama0_15 000

sum.run(until=500)

E_gama0_0 083pi

sum.run(until=3000)

I think as long as the simulation convergence, no matter how long I set, the result shoud be not change.

I'd be appreciate if you can help me to solve it, @smartalecH @oskooi !

stevengj commented 3 months ago

What is the scale bar on the third plot? Is the simulation diverging?