Hi all,

 

I am trying to simulate a plane wave passing through a dispersive,
absorptive medium the density of which varies in space. However, I do not
achieve a situation in which I have both, dispersion and spatial dependence
in one simulation, separately it works fine and produces what I want. I
suspect that I have not properly understood the use of "extra-material". I
have searched the mailing-list but have not found an example of how it
should be used. I would appreciate any hint on how this is done. I use meep
1.1.1 on ubuntu 9.04. Below I have reproduced the code that defines the
material-func and the geometry setting. Thanks very much for your help.
Cheers,

 

Jakob

 

Code (I am happy to provide more, but did not want to clutter the mail

unnecessarily):

 

(define (atoms-func r)

   (make dielectric (epsilon 1)

      (E-polarizations

        (make polarizability (omega omegaresonance) (gamma linewidth) (sigma
(atomic-density r Rx Ry))))))

 

(set! extra-materials (list atoms-func))

 

(set! geometry

        (list

         (make block 

           (center 0 0)

           (size (* 2 Rx) (* 2 Ry) infinity)

           (material (make material-function (material-func atoms-func))))))

 

 

 

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

Reply via email to