Re: [Meep-discuss] gaussian src in scheme and C++

2010-10-22 Thread Nizamov Shawkat
A quick glance at your examples reveals several differences in your examples. 1) In C++ case, the source is very close to the PML area (remember that origin is in the corner, that's why source at 1.1 is very close to the PML, which ends at 1.0). In Scheme example source is alsmost in the center

Re: [Meep-discuss] gaussian src in scheme and C++

2010-10-22 Thread Bin Huang
Hi Nizamov, This is how I defined the source in scheme: (set! sources (list (make source (src (make gaussian-src (frequency fcen) (fwidth df))) (component Ey) (center -1.4 -1.7 I already shifted the coordinates. And regardless of the source location, I am

[Meep-discuss] A confusion about Gaussian Src

2010-10-22 Thread little Gu
Dear Meepers, I am a littel confused by the Gaussian Src in meep. For example, assuming all the wavelength are normalized to 50nm, I have a Gaussian Src fcen=600nm, ranging from 600nm-700nm, in the code, I write as below, (define-param fcen 50/650=0.077) but now how I could define the fwidth?