Hi!I've been trying to write some code to simulate metalic nano structures with python-meep. However, I could find no clue how use a complex permittivity in the material stack. If I use a complex array as a parameter for add_material_stacks_from_numpy_matrix() I get the following error.
Traceback (most recent call last):
File "<pyshell#33>", line 1, in <module>
mat=epsilon()
File "<pyshell#32>", line 16, in __init__
self.add_material_stacks_from_numpy_matrix(ms, 2)
File "/usr/local/lib/python2.6/dist-packages/meep.py", line 4337, in
add_material_stacks_from_numpy_matrix
return
_meep.PolygonCallback3D_add_material_stacks_from_numpy_matrix(self, *args)
TypeError: array cannot be safely cast to required typeI have tried using the NUMPY matrix metod too with the same result. I am not sure how to proceed from here or where to look.
Best regards, Govinda
<<attachment: govinda_lilley.vcf>>
_______________________________________________ Mailing list: https://launchpad.net/~python-meep Post to : [email protected] Unsubscribe : https://launchpad.net/~python-meep More help : https://help.launchpad.net/ListHelp

