Photonics

Photonics

Topics related to Lumerical and more.

Reusing mesh for FDTD S-parameter sweep

    • Karen Julieth Pérez Bohórquez
      Subscriber

      Hi,

      I would like to perform a s-parameter sweep on an FDTD simulation file in order to obtain the s-parameters for the different ports and modes. When I tried running the sweep, I noticed that the meshing step is performed again on each iteration. Taking into account that the same geometry/configuration is used for all iterations of the sweep (only the source port/mode are changing) and since this meshing is the step that takes longer when the simulation is running, I would like to know if there is a way to "reuse" the mesh and avoid having to do the meshing step on each iteration.

      Thank you for taking the time to read this :)

    • Amrita Pati
      Ansys Employee

      Hi Karen,

      Saving and reusing mesh is a very advanced feature and does not have direct support in the UI. Instead one has to use command line arguments to the engine. Those command line arguments are documented here:

      https://optics.ansys.com/hc/en-us/articles/360024812334-Running-simulations-using-the-Windows-command-prompt

      The idea is that you can run a simulation with the option

      -outmaterialfile 

      and then you can run subsequent simulations with the command line argument

      -inmaterialfile 

      where it loads the mesh from instead of meshing.

      This option can be useful and saves time when the geometry and the materials don't change and you just want to simulate different source settings (source positions, incident angle, ...). 

      Additionally, I am not sure if this is also somthing that could be setup with S-matrix sweep tool in the GUI. Let me check this and come back to you.

      Regards,
      Amrita

Viewing 1 reply thread
  • The topic ‘Reusing mesh for FDTD S-parameter sweep’ is closed to new replies.