Dear colleague:
        The example of the transmission spectrum in the tutorial,I want a
loop for different index.
  Like the following:

    (do ((n 2.7 (+ n 6e-3))) ((> n 2.8))
           (set! geometry
             (list ............))
     (define trans ; transmitted
flux
      (add-flux fcen df nfreq
                                   (make flux-region
                     (center wvg-xcen (- (/ sy 2) 1.5)) (size (* w 2) 0))))
   run-sources+
 (stop-when-fields-decayed 50 Ex

          (vector3 (/ (+ w  space) -2)  (- 2 (/ sy 2) ))
      1e-3)
)

(display-fluxes )


it is wrong,because of the define,But  the add-flux have to be after the set
geometry.

How should I do?  Thanks
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to