Hello Everyone, I want to test my material by propagating a material down a 1D medium. I want to change the length of the medium in order to see how the pulse changes as it travels.
I planned to do this by adjusting this line: (define-param sz 100) ; size of cell in z direction, 1 = 10 nm However, if I keep everything the same but adjust sz, I am getting the same location in time for my pulse. This doesn’t make any sense to me. Example: if it takes 100 meep seconds to travel 200 units, then I would expect to see 50 meep seconds for traveling 100 units. However, I am seeing 100 meep seconds no matter what distance I travel. I attached a barebones example to demonstrate this. Can anyone see what I am missing in this simulation? Also, thank you very much for the previous answers to my questions. It has helped tremendously. Priscilla (define-param sz 10) ; size of cell in z direction, 1 = 10 nm (define-param fcen .0053619) ; center frequency of source (define-param df .00055594) ; frequency width of source (define-param amp 1) ; amplitude of source (define-param dpml 2) ; PML layer thickness (set! force-complex-fields? true) ; add complex output to field (set! geometry-lattice (make lattice (size no-size no-size sz))) ; create 1D system (set! pml-layers (list (make pml (thickness dpml)))) ; make the pml for +/- z boundaries (set-param! resolution 10) ; dx = 10 nm/# (set! sources (list (make source (src (make gaussian-src (frequency fcen) (fwidth df))) (component Hy) ; needed for TM (center 0 0 (+ (* -0.5 sz) dpml)) ; located at - end of waveguide (amplitude amp)))) ; call to save the field data, we are saving Ex here (define print-field (lambda() (print " \n ex:, " (meep-time) ", " (get-field-point Ex (vector3 0 0 (- (* 0.5 sz) dpml))) "\n"))) (run-sources+ 30 (at-every 15 print-field)) _______________________________________________ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss