On Sep 2, 2008, at 10:41 AM, Yu Liu wrote:
> I just defined the conductivity function in a similar way as the
> epsilon function. For the metal part, return the conductivity; for the
> other part, return 0. Then use the
>
> structure::set_conductivity(Dielectric, conductivity)
>
> to set the imaginary part. Is it correct?

No, you should call set_conductivity(Dx, ...),  
set_conductivity(Dy, ...), and set_conductivity(Dz, ...) to set an  
isotropic conducivity.  (See the manual for precisely how this relates  
to the imaginary part of epsilon.)  The reason for the three calls is  
that Meep supports diagonal anisostropic conductivity tensors, so you  
are setting it along the X, Y, and Z, directions.  Also, it supports  
magnetic conductivities, which are set via Hx, etc.

> I checked the meep.hpp file, it seems the default averaging option is
> turned off this time.

Averaging was never on by default in the C++ interface.

> As the real part of the dielectric constant will
> be a big negative number when using a complex value,

This sentence doesn't make any sense.  Setting a conductivity, or an  
imaginary part of epsilon, has no effect on the real part of epsilon  
in Meep.

Steven

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

Reply via email to