Photonics

Photonics

Parallel FDE simulations with mode overlap calculations

    • aberg
      Subscriber

      Hi, I'd like to run 10 parallel simulations (using addjobs/runjobs or something similar), where each simulation calculates the mode overlap of a different waveguide mode with a fiber mode using Lumerical MODE's FDE solver. I have written the script to do this for one single simulation, and it works fine. The script includes the commands to build the geometry, addfde, findmodes, optimizeposition, overlap, etc.

      Now, I would like to run this script for 10 different independent configurations in parallel to save time (I have access to an adequate number of CPUs). Is there a way for me to use addjobs/runjobs or some other technique to parallelize the findmodes and overlap calculations for the 10 independent simulations? Do I need to add some other monitor to the simulation so that the modes automatically get calculated when the files are saved as .lms, without needing the command "findmodes"? (I don't need mode propagation with EME, only finding modes for a given cross section with FDE.) Thank you!

    • Guilin Sun
      Ansys Employee

      From your description, you want to concurrently simulate more than files using addjob/runjobs. This will depend on your license types. If you have N licenses (or engine license) available, this should be ok, provided that you set them in the Resources. Please refer:

      https://optics.ansys.com/hc/en-us/articles/360025161033-Compute-resource-configuration-use-cases

      https://optics.ansys.com/hc/en-us/articles/360058577794-Lumerical-solve-accelerator-and-Ansys-HPC-license-consumption

      https://optics.ansys.com/hc/en-us/articles/360026162414-Concurrent-Parametric-Computing

      If you have only one license, it is also possible to do concurrent simulation. But it may have limits on the number of cores. Please refer  https://optics.ansys.com/hc/en-us/articles/360052724713-List-of-licensed-features-by-product

      Please try.

       

       

       

    • aberg
      Subscriber

      Thank you, but my question is not about the license/resource configuration. I am asking about how to create the jobs in the first place, so that each job (.lms file) does the mode finding and overlap calculation. I believe I must only add .lms files to the job queue (not .lsf script files). Right now, my .lsf script contains commands like findmodes, overlap, etc. But how do I incorporate these into an .lms file only, so that when the job queue runs the .lms file, the modes are found using the FDE solver and the overlap is calculated? In other words, instead of having "findmodes" in my .lsf script, how do I ensure that it is done when the .lms file is run from the job queue? (This question arises because it seems that only simulation files like .lms, .fsp can be added to the job queue, not script .lsf files.) Thanks again for your help!

Viewing 2 reply threads
  • You must be logged in to reply to this topic.