Hello, Everyone:

I was about to get  the flux after a period of time and I  referred  to
those old  articles posted here to make my own code but  still got
errors as shown below.

ERROR: In procedure meep-dft-flux-freq-min-get:
ERROR: Wrong type argument in position 1: 0

*I also paste the section of the codes here. Does anybody know what's going
on? thank you.*

(define rise-period 130)
(define tstep 0.6)
  (define trans1  0 )

     ( while ( > (meep-time) (* T rise-period) )
      (set!  trans1   ( add-flux fcen df nfreq (make flux-region (center
right-flux-plane-x 0) (size 0 flux-length-y) ) )   )
     )

(run-sources+
   (stop-when-fields-decayed 50 Hz (vector3  right-flux-plane-x  0 )  1e-4 )
    (at-beginning output-epsilon)
    (to-appended "hz"(at-every tstep output-hfield-z))
    (at-end   (display-fluxes trans1 )     )
)
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Reply via email to