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
From: Nizamov Shawkat [nizamov.shaw...@gmail.com] Sent: Friday, October 22, 2010 2:17 AM To: Bin Huang Cc: meep-discuss@ab-initio.mit.edu Subject: Re: [Meep-discuss] gaussian src in scheme and C++ A quick glance at your examples reveals several differences in your

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

2010-10-21 Thread Bin Huang
Hi guys, I have been trying to implement some example problems from http://ab-initio.mit.edu/wiki/index.php/Meep_Tutorial/Band_diagram%2C_resonant_modes%2C_and_transmission_in_a_holey_waveguide in C++. Most of it works out, however, the amplitude of harminv result in the Resonant Mode example is