On Sep 3, 2008, at 3:12 AM, phcgroup wrote:
> In a simulation mentioned by a paper, the dipoles were driven by  
> sinusoidal functions with a single frequency, but
> with random phase factors, while the electric field direction of  
> each dipole was random within the device plane.
>
> Could you tell me how to set this? Thank you in advance.

Just add a bunch of sources, one for every point where you want a  
dipole, with random phases.

e.g. (exp (* 0+2i pi (random:uniform))) returns a random complex phase  
factor.

If you need the phases to be varying randomly in time as well, then  
you would need to use the custom-src object to specify the time- 
dependence (see the reference manual).

Steven

  
                                                  

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

Reply via email to