Hi
 I want to get flux in different location on structure. So I used run-untill 
function for this issue as following, But the flux output is zero at every 
flux-region.
if I manually define flux-region outside the run-until, the result will be 
different.

I think that is because flux-region should be defined before run function. is 
it right?
 how can I define several (more than 20) flux-region() and call it by 
display-fluxes()?



(define new_trans  
            (add-flux fcen df nfreq  (make flux-region  (center 0 0 ) (size 0 
1)))) 
 
    (define (set_trans)  
        (set! x (+ shift x))
            (set! new_trans  
            (add-flux fcen df nfreq  (make flux-region (center x 0 ) (size 0 1) 
)))) 
 
    (define (disp_flx)  
            (display-fluxes  new_trans))

    (run-until 200  
        (at-beginning output-epsilon ) 
        (during-sources 
       (at-every 10 
            (output-png Ey "-Zc dkbluered -C $EPS" )
                        set_trans 
                        disp_flx    ) 
            (at-end output-poynting (output-png Ey "-Zc dkbluered -C $EPS") ) 
)) 


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

Reply via email to