(As there are no replies yet, I edit this post to make it easier to understand and to add the solution I found to my second question. Hopefully this is correct etiquette.)
- From my understanding of the ?setmaterial(); command I don’t think that this is possible, but I will ask anyway…
In DEVICE, is it possible to set the work function of a material via a script?
The work function of the material I am simulating isn’t well established, so I would like to be able to vary it within a script instead of doing it ‘manually’ each time. (Using ‘Optimization and Sweeps’ would also be ok.)
- Note: I solved this myself, see below.
To save the conduction band data I can use this command
What command can I use to save the corresponding z-data? That is, when I use the inbuilt visualizer in DEVICE to view the conduction band as a line, the parameter “z” is set as the “Plot x axis”. I can work out how to save the y-axis (Ec), but not the x-axis (z).
Solution to #2: Worked out from this page https://kb.lumerical.com/en/ref_scripts_datasets.html
band = getresult(“CHARGE::band”,“bandstructure”);
z = band.z;
Thanks in advance