Quoting Loic Le Guyader <[EMAIL PROTECTED]>:
Hi,
I still have problem with this. I want to wait a certain time for the
pulse to arrive
somewhere, and then wait for the decay of the field. I try this
(important part is the definition of mystop):
(define (mystop)
(let ((decayed (stop-when-fields-decayed 20 Ey endpoint 1e-3)))
(if (> (meep-time) tt) decayed #f)))
(run-until (mystop)
(to-appended "ey" (at-every 0.5 output-efield-y)))
I found, it should be:
(define (mystop)
(let ((decayed (stop-when-fields-decayed 20 Ey endpoint 1e-3)))
(lambda ()
(if (> (meep-time) tt) (decayed) false))))
Cheers.
_______________________________________________
meep-discuss mailing list
meep-discuss@ab-initio.mit.edu
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss