Hello all, I'm trying to image the transition of fields within my resonant cavity as I change sources.
One problem is that when I change sources, my original source does not turn off, or maybe just not very quickly. Another problem is that I can't get meep to append the field components in the same hdf5 file. When I change sources, the stored data starts anew, deleting the data that was stored from the run of the first source. I am probably not changing sources correctly. This is what I am trying to make work. Note: Over 600 lines of Scheme set-up code removed. (run-until (* cc T_meep) ; to debug can use cc = 0 (at-beginning output-epsilon) ; to see the cavity outline (after-time (* h5out T_meep) ; time evolution of fields. (to-appended "ex" (at-every o-step output-efield-x)) (to-appended "ey" (at-every o-step output-efield-y)) (to-appended "ez" (at-every o-step output-efield-z)) (to-appended "hx" (at-every o-step output-hfield-x)) (to-appended "hy" (at-every o-step output-hfield-y)) (to-appended "hz" (at-every o-step output-hfield-z)) ) (at-end output-efield) (at-end output-hfield) ) (at-end (lambda() (change-sources! newAntenna) (run-until (* 5 T_meep) (at-beginning output-hfield-z) (at-end output-hfield-z) (to-appended "ex" (at-every o-step output-efield-x)) (to-appended "ey" (at-every o-step output-efield-y)) (to-appended "ez" (at-every o-step output-efield-z)) (to-appended "hx" (at-every o-step output-hfield-x)) (to-appended "hy" (at-every o-step output-hfield-y)) (to-appended "hz" (at-every o-step output-hfield-z))))) ) All feedback will be appreciated. Thanks, Steve _______________________________________________ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss