Ansys Assistant will be unavailable on the Learning Forum starting January 30. An upgraded version is coming soon. We apologize for any inconvenience and appreciate your patience. Stay tuned for updates.

Ansys Learning Forum Forums Discuss Simulation Photonics setmaterial command not working as expected in Lumerical 2023 R2.2 Reply To: setmaterial command not working as expected in Lumerical 2023 R2.2

Jared Sisler
Subscriber

Woah, sorry, somehow the body of my post got lost. Let's try again. Thanks for your help!

When I run the following script in Lumerical 2022 R2.3, it runs as expected by creating a new material with Re(index xx) = 2, Re(index yy) = 3, Re(index zz) = 4. However, when I run it in Lumerical 2023 R2.2, it creates a new material with Re(index xx) = 2, Re(index yy) = 2, Re(index zz) = 2. (All imaginary parts are 0 in both cases) Is this a bug or is there a change in how I need to define the index of a diagonal, anisotropic material? Thanks!

permittivity = [c/1e-6, 4+1i*0, 9+1i*0, 16+1i*0]
temp = addmaterial("Sampled 3D data");
setmaterial(temp,"name","TestMat");
setmaterial("TestMat","Anisotropy","Diagonal");
setmaterial("TestMat","sampled data", permittivity);

[bingo_chatbox]