Photonics

Photonics

Can an FDTD simulation be paused, data exported, then resumed?

    • fdtdisgreat
      Subscriber

      I'm currently performing an autoshutoff convergence test between 1e-7 and 1e-9. At the moment, I'm just setting the autoshutoff to a value in this range, letting the simulation run to completion, exporting the results via 'matlabsave', then resetting up the simulation with a different autoshutoff level. However, this is pretty inefficient, as I'm essentially running the first part of the simulation again and again.

      Is there a way to pause or end the simulation at a given autoshutoff e.g. 1e-7, export the data via 'matlabsave' or a similar function, then resume the simulation until it reaches the next autoshutoff e.g. 3e-8, and so on?

      Thank you in advance.

    • Taylor Robertson
      Ansys Employee

      Yes this doesn't seem to be the most efficient use of time, and fortunately we have a checkpointing feature that will allow you to continue your simulation from a certain point rather then starting over again. This is enabled in the FDTD object advanced options. If you have a checkpoint file from the file you can resume the simulation using resume option under run in the top toolbar.
      Please see the Simulation Checkpoint section of the following reference.
      https://support.lumerical.com/hc/en-us/articles/360046368573-Running-FDTD-simulations-from-the-design-environment


    • fdtdisgreat
      Subscriber
      Thank you very much
    • fdtdisgreat
      Subscriber
      I just tried to perform a sweep at different intervals of autoshutoff and it didn't work. I used the "checkpoint at autoshutoff" feature which did pause the simulation at 1e-7, but when I tried to reset the autoshutoff to 1e-8 and resume the simulation (after I had exported my data using matlabsave), I got an error - can't modify in Analysis Mode, need to switch to layout. Is there a way to change the autoshutoff at 1e-8 after pausing it at 1e-7?
    • Taylor Robertson
      Ansys Employee
      Hey
      Sorry I missed this, but you should be able to switch to layout resave the file and click resume. The only setting you can change is the auto-shutoff, but you should be able to do exatcly what you intend.
      https://support.lumerical.com/hc/en-us/articles/360036896474-resume-Script-command
      Best
Viewing 4 reply threads
  • You must be logged in to reply to this topic.