On Mar 6, 2008, at 12:05 AM, adrian wrote: > Hi, Steven and meep users: > I checked out again my output and I'm sure I looked at file > correctly. > Maybe I should attach my file. > Thank you in advance.
Probably your main problem is that you are setting your radius as the variable (define-param R 8) However, "R" in Meep is a predefined constant referring to the radial direction, and happens to be the integer "3" (the value of the corresponding enumerated constant in C++). Because it is predefined, this overrides "define-param" (which is overridden by any previous setting of the variable, to make command-line parameters work). So, your radius is 3 and not 8. If you change the variable name to "r" or "RR" or "rad" or something that should fix this. (Of course, there may be other bugs in your code, I didn't check that.) Steven PS. It is much easier to define the geometry using "list" rather than zillions of "cons" statements. e.g. (list 1 2 3 4) is equivalent to (cons 1 (cons 2 (cons 3 (cons 4 '())))). If you want to combine two lists (e.g. with the output of "map"), you can use "append". _______________________________________________ meep-discuss mailing list [email protected] http://ab-initio.mit.edu/cgi-bin/mailman/listinfo/meep-discuss

