Re: [Meep-discuss] Time average of intensity obtained from get-field-point

2012-09-03 Thread Steven G. Johnson
On Sep 2, 2012, at 3:59 AM, pankaj kumar sahoo wrote: > > Thanks for your reply. I understood that i have to take time average over > half-a-period. But the time-averaged value obtained is different for > different periods. For example value of average intensity is different for > periods 290

Re: [Meep-discuss] Questions regarding Gaussian Pulse train.

2012-09-03 Thread Steven G. Johnson
On Sep 3, 2012, at 7:56 AM, chiu steve wrote: > I have a question about how to generate a Gaussian pulse train (with a > specified period) via meep? Thanks a lot. Just use a custom-src, which allows you to write an arbitrary function to define your current source.

Re: [Meep-discuss] definition of "meep-fields-modal-volume-in-box "

2012-09-03 Thread Steven G. Johnson
On Sep 3, 2012, at 1:34 PM, liu wrote: > Does V is a time average value? or calculate in each step in meep? > V = integral (epsilon * |E|^2) / maximum (epsilon * |E|^2) or It computes this integral at a single time step, although if you want to time-average you can certainly do that yoursel

Re: [Meep-discuss] definition of "meep-fields-modal-volume-in-box "

2012-09-03 Thread taimaz fathollahi khalkhali
Dear Prof. Steven Johnson and meep users, At each time step, meep calculate modal volume proportional to field profile at that time step. Since at the next time step, field profile is changed thus the modal volume changes. I would like to know how we can obtain the correct value of the this qu

Re: [Meep-discuss] definition of "meep-fields-modal-volume-in-box "

2012-09-03 Thread liu
Does V is a time average value? or calculate in each step in meep? V = integral (epsilon * |E|^2) / maximum (epsilon * |E|^2) or integral (( integral (epsilon * |E|^2) )/ maximum (epsilon * |E|^2)* dt ) / (delta T), where T= 1/f. which is the calculation in meep? -

[Meep-discuss] Questions regarding Gaussian Pulse train.

2012-09-03 Thread chiu steve
Hi, I have a question about how to generate a Gaussian pulse train (with a specified period) via meep? Thanks a lot.___ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

Re: [Meep-discuss] Error while writing tutorial programe

2012-09-03 Thread Simon Huskier
There is an error in the statement (define sx (+ (* 2 (+ pad dpml N)) d-1)). Do you mean that sx = 2*(pad+dpml+N) + (d-1)? Then the correct statement is (define sx (+ (* 2 (+ pad dpml N)) (- d 1))) If you mean something else, remember the expressions in CTL is different from the natural way to wr

[Meep-discuss] Error while writing tutorial programe

2012-09-03 Thread Mukul
meep> (define-param eps 12) meep> (define-param w 1.2) meep> (define-param r 0.36) meep> (define-param d 1.4) meep> (define-param N 3) meep> (define-param sy 6) meep> (define-param pad 2) meep> (define-param dpml 1) meep> (define sx (+ (* 2 (+ pad dpml N)) d-1)) Backtrace: In current input: 9: