-
-
September 1, 2023 at 9:09 am
Md. Atiqur Rahman
Subscriber- I have two machines running lumerical FDTD and Mode solution. One of them can excute "findmodes;" and calculates modes in waveguide. Another machine excute "findmodes;" without issue yet it can't calculate modes. how to solve this and why this happening?
- how can I modify "fit tolerance" and "imaginary weight" of "Si (Silicon) - Palik" using script as it is showing i can't modify them?
-
September 1, 2023 at 5:04 pm
Amrita Pati
Ansys EmployeeHi Atiqur,
- This is a bit strange. Are the waveguide simulations running on the two devices exactly same? Are they using the same mesh and material fit?
- The materials available in the material database by default are protected. So, you will first have to create a copy of this material and then set the desired properties. You may use the following code to acheive this:
mname = copymaterial("Si (Silicon) - Palik");
setmaterial(mname,"imaginary weight",100);
setmaterial(mname,"tolerance",0);Here, copymaterial creates a copy of Si and returns the new name of the material. This output is used as one of the arguments of setmaterial to set the fit tolerance and imaginary weight.
Regards,
Amrita -
September 2, 2023 at 1:08 pm
Md. Atiqur Rahman
SubscriberThanks for your informative responses.
- Yeah, same .lsf file is used in both machines.
- Thanks for clarification. I tried something similar before but didn't work, but now working fine.
-
September 5, 2023 at 6:07 pm
Amrita Pati
Ansys EmployeeHello,
Are they using the default uniform mesh in FDE? In the file where you can not find the modes, I would suggest you to add a finer mesh in the waveguide region using mesh override and see if you are able to find the modes now. Also, could you please check the material fitting in the Material Explorer and see if both the simulations are using the exact same values of index for each structure?
Regards,
Amrita -
September 7, 2023 at 1:29 pm
Md. Atiqur Rahman
SubscriberHere is the lsf file I tried to run on both machines. I have checked everything as you have instructed but still no solution.
clear;
clc;
deleteall;#save("D:\Device with Script\Neff Generation\Index curve Generation.fsp");
new_material = copymaterial("Si (Silicon) - Palik");
setmaterial(new_material,"imaginary weight", 10);
setmaterial(new_material,"tolerance", 0);addfde;
set("solver type",1);
set("x", 2e-6);
set("y", 0);
set("y span", 3e-6);
set("z", 0.11e-6);
set("z span", 3.3e-6);
set("define y mesh by", "maximum mesh step");
set("define z mesh by", "maximum mesh step");
set("dy", 0.01e-6);
set("dz", 0.01e-6);
set("fit materials with multi-coefficient model", true);
set("wavelength start", 1.53e-6);
set("wavelength stop", 1.565e-6);addrect;
set("name","Cladding");
set("x min", 0e-6);
set("x max", 3e-6);
set("y min", -3e-6);
set("y max", 3e-6);
set("z min", -2e-6);
set("z max", 2e-6);
set("material","SiO2 (Glass) - Palik");
set("alpha", 0.2);
set("override mesh order from material database", true);
set("Mesh order",5);addrect;
set("name","Waveguide");
set("x min", 0e-6);
set("x max", 3e-6);
set("y", 0);
set("y span", 0.7e-6);
set("z min", 0);
set("z max", 0.22e-6);
set("material","Si (Silicon) - Palik Copy 1");
setanalysis("wavelength", 1.53e-6);
setanalysis("stop wavelength", 1.565e-6);
setanalysis("number of points", 36);
setanalysis("number of test modes", 5);findmodes;
selectmode(1:2);
setanalysis("track selected mode",1);
setanalysis("detailed dispersion calculation",1);frequencysweep;
n=getdata("frequencysweep","neff");
f=getdata("frequencysweep","f_D");plot(c/f*1e9,n,"Wavelength (nm)", "Effective index (neff)");
-
September 7, 2023 at 9:24 pm
Amrita Pati
Ansys EmployeeHi,
I used your script and I was able to find modes. May I know which release of MODE are you using? Thank you!
Regards,
Amrita -
September 11, 2023 at 4:48 pm
Md. Atiqur Rahman
SubscriberI am using "Lumerical 2023 R1" version on both machines.
-
September 13, 2023 at 5:55 pm
Amrita Pati
Ansys EmployeeHi,
This is unusual. I tested the same script on two different machines on the same release and I can successfully find the modes. From here all I can think of is performing a clean installation. In the machine having issues, I would recommend you to uninstall and install Lumerical to see if that helps. Thank you!
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
- 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
-
7690
-
4484
-
2957
-
1435
-
1322
© 2023 Copyright ANSYS, Inc. All rights reserved.