TAGGED: metalens
-
-
October 18, 2022 at 10:41 am
U Abinash Patro
SubscriberI downloaded the latest metalens zip file from the website. In the unit cell simulation file, I changed the material and structural properties like height ,radius. I also changed wavelength and period . When I try to see how the phase changes, it shows S variable is empty. When I run the analysis of S params, I get this output:-Any comments to resolve this issue?
-
October 18, 2022 at 9:50 pm
Guilin Sun
Ansys EmployeeDid you use broadband source or single wavelength like the example online?
what is the value for "target_grating_order_out"? by default it is 0th order.You can use question mark to get the values of the variables:
? target_grating_order_out;
? n_array;
and check why it shows the error.
-
October 19, 2022 at 5:46 am
U Abinash Patro
SubscriberIn the S params, the target grating order is defined as 0.
-
-
October 19, 2022 at 5:37 am
U Abinash Patro
SubscriberI used single wavelength source. Also I imported the material data from a file. I ran the above commands and got this:
? target_grating_order_out;
Error: prompt line 1: target_grating_order_out is not a valid function or variable name
? n_array;
Error: prompt line 1: n_array is not a valid function or variable name -
October 19, 2022 at 4:35 pm
Guilin Sun
Ansys EmployeeThen you will need to use ? to check all the quantities before the error line and find out why those parameters have no value.
-
October 21, 2022 at 4:33 am
U Abinash Patro
Subscriber -
October 21, 2022 at 4:33 am
U Abinash Patro
Subscriberhi I am stil unable to resolve this. The error doesnt show for the parameters of unit cell original file. I dont know why it only shows for my parameters.Here are the parameters I used for which I got an error:
wavelength: 390 nm, pilllar user defined dielectric index: 2.365,substrate: Si02 glass,period:250 nm, radius sweep: 40-85 nm, height sweep:300-500nm.
But when my period was increased to 300nm, there wasnt any error. Are there any conditions for which we have to set our period or other parameters to have a errorless simulation?
-
-
October 21, 2022 at 3:45 pm
Guilin Sun
Ansys EmployeeUnfortunately I could not help more, as I cannot see or edit your file. Please follow my previous suggesion to open the analysis group, in its "ananlysis" script, check every variable using question mark. Maybe your simulation file failed?
We only give general suggestions since we are not allowed to download or open customer files from the forum. If you have premium support previlege please send us a support email with the problematic file.
-
- 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
- Error on Lumerical device
- Ansys Insight: About override mesh in FDTD: its use and settings
- Finding your Ansys (or Lumerical) account number
- Lumerical – error message when trying to open from Linux terminal
-
7592
-
4440
-
2953
-
1427
-
1322
© 2023 Copyright ANSYS, Inc. All rights reserved.