python-meep team mailing list archive
-
python-meep team
-
Mailing list archive
-
Message #00033
How to define a complex epsilon using the material stack
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 type
I 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
begin:vcard
fn:Projektass.(FWF) Dipl.-Ing. Govinda Lilley
n:Lilley;Govinda
org:TU Vienna;E387 - Photonics Institute
adr;quoted-printable:;;Gu=C3=9Fhausstr. 25-29;Vienna;;1040;Austria
email;internet:govinda.lilley@xxxxxxxxxxxx
tel;work:+43 (1) 58801 - 387 90
version:2.1
end:vcard
Follow ups