Hi.

I have tried simple example calculate flux density using meep. But it
doesn't work. :-(
My ctl code below,

(set! geometry-lattice (make lattice (size 10 10 10)))

(set! sources
 (list
   (make source (src (make gaussian-src (frequency 0.15) (fwidth 0.1)))
                 (component Ez)
                 (center 0 0 0 ))))
(set! pml-layers (list (make pml (thickness 1.0))))

(set! resolution 10)

(define trans
 (add-flux frequency 0.1 100
   (make flux-region
     (center 2 0 0) (size no-size 2 2) (direction X)  )))

(run-until 1 (at-beginning output-epsilon))
(display-fluxes trans)


and this code put the result,

ERROR: In procedure -:
ERROR: Wrong type argument in position 1: #<procedure frequency (x)>

What is the problem?

Thanks.

--
Ki-young Choi

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

Reply via email to