-
-
March 13, 2023 at 5:32 pm
Miller Testing
SubscriberI was trying to add roughness (LER) to a contact hole:
# add silicon substrate addrect; set("name","substrate"); set("x",0); set("y",0); set("z",0); set("x span",10e-6); set("y span",10e-6); set("z span",1e-6); set("material","Si (Silicon) - Palik"); # add contact hole addcircle; set("name","hole"); set("x",-2e-6); set("y",-2e-6); set("z",0.5e-6); set("radius",0.05e-6); set("material","Air"); # replicate contact holes along x direction selectall; replicatexy(11,1,0.2e-6,0); # delete unwanted holes selectpartial('hole'); delete; # replicate contact holes along y direction selectall; replicatexy(1,11,0,0.2e-6); # delete unwanted holes selectpartial('hole'); delete;
# add roughness to all holes
selectall;
addroughness(
"x",
0,
"y",
0,
"z",
0,
"r",
5e-9,
20e-9,
"seed",
randomint(100000)
);
However I get this error:
- replicatexy is not a valid function or variable name
- line 15: matrices can not exceed 8 dimensions
Can someone help me to solve with this problem?
Thank you.
-
March 14, 2023 at 9:17 pm
Guilin Sun
Ansys EmployeeI am not sure where you get "replicatexy" as it is not listed in the script commands officially:
https://optics.ansys.com/hc/en-us/articles/360034923553-Lumerical-scripting-language-Alphabetical-list
Neither "randomint".
Please check where is it from.
"- line 15: matrices can not exceed 8 dimensions"
I do not know which line 15 but as the message says, a matrix cannot have more than 8 dimensions, if you defined it.
For randomness, please refer to the structure groups in the Object Library.
-
March 17, 2023 at 8:38 am
Miller Testing
SubscriberDear Guilin Sun,
Thank you for your response. I apologize for the lack of clarity in my programming language.
Actually, I want to add a beam structure and i want to implement the roughness on the surface area of the block by using script.
If its not troubled you. Can you help and show me how to do that?
Thank you very much.
Best regards,
Miller
-
March 17, 2023 at 3:42 pm
Guilin Sun
Ansys EmployeePlease check the Object Library for some randomness. Also check the following articles:
Tips for adding surface roughness to structures – Ansys Optics
sroughness - Script command – Ansys Optics
-
- 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?
- Error: addfdtd is not a valid function or a variable name
- Error on Lumerical device
- Using a license file on a new license server
- Ansys Insight: Diverging Simulations
- Ansys Insight: Transmission results greater than one
- Ansys Insight: About override mesh in FDTD: its use and settings
- Is there a Lumerical script command to output the Simulation and Memory requirements?
- Ansys Insight: Convergence issues in CHARGE
-
3670
-
2552
-
1751
-
1226
-
582
© 2023 Copyright ANSYS, Inc. All rights reserved.