October 19, 2022 at 9:03 amkokiabeSubscriber
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?
October 19, 2022 at 4:49 pmLito YapAnsys Employee
Run the script with the script with the CAD/GUI executable on the Windows command prompt as shown in our KB.
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.
October 20, 2022 at 1:44 amkokiabeSubscriber
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?
October 20, 2022 at 2:38 amLito YapAnsys Employee
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.
October 20, 2022 at 3:00 am
October 20, 2022 at 8:17 pmLito YapAnsys Employee
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?
October 21, 2022 at 1:21 amkokiabeSubscriber
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.
October 21, 2022 at 2:26 pmLito YapAnsys Employee
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.
Please run your script using/from the GUI. Otherwise, if more users are running Lumerical/FDTD, obtain additional FDTD licenses.
- You must be logged in to reply to this topic.
Simulation World 2022
Check out more than 70 different sessions now available on demand. Get inspired as you hear from visionary companies, leading researchers and educators from around the globe on a variety of topics from life-saving improvements in healthcare, to bold new realities of space travel. Take a leap of certainty and check out a session today here.
Earth Rescue – An Ansys Online Series
The climate crisis is here. But so is the human ingenuity to fight it. Earth Rescue reveals what visionary companies are doing today to engineer radical new ideas in the fight against climate change. Click here to watch the first episode.
Subscribe to the Ansys Blog to get great new content about the power of simulation delivered right to your email on a weekly basis. With content from Ansys experts, partners and customers you will learn about product development advances, thought leadership and trends and tips to better use Ansys tools. Sign up here.
- “Import optical generation” or “delta generation rate”?
- Why am I getting “process exited without calling finalize”, and how do I fix it?
- Error on Lumerical device
- Using a license file on a new license server
- Ansys Insight: Diverging Simulations
- Ansys Insight: About override mesh in FDTD: its use and settings
- Error: addfdtd is not a valid function or a variable name
- Ansys Insight: Transmission results greater than one
- Ansys Insight: Convergence issues in CHARGE
- Is there a Lumerical script command to output the Simulation and Memory requirements?
© 2022 Copyright ANSYS, Inc. All rights reserved.