Photonics

Photonics

Topics related to Lumerical and more.

Script to add material InGaAsP in Charge

    • Dhiman Nag
      Subscriber

      Hi all,

      I would like to add the electronic propoerties of material InGaAsP with x=0.5 and y=0.5 in Charge solver. Can someone tell me how to do that with Lumerical/Python script?

    • Amrita Pati
      Ansys Employee

      Hi Dhiman,

      Once you create the material from the database:

       You can use the following line of code to look at the list of properties that can be changed:

      select("materials::InGaAsP::InGaAsP x=0.5 y=0.5");
      ?set;

      But there is a slight caveat, while setting the properties, you will have two different entities, one for the semiconductor properties (Ct) and the other for the thermal properties (Ht). The script above returns all the properties but while setting their values you need to access them individually. You can select one of  them manually and then set their properties using script. But if you want to make it fully script-based then you will have to rename the two objects differently first. Then you can use the set/setnamed command again to set these properties. Here is a quick example:

      #Rename the Ct and Ht
      select("materials::InGaAsP::InGaAsP x=0.5 y=0.5");
      for (i=1:getnumber) {
      set("name","InGaAsP x=0.5 y=0.5_"+num2str(i),i);
      }
      #Set properties of Ctsetnamed("materials::InGaAsP::InGaAsP x=0.5 y=0.5_1","work function",3);
      setnamed("materials::InGaAsP::InGaAsP x=0.5 y=0.5_1","dc permittivity",3);

      Regards,
      Amrita

    • Dhiman Nag
      Subscriber

      Dear Amrita,


      Thank you for the reply. It works. I am curious if the initial step i.e. 'creating material from database' can also be done through script. I can add simple material e.g. Silicon with the below script

      addmodelmaterial;
      set("name","Silicon");
      addmaterialproperties("CT","Si (Silicon)");

      But I cannot add InGaAsP with x=0.5 and y=0.5 in the same way.


      Regards,
      Dhiman

Viewing 2 reply threads
  • The topic ‘Script to add material InGaAsP in Charge’ is closed to new replies.