Hi:
I'm running a simulation with a collection of random sources.
However, I'd like to use the same set of sources with and without the
structures of interest for normalization.
After I create the source list with:
(define gauss (make gaussian-src (frequency fcen) (fwidth
fcen))) ; Gaussian source
(do ((SourceX (/ StripSizeX -2) (+ SourceX 4))) ((<= SourceX (/ StripSizeX
2))) ; Create source every 4nm
(set! sources (append sources
(list
(make source
(src gauss) (component Ey)
(center SourceX SourceY)
(amplitude (exp (* 0+2i pi
(random:uniform)))) ; Random source phase
)
)
)
)
)
I run the simulation without the structures and calculate the flux spectra.
If I want to run a simulation with the structures using the same set of
random phase sources, can I simply do
(reset-meep)
then modify the structure and run the simulation again?
Or does (reset-meep) also resets the source list?
Thank you.
Regards,
Kevin CY Huang
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss