On 03/17/2018 11:39 AM, xxh...@gmail.com wrote:
Additionally, I noticed that there is a materials library
(materials_library.py) where I can find the epsilon functions for some
common materials. In that file, they made the conversion of eV to 1/um:
eV_um_scale = 1/1.2398
If I want to import materials from this file, and want to set a = 100
nm, do I need to change the conversion as well? (i.e. eV_100nm_scale =
1/12.398)
That's correct. For a unit distance of 100 nm, you will need to modify
the scaling parameter as follows: eV_um_scale = 0.1/1.23984193. This is
explained in the documentation
<https://meep.readthedocs.io/en/latest/Materials/#materials-library>.
Make sure that you make this change directly to the materials library
file. If you set this parameter in your Python script after importing
the materials library, it will have no effect.
_______________________________________________
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss