On Fri, 4 Jan 2008, Francisco Cordobés wrote:
I have been trying to simulate Perfect Conductors in Meep by using the
defined material-type "perfect-metal" or the defined variable metal as
material type when defining an object but whenever I export to png images
the output of the simulation I get a big black spot which in the first time
step is of the shape of my defined structure but which gets bigger any time
step not letting me see anything.

"Perfect metal" is implemented in Meep as a very large negative epsilon. This will cause your h5topng plots to be saturated if you plot epsilon, for example.

If you want to plot the dielectric function, for example, you would want to tell h5topng to truncate the lower end of the color scale using the -m option (man h5topng for more info). For example:

        h5topng -m 0 epsilon.h5

will plot the dielectric function in the epsilon.h5 file, while truncating the lower end of the color scale at zero (-m 0).

I have defined and got that behaviour using, for example, the following:

; Interior block
;===============
(set! geometry
    (list
         (make block
              (center 2.0 3.0)
              (size 2 4 infinity)
              (make perfect-conductor)
         )
    )
)

or using "(material metal)" instead.

(material metal) or (material perfect-metal) are correct; I assume you mistyped the above code?

Regards,
Steven G. Johnson
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to