TAGGED: lumerical
-
-
October 20, 2023 at 4:08 pm
Bartu Yaman
SubscriberI want to keep my function definitions in a separate file so that I can just call them in my simulation file and execute those functions to keep them clean just like how I can call "import my_file" in python and then I can use the functions with "my_file.myfunction()". Is this a thing with Lumerical scripting language? If not, this severely hinders the users ability to generate a reliable workflow with the scripting language.
-
October 20, 2023 at 5:17 pm
Amrita Pati
Ansys EmployeeHi Bartu,
Yes, you can absolutely do that. You can run one script file from either another script file or the Script command. Please refer to this link for more information:Running script files. You can also create user-defined function using the function script command Create your own Functions. We use these in many of our own workflows as well.
Regards,
Amrita
-
- You must be logged in to reply to this topic.

Boost Ansys Fluent Simulations with AWS
Computational Fluid Dynamics (CFD) helps engineers design products in which the flow of fluid components is a significant challenge. These different use cases often require large complex models to solve on a traditional workstation. Click here to join this event to learn how to leverage Ansys Fluids on the cloud, thanks to Ansys Gateway powered by AWS.

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.

Ansys Blog
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?
- Using a license file on a new license server
- Ansys Insight: Diverging Simulations
- Error: addfdtd is not a valid function or a variable name
- Questions about the calculation of the cross-polarization conversion efficiency of metasurface
- Finding your Ansys (or Lumerical) account number
- Error on Lumerical device
- Ansys Insight: About override mesh in FDTD: its use and settings
- Lumerical – error message when trying to open from Linux terminal
-
8762
-
4658
-
3151
-
1678
-
1456
© 2023 Copyright ANSYS, Inc. All rights reserved.