Photonics

Photonics

Topics related to Lumerical and more.

Script command – anisotropic material index

    • ejlee0911
      Subscriber

      Hello.

      I would apply an anisotropic material index in the model setup script.

    • Guilin Sun
      Ansys Employee
      I tested and verified that indeed it does not work. Please create a dielectric material if you want to use script to set.
    • Guilin Sun
      Ansys Employee
      Hi,after discussion with development team, for anisotropic material you have to use a string. For example:
      setnamed("rectangle","index","1.1; 1.2; 1.3");
      ?getnamed("rectangle","index");
      1.1; 1.2; 1.3
      It is a little confusion since for isotropic index you can assign numeric value.
      However, the ultimate data inside this tab is a string, whether you assign a numeric data or a string.
      It has some evolution along the upgrading . Initially assigning numeric data did not work. However because it is the most common material compared to anisotropic, the numeric assignment is allowed.
      I hope this clarifies this issue.

Viewing 2 reply threads
  • The topic ‘Script command – anisotropic material index’ is closed to new replies.