Re: [Meep-discuss] Time average of intensity obtained from get-field-point
Dear Prof Johnson Thanks for your reply. As per your suggestion i changed my source to Gaussian-src. But i am not getting the result i need. I want to incident picosecond ultrashort pulses from above the slab on to its surface normally (in the Z-direction) to have third order nonlinearity. For that i am using get-field-point to calculate the intensity. When i am using continuous source the intensity is different at different time. When i am using Gaussian source (Ex polarization) the intensity is zero at each time unit.When i change the polarization of the Gaussian source to Hy the i am getting nonzero intensity. But the values i am getting is different at different time which leads to different average intensity at different time periods. Here i send the part of my ctl-file containing the source information. (define-param fcen 1.282 ) ; pulse center frequency (set! sources (list (make source (src (make gaussian-src (frequency fcen) (width 1e-12))) (component Hy) (center 0 0 (- (* 0.5 sz) dpml)) (size (* 0.8 sx) (* 0.8 sy) 0) (amplitude amp)) )) (define (my-print-pointsx) (print pointsx:, (meep-time) , (get-field-point Sx (vector3 0 0 0)) \n)) (run-until 400 my-print-pointsx) *Can u please send a sample ctl file on how to introduce third-order nonlinearity by incidenting ultrashort pulse laser from above the slab on to its xy-surface normally (in Z-direction) or can u give any hint regarding that. It will very usefull to me. Please help me in this regards.* Regards Pankaj Kumar Sahoo ___ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss
Re: [Meep-discuss] Time average of intensity obtained from get-field-point
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-291 ,29-30 or 1-2 etc... Then apparently your simulation has not reached steady state? (I'm assuming you are using a continuous-src and have a linear system) ___ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss
[Meep-discuss] Time average of intensity obtained from get-field-point
Dear meep users When using get-field-point and passing Sx to find the intensity due to the Ex polarized light,i got Sx at a single point at different time unit. I want to calculate the time average of Sx at that single point. I used run-until 300 time unit.I dont know how to take the time average. Is there any built-in function for that.Should i take average for whole time from 0 to 300 or for one period like from 290-291 or 299-300 or 1-2 etc My aim is to calculate S-average and use it to find delta(n) to use it in third-order nonlinearity. Please somebody help me. ___ meep-discuss mailing list meep-discuss@ab-initio.mit.edu http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss