-
-
March 20, 2024 at 9:26 amDhiman NagSubscriber
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?
-
March 20, 2024 at 9:08 pmAmrita PatiAnsys 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 -
March 22, 2024 at 10:55 amDhiman NagSubscriber
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 scriptaddmodelmaterial;
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
-
- The topic ‘Script to add material InGaAsP in Charge’ is closed to new replies.
- Difference between answers in version 2024 and 2017 lumerical mode solution
- Errors Running Ring Modulator Example on Cluster
- Import material .txt file with script
- Trapezoidal ring
- Help for qINTERCONNECT
- Absorption cross-section of AuNR excited by prism-based TIR
- Issues with getting result from interconnent analysis script
- Topology Optimization Error
- How to measure transmission coefficients on a given plane .
- Edge Coupler EME Example Issue
-
1762
-
635
-
599
-
591
-
366
© 2025 Copyright ANSYS, Inc. All rights reserved.