yogevb / a-dda

Automatically exported from code.google.com/p/a-dda
0 stars 0 forks source link

Remove limitations of grid size dimensions to be even #95

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Currently, even dimensions of grid is enforced at input and assumed inside
the code. That is not a big problem in most applications (if needed the
grid size is automatically incremented by one). Odd number of dipoles per
dimension of the scatterer can be used (e.g. read from shape file), but
such shapes can't be produced automatically inside ADDA (except, 'line' shape).

Giovanni Pellegrini reported an interesting idea to compute light
scattering by dipole monolayers. Unfortunately, such shapes can't be
produced by a '-shape box' option (the width is set to two dipoles by the
ADDA). Although a workaround exist (e.g. by saving dipoles to file and
manually deleting the second layer), the limitation of even grid sizes
should be removed.

This seems to be quite easy, but care should be exercised not to break the
code. In other ways, we should locate all the places where assumption of
evenness is used.

However, making a separate shape 'plane' also makes sense, since it would
automatically ensure that exactly one dipole is used for width (in contrast
to 'box' shape).

Original issue reported on code.google.com by yurkin on 20 May 2010 at 5:05

GoogleCodeExporter commented 9 years ago

Original comment by yurkin on 16 Feb 2011 at 3:14

GoogleCodeExporter commented 9 years ago

Original comment by yurkin on 28 Apr 2013 at 3:51