My sources are in the same direction so I can not evaluate them simultaneously. Using pieces of your code I want it to look more like this:

(set! sources (list
       (make source
               (src (make gaussian-src (frequency fcen) (fwidth df)))
               (component Ex) (center 0 0 0))

(run-sources+ 300
       (at-beginning output-epsilon)
       (after-sources (harminv Ex (vector3 0 0 0) fcen df))

(set! sources (list
       (make source
               (src (make gaussian-src (frequency fcen) (fwidth df)))
               (component Ey) (center 0 0 0))

(run-sources+ 300
       (after-sources (harminv Ey (vector3 0 0 0) fcen df))

I realize the parentheses are not correct, but this is the general idea. In my code I change the output directory before each new run so theoretically I should be able to output many things from the same code. I feel like my problem has something to do with MEEP's definitions and ordering of at-beginning and the "300" for the run time and other time related variables. Any ideas?

Thanks for listening,

Sean Hennessee

From: Uday Khankhoje <[EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [email protected]
CC: Sean Hennessee <[EMAIL PROTECTED]>
Subject: Re: [Meep-discuss] multiple harminv runs
Date: Wed, 18 Jul 2007 09:49:55 -0700

I've been routinely introducing multiple sources and taking the harminv data for all the fields of interest and it hasn't complained. example:

(set! sources (list
       (make source
               (src (make gaussian-src (frequency fcen) (fwidth df)))
               (component Ex) (center 0 0 0))
       (make source
               (src (make gaussian-src (frequency fcen) (fwidth df)))
               (component Ey) (center 0 0 0))))

(run-sources+ 300
       (at-beginning output-epsilon)
       (after-sources (harminv Ex (vector3 0 0 0) fcen df))
       (after-sources (harminv Ey (vector3 0 0 0) fcen df)))

Is this what you had in mind?

Warm regards,
Uday

_________________________________________________________________
Need a brain boost? Recharge with a stimulating game. Play now!  http://club.live.com/home.aspx?icid=club_hotmailtextlink1


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

Reply via email to