Photonics

Photonics

How to run script from Windows (or Linux) command line

TAGGED: ,

    • matteo
      Subscriber
      Hi I've been following https://support.lumerical.com/hc/en-us/articles/360024812334-Running-simulations-using-the-Windows-command-prompt, and I want to run a FDE simulation using a .lms file containing the waveguide to model, and a .lsf script that modifies the wavelength of the simulations and calls "findmodes" to run the simulation.
      I haven't been able to find online a way to do it.
      Calling "mode-solution geometry.lms" correctly opens the GUI
      Calling "fde-engine.exe geometry.lms" loads the file and perform meshing, but then it stops (obviously)
      Calling "fde-engine.exe geometry.lms -run script.lsf" or "fde-engine.exe -run script.lsf geometry.lms" yields an error saying "The file is not a *.lms simulation file. The simulation cannot proceed. Error: parallel error, at least one process could not read the designated file. Process number: 0 had this error"
    • Lito Yap
      Ansys Employee
      Scripting is part of the CAD/GUI environment and run with the CAD/GUI executable as shown here.
      Example: ..\mode-solutions.exe -run scriptfile.lsf simulationfile.lms
      Have you tried running the script in the MODE CAD/GUI?
    • matteo
      Subscriber
      Thanks a lot!
      I have a question regarding your documentation then... What does fde-engine do then, actually? Because it looks like it just calculates the mesh of the .lms file that is passed to it.

    • Guilin Sun
      Ansys Employee

      FDE engine is to let you calculate the mode property and do the analysis, such as frequency sweep and overlap calculation.

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