I’m trying to fully script the tutorial example “p-n Junction Diode” found here:
I get to the point where I want to simplify the silicon material properties to get the “ideal” diode characteristics. However, I can’t figure out how to programmatically change the material properties.
I tried using the setmaterial() command from here: https://kb.lumerical.com/en/ref_scripts_setmaterial.html
but it doesn’t seem to work:
?setmaterial("Si (Silicon)"); color
?setmaterial("Si (Silicon)"); to return all of the modifiable properties of silicon as I see them when I click Materials -> Si (Silicon) in the GUI. What am I doing wrong?