Photonics

Photonics

Runinng Script file WITHOUT opening CAD

    • kokiabe
      Subscriber

      Hello.

      I want to run script file to calclate band structure, and I want to do it without opening CAD.

      I have been running simulation without opening CAD using Comand Prompt, by changing the directory, and writing the code <"C:\Program Files\Lumerical\v221\bin\fdtd-run-local.bat" -n 16 *.fsp>

      How can I do the same thing and run a script with a certain file, without opeing CAD?

      Thankyou

    • Lito Yap
      Ansys Employee

       

      @kokiabe,

      Run the script with the script with the CAD/GUI executable on the Windows command prompt as shown in our KB. 

      > https://optics.ansys.com/Running-simulations-using-the-Windows-command-prompt 

      So your command will be something like: (using 2022 R1 as per your message/example) 

      "C:\Program Files\Lumerical\v221\bin\fdtd-solutions" -nw -trust-script -run scriptfile.lsf

      Note that the script is part of the CAD/GUI and will always take up a GUI license and will run using the available cores on your computer. See our KB for more information on our product components and licensing. 

      > https://optics.ansys.com/Lumerical-product-components-and-licensing-overview 

       

    • kokiabe
      Subscriber

      Thankyou for the reply.

      >>Note that the script is part of the CAD/GUI and will always take up a GUI license and will run using the available cores on your computer. See our KB for more information on our product components and licensing. 

      So does this mean that it is not possible to run the script without opeing the CAD?

       

    • Lito Yap
      Ansys Employee

      @Kokiabe, 

      As mentioned, you can run the script without opening the CAD/GUI using the command line. With the -nw/-hide argument, this will hide the CAD/GUI from being displayed/shown in your desktop.  

      Just wanted to let you know that when running scripts it will always "checkout or take up" a GUI license. If you want to avoid "checking out or using a GUI license" to run the script, this is not possible. 

    • kokiabe
      Subscriber

      @ Lito Yap

      I have tried using comdand prompt to run the script fiel, but it doesnt seem to work. Can you find any proplem about this?

      I want to run the script ReasearchKGM.lsf with the simulation file a280h200.fsp

      Thank you

    • Lito Yap
      Ansys Employee

       

      @kokiabe,

      Are you trying to run your script file, “ResearchKGM.lsf”? Then change directory to the location of your script file. And use the script filename with your command.

      "C:\Program Files\Lumerical\v221\bin\fdtd-solutions" -nw -trust-script -run ResearchKGM.lsf

      You will have to "load" the simulation file on your script and the run the loaded simulation file on the script. Why do you want to run the script in command prompt? You are on a Windows PC. Any reason why you are not running your script from the CAD/GUI script editor window with your simulation file?

       

       

       

       

       

    • kokiabe
      Subscriber

      @Lito Yap

      Due to limited number of licence(1CAD at time) I was thinking about running the script file without opening the CAD.

      It worked with running the simulation with comand prompt without opening the CAD, so I was wondering if I can do the same thing with script file, but I assume that it's not possible due to running the script will always check out the GUI.

    • Lito Yap
      Ansys Employee

      @kokiabe,

      Yes, as I mentioned, running the script from the command line will always check out the CAD/GUI license. It will not free up your GUI license using this workflow.

      >https://optics.ansys.com/Lumerical-product-components-and-licensing-overview 

      Please run your script using/from the GUI. Otherwise, if more users are running Lumerical/FDTD, obtain additional FDTD licenses. 

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