On 2/21/2019 6:13 AM, Jonathan wrote:
the normal way to set up the scene geometry via the Python interface is to build it out of primitives (boxes, spheres, etc.). I however already have the permitivities as a 3d array. The python interface does not seem to provide a direct way to set them. I think it is maybe possible via the low level C++ interface, however I could not find any examples for this. What is the recommended way (considering robustness, performance, etc...) to do so?
You can import the permittivity as an HDF5 file (i.e., multidimensional array for the pixels) via the epsilon_input_file parameter as described in the documentation <https://meep.readthedocs.io/en/latest/Python_User_Interface/>. See also this FAQ <https://meep.readthedocs.io/en/latest/FAQ/#what-are-the-different-ways-to-define-a-structure>.
_______________________________________________ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss