Skip to content

Commit 1c4ec2c

Browse files
committed
Moving directory tree one level higher.
1 parent 57f1079 commit 1c4ec2c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+9212
-10993
lines changed

doc/README

Lines changed: 58 additions & 65 deletions
Original file line numberDiff line numberDiff line change
@@ -1,58 +1,57 @@
1-
## ##### ## ##### ## ##
2-
/#### /##### /## /##### /## /####
3-
/ ### // / / ### // / / ### / ###
4-
/## / / / ### / / / ### /##
5-
/ ## / / ### / / ### / ##
6-
/ ## ## ## ## ## ## ## / ##
7-
/ ## ## ## ## ## ## ## / ##
8-
/ ## ## ## ## ## ## ## / ##
9-
/ ## ## ## ## ## ## ## / ##
10-
/######## ## ## ## ## ## ## /########
11-
/ ## # ## ## # ## ## / ##
12-
# ## / / / / # ##
13-
/#### ## /###/ / /###/ / /#### ##
14-
/ #### ## / / ########/ / ########/ / #### ## /
15-
/ ## #/ / #### / #### / ## #/
16-
# # # #
17-
## ## ## ##
18-
19-
20-
21-
Maxim A. Yurkin
22-
23-
Institute of Chemical Kinetics and Combustion,
24-
Siberian Branch of the Russian Academy of Sciences,
25-
Institutskaya 3, Novosibirsk, 630090, Russia,
26-
tel: +7-383-333-3240, fax: +7-383-334-2350
27-
28-
Alfons G. Hoekstra
29-
30-
Faculty of Science, Section Computational Science,
31-
of the University of Amsterdam,
1+
ADDA 0.76
2+
***********
3+
"Amsterdam DDA"
4+
5+
Maxim A. Yurkin(1,2) and Alfons G. Hoekstra(1)
6+
7+
(1) Faculty of Science, Section Computational Science,
8+
of the University of Amsterdam,
329
Kruislaan 403, 1098 SJ, Amsterdam, The Netherlands,
3310
tel: +31-20-525-7530, fax: +31-20-525-7490
3411

35-
12+
(2) Institute of Chemical Kinetics and Combustion,
13+
Siberian Branch of the Russian Academy of Sciences,
14+
Institutskaya 3, Novosibirsk 630090 Russia,
15+
tel: +7-3832-333240, fax: +7-3832-342350
16+
3617
18+
19+
last revised: 9 October 2006
3720

38-
$Date:: $
39-
40-
Copyright (C) 2006-2008 University of Amsterdam
21+
Copyright (C) 2006 University of Amsterdam
4122
This software package is covered by the GNU General Public License.
4223

4324

44-
45-
1. INTRODUCTION
46-
***************
47-
48-
ADDA is a C software package to calculate scattering and absorption of
49-
electromagnetic waves by particles of arbitrary geometry using the Discrete
50-
Dipole Approximation (DDA). In this approximation the volume of the scatterer
25+
## ##### ## ##### ## ##
26+
/#### /##### /## /##### /## /####
27+
/ ### // / / ### // / / ### / ###
28+
/## / / / ### / / / ### /##
29+
/ ## / / ### / / ### / ##
30+
/ ## ## ## ## ## ## ## / ##
31+
/ ## ## ## ## ## ## ## / ##
32+
/ ## ## ## ## ## ## ## / ##
33+
/ ## ## ## ## ## ## ## / ##
34+
/######## ## ## ## ## ## ## /########
35+
/ ## # ## ## # ## ## / ##
36+
# ## / / / / # ##
37+
/#### ## /###/ / /###/ / /#### ##
38+
/ #### ## / / ########/ / ########/ / #### ## /
39+
/ ## #/ / #### / #### / ## #/
40+
# # # #
41+
## ## ## ##
42+
43+
44+
1. INTRODUCTION
45+
***************
46+
47+
ADDA is a C software package to calculate scattering and absorption of
48+
electromagnetic waves by particles of arbitrary geometry using the Discrete
49+
Dipole Approximation (DDA). In this approximation the volume of the scatterer
5150
is divided into small cubical subvolumes ("dipoles"), interaction of which is
5251
considered approximately based on the integral equation for the electric field.
5352
Initially DDA (sometimes referred to as the "coupled dipole approximation") was
5453
proposed replacing the scatterer by a set of point dipoles (hence the name of
55-
the technique).
54+
the technique).
5655

5756
ADDA is a C implementation of the DDA developed by the authors. The
5857
development has been conducted by Hoekstra and coworkers for more than 10 years
@@ -64,10 +63,10 @@ interstellar dust and atmospheric aerosols to biological particles; its
6463
applicability is limited only by available computer resources. As provided, ADDA
6564
should be usable for many applications without modification, but the program is
6665
written in a modular form, so that modifications, if required, should be fairly
67-
straightforward.
66+
straightforward.
6867

6968
Detailed instructions for using ADDA and all relevant issues are contained in
70-
the User Manual for ADDA. The User Manual is in the file "manual.pdf" in PDF
69+
the User Manual for ADDA. The User Manual is in the file "manual.pdf" in PDF
7170
format. It contains instructions for:
7271
* compiling and linking the code;
7372
* running a sample simulation;
@@ -77,7 +76,6 @@ format. It contains instructions for:
7776
* specifying what scattering quantities should be calculated;
7877
* understanding the computational aspects and timing of the code;
7978
* understanding the command line options and formats of input and output files.
80-
* modifying the source code for added functionality
8179

8280

8381
2. AVAILABILITY
@@ -87,10 +85,8 @@ format. It contains instructions for:
8785
it will prove to be a useful tool. We ask only that:
8886

8987
* If you publish results obtained using ADDA, you should acknowledge the source
90-
of the code. We recommend the following general reference:
91-
M. A. Yurkin, V. P. Maltsev, and A.G. Hoekstra, "The discrete dipole
92-
approximation for simulation of light scattering by particles much larger than
93-
the wavelength", J. Quant. Spectros. Radiat. Transf. 106, 546-557 (2007).
88+
of the code. Please contact the authors ([email protected]) for the most
89+
recent reference.
9490

9591
* If you discover any errors in the code, please promptly communicate them to
9692
the authors.
@@ -99,7 +95,7 @@ it will prove to be a useful tool. We ask only that:
9995
Public License) of the Free Software Foundation: you may copy, distribute,
10096
and/or modify the software identified as coming under this agreement. If
10197
you distribute copies of this software, you must give the recipients all the
102-
rights which you have. See the file "copyleft" distributed with the ADDA
98+
rights which you have. See the file "copyleft" distributed with the ADDA
10399
software.
104100

105101
We also strongly encourage you to send email to the authors identifying
@@ -118,11 +114,8 @@ doc/ - documentation
118114
copyleft - GNU General Public License
119115
history - complete history of ADDA development
120116
faq - frequently asked questions
121-
manual.doc - source of User Manual in MS Word format
122-
manual.pdf - user Manual for ADDA in PDF format
117+
manual.pdf - User Manual for ADDA in PDF format
123118
README - this file
124-
todo.xls - source of the todo list in MS Excel format
125-
todo.pdf - todo list in PDF format
126119
input/ - default input files
127120
tables/ - 10 auxiliary files with tables of integrals
128121
alldir_params.dat - parameters for integral scattering quantities
@@ -137,23 +130,23 @@ sample/ - sample output and other files
137130
stdout - stdout of a sample simulation
138131
src/
139132
Makefile, make_seq, make_mpi - makefiles
140-
ADDAmain.c, CalculateE.c, calculator.c, cmplx.h, const.h, crosssec.c/h,
141-
comm.c/h, debug.c/h, fft.c, function.h, GenerateB.c, io.c/h, iterative.c,
142-
make_particle.c, matvec.c, memory.c/h, os.h, param.c/h, parbas.h,
143-
prec_time.c/h, Romberg.c/h, sinint.c, timing.c/h, types.h, vars.c/h
133+
ADDAmain.c, CalculateE.c, calculator.c, cmplx.h, const.h, crosssec.c/h,
134+
comm.c/h, debug.c/h, fft.c, function.h, GenerateB.c, io.c/h, iterative.c,
135+
make_particle.c, matvec.c, memory.c/h, os.h, param.c/h, prec_time.c/h,
136+
Romberg.c/h, timing.c/h, types.h, vars.c/h
144137
- source and header files of ADDA
145138
cfft99D.f - source file for Temperton FFT
146-
mt19937ar.c/h - source and header files for Mersenne Twister random generator.
139+
mt19937ar.c/h - source and header files for Mersenne Twister random generator.
147140

148141

149-
4. COMPILING AND LINKING
150-
************************
142+
4. COMPILING AND LINKING
143+
************************
151144

152-
On Unix systems, while positioned in src/, type
145+
On Unix systems, while positioned in src/, type
153146
> make seq
154-
or
147+
or
155148
> make mpi
156-
for sequential and MPI versions respectively. By default you need FFTW to be
149+
for sequential and MPI versions respectively. By default you need FFTW to be
157150
installed (www.fftw.org) on your system.
158151

159152
Please read the User Manual (manual.pdf).

doc/faq

Lines changed: 9 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -1,84 +1,22 @@
11
Frequently Asked Questions
2-
about ADDA
2+
about Amsterdam DDA
33

4-
$Date:: $
4+
last revised: 5 October 2006
55

66
Q: I have found a bug in ADDA. What should I do?
7-
A: 1) Make sure you are using the latest version of ADDA (check the ADDA
8-
homepage). If you have modified the code yourself, try the original release.
7+
A: 1) Make sure you are using the latest version of ADDA (check the ADDA
8+
homepage). If you have modified the code yourself, try the original release.
99
2) Look at the list of known bugs at the ADDA homepage, maybe your bug is
10-
already known.
10+
already known.
1111
3) Try to understand how exactly the bug occurs, write down the sequence of
12-
actions that lead to it.
12+
actions that lead to it.
1313
4) Please try to localize the bug, i.e. try to remove as much command line
14-
parameters as possible without removing the bug. Also try to use defautl
14+
parameters as possible without removing the bug. Also try to use defautl
1515
versions of input files, that you have modified.
1616
5) Send the results of (3) and (4) to the authors, together with all input
17-
18-
files and Makefiles that you have used for compilation. Do not forget to
19-
include all the relevant output files, at least 'log'. Please also include
17+
files and Makefiles that you have used for compilation. Please also include
2018
a brief description of your operation system and hardware. We will try to
2119
fix the bug as soon as possible.
2220

23-
Q: I do not understand how to ...? I run ADDA and get strange output or
24-
something different from what I have expected. What should I do?
25-
A: 1) Make sure you are using the latest version of ADDA (check the ADDA
26-
homepage). Read carefully the relevant parts of the manual.
27-
2) Check the FAQ section of ADDA homepage.
28-
3) If that does not help, you're encouraged to send your question to the
29-
authors. Please try to make your question as specific as possible. If your
30-
question is based on a particular run, provide all relevant input and output
31-
files, at least 'log'.
32-
33-
Q: Can I use ADDA to calculate scattering by a particle near the infinite
34-
dielectric plane surface?
35-
A: Basically, no. ADDA can not rigorously solve such light scattering problem.
36-
Such a rigorous solution requires a significant modification of the code,
37-
therefore it will not be implemented in the near future. However, you may
38-
approach this problem using the current version of ADDA.
39-
1) You may completely ignore the surface, this may be accurate enough if
40-
particle is far from the surface and the refractive index change when
41-
crossing the surface is small.
42-
2) A little more accurate approach is to consider the "incident field" in
43-
ADDA as a sum of incident and reflected plane waves. However, currently
44-
such incident field is not implemented, therefore it need first to be coded
45-
into ADDA.
46-
3) Another approach is to take a large computational box around the
47-
particle, and discretize the surface that falls into it. This is rigorous
48-
in the limit of infinite size of computational box, but requires enormous
49-
computational time. It also requires you to specify the shape files for all
50-
different sizes of the computational box.
51-
52-
Q: Can I calculate near-field using ADDA?
53-
A: We are currently working to implement this feature in a convenient manner.
54-
For now there are two possible workarounds:
55-
1) You may save dipole polarizations to file by ADDA and then compute the
56-
near-field yourself, using a simple formula.
57-
2) Or you may extend the computational box with "dummy" dipoles located at
58-
points where you wish to calculate near-field. Saving the internal fields
59-
by ADDA will then produce the desired result, but at expense of extra
60-
computational time.
61-
Please see the manual for details.
62-
63-
Q: How can I simulate light scattering by a particle which shape can not be
64-
described by any of the ADDA predefined shapes?
65-
A: The simplest is to specify your particle by a shape file. However, if your
66-
shape can easily be described in some parametric form and you are going to
67-
simulate a lot of particles with shapes from this class or if you think
68-
other users will probably simulate the same shapes, you are encouraged to
69-
implement new shape inside ADDA. There is an extensive instruction in the
70-
appendix of the manual on how to do it. Afterwards, please send modified
71-
source files to the authors so they would be incorporated in the next
72-
release for the benefit of the community.
73-
74-
Q: How is the Mueller matrix, produced by ADDA, defined and/or normalized?
75-
A: It is defined as in Bohren & Huffman "Absorption and scattering of Light by
76-
Small Particles" (1983), and it is not normalized. Some other codes may
77-
compute Stokes scattering matrix, which is normalized so that 1,1-element
78-
is equal to 1 after averaging over the whole solid angle. This matrix
79-
should be multiplied by (pi*Csca/(lambda^2)) to get Mueller matrix. Csca is
80-
the scattering cross section for unpolarized light, equal to average of
81-
scattering cross sections for any two perpendicular incident polarizations.
82-
83-
This list is far from being complete. Please send your questions to
21+
This list is far from being complete. Please send your questions to
8422

0 commit comments

Comments
 (0)