You can use a material function to do this from Python. - straightforwardly if your voxel data matches the resolution of the Meep simulation but you'd need to interpolate or discretize otherwise

Ian

On 21/02/2019 14:13, Jonathan wrote:
Hello,

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?

With kind regards,

Jonathan Klein

_______________________________________________
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

_______________________________________________
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to