Hi MEEP users and Steven,
I have a question about setting up an oblique planewave for periodic boundary
condition in c++ meep. I searched on line, and I find that I should add an
amplitude function like "exp(2pi*i*omega*sin(theta))" in the source. However, I
do not know how to do it in c++ code. I would appreciate if you have any clues.
If my original code for normal incident is like below. The source propogates
from -x to +x, and periodic boundary in y direction.
f.use_bloch(vec(0,0));
volume src_plane(vec(x1,0),vec(x1,sy));
gaussian_src_time src(freq_cen, fwidth);
complex<double> one(const vec &p) { return 1.0; }
amp = 1.0;
f.add_volume_source(component, src, src_plane, one, amp);
How shall I change the 4th and 5th arguments in function "add_volume_source"?
Shall I change "use_bloch(vec(0,0))"?
Thanks
------------------
Sincerely yours,
Xing Sheng
2010-11-03
_______________________________________________
meep-discuss mailing list
[email protected]
http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss