-
-
November 17, 2023 at 3:13 am
Shaoyan Li
SubscriberDear friends
I meet some problems when I try to find the various parameters in functions. Even though I can use commands like "?get;" to get the name of the variable, it's challenging to get more detailed information, such as the data type and the "Dictionary element" meaning in the variable.
-
November 17, 2023 at 11:27 pm
Amrita Pati
Ansys EmployeeHi Shaoyan,
You can get a list of all script commands alphabetically on the following page: Lumerical scripting language Alphabetical-list.
And another list categorized based on their functionality here:Lumerical scripting language By category
If you click on any of these script commands, you will be directed to the page where you can find detailed information on them. Let me know if you have any further questions.
Regards,
Amrita-
November 20, 2023 at 6:13 am
Shaoyan Li
SubscriberThanks, I know this is a good source to find the commands, but the question is that it is hard to get the detailed information. For example, I can use "addrcwa; ?get;" to get the parameters in RCWA, but I don't know how to set "interface reference positions", because "interface reference positions" is a CellArray, and the cells meaning in it are unknown. I can't find more detailed information in the website.
I would appreciate if you could provide more effective method.
-
-
November 21, 2023 at 8:06 pm
Amrita Pati
Ansys EmployeeHi Shaoyan,
Thanks for the feedback. I understand that we don't have sufficient information online when it comes to a few of the script commands. I will bring this up internally and we will see how we can add more information to our current articles. But at present these webpages are the only places we document the script commands.
Coming to the specific concern on setting interface positions, you can set the reference positions by script using the "set" or "setnamed" commands for the "interface reference positions" property. The argument is a cell array of cell arrays where there is an inner cell array for each enabled reference position. The cell array for the interface has three fields: name, type and interfaces. So an example cell array would be:
{{"::model::rectangle", "max", 1},{"::model::rectangle", "min", 1}}
An example script command to set this property would be:
setnamed("RCWA", "interface reference positions", {{"::model::rectangle", "max", 1},{"::model::rectangle", "min", 1}});Let me know if you need help with any of the other script commands.
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
-
8780
-
4658
-
3151
-
1678
-
1464
© 2023 Copyright ANSYS, Inc. All rights reserved.