The program calculates amplitudes of propagating plane waves resulting from reflection of a plane wave incident upon an infinite cylindrical periodic surface. Cylindrical means that in coordinates (x,y,z) the cross-section of the surface by a plane y=y0 is independent of y0. Periodic means that the surface is invariant under shift by a period d in x-direction. The program treats the scattering problem in dimensionless form, with fixed value d= 2 pi = 6.283....
The mathematical model of the scattering is common for acoustic and electromagnetic waves; in the latter case we assume the Poynting vector to lie in the cross-section plane (x,z).
This version deals with Dirichlet's boundary condition, which corresponds to infinitely conducting surface and E-polarization in case of EM scattering, and to acoustically soft surface for acoustic scattering.
We use here the term   scattering; it is equivalent to
diffraction.
2. Mathematical statement of the problem
Consider the Helmholz equation
Let u=u(x,z) be a quasiperiodic function with the Floquet exponent p, -0.5 < p <= 0.5, i.e.
The total field u in far zone (i.e. for large z > 0) has asymptotics
This version of SCATTER calculates matrix S in case of the Dirichlet boundary condition
Call the program from the DOS command line as follows:
scatter name of data file [ name of result file]
If the argument in square brackets is not present, the result file will have the same name as the data file, but with extension .res. (Data file may have any extension; the author suggests .dat as a convention.)
Structure of the data file
The data file contains several numerical parameters written according to their type: integers without decimal point, reals in a standard form (0.34, 9, 1.2E-3 are acceptable alike). The parameters must be separated by blank(s) or by newline (as words in a text file). No other separators such as commas, names of the parameters with equality signs etc. are required.
The parameters are:
p : Floquet exponent (real)
omega (or k) : Frequency (wavenumber) (real)
NCoef : Number of Fourier coefficients of the profile (integer)
a[0..NCoef] : Coefficients at cos(jx) (reals)
b[1..NCoef] : Coefficients at sin(jx) (reals)
NPt : Number of collocation points (integer)
ord : Order of the numerical method (integer, 0..3)
The main result - scattering matrix S - will be written in results file. Elements of S are presented in the form real part   + i * imaginary part.
The matrix is written row by row. If the number of propagating modes is big (i.e. wavelength is short), then rows are long. Keep this in mind when watching the results in a text editor and printing them out.
The program also outputs to the screen:
size of the scattering matrix (i.e. a number of such j
that |p+j|<k) and uniform energy error, i.e.
the maximum absolute value of elements of the matrix S*S-I.
4. Admissible quantities
The program has been tested in the following ways:
1) Scattering on flat surface (h(x)=const);
analytical solution is known.
2) Small |h(x)| and  
; NCoef ;
approximate analytical solution is known.
3) Unitarity test; exact matrix S must always be unitary.
4) "Selection rules": if the least period of the
boundary is less than d, then some elements
of the scattering matrix must vanish.
5) Scaling test: If m is an integer > 1, then the matrix
S' for the
problem with h'(x)=m h(mx), k'=k/m,
p'=p/m must be a submatrix of the scattering
matrix S corresponding to h(x), k, p.
6. About the algorithm
The calculation of the reflected amplitudes is based
on solving an integral equation of the 1-st kind on
the boundary. Discretization of the boundary integral
equation in case of ord=0 is a plain trigonometric
collocation. The program implements a strong enhancement
to the trigonometric collocation method developed in
Ph.D. thesis of B.A. Amosov (1989). In the enhanced method,
the matrix of discretized integral equation has
a form:
first approximation+corrections.
Parameter ord
of the program is a number of corrections. Actually,
2-nd correction is zero, so results obtained with ord=1
and ord=2 are identical. Theoretical order of convergence
is o(1) for ord=0;
O(1 / N2)
for ord=1,2;
and
O(1 / N4)
for ord=3.
However, in case of a high or faster-oscillating profiles, or in case of a big wavenumber (~> 10), higher order methods become advantageous only with a big number of discretization points, which may exceed the limit for NPt set in the program.
Computation of the corrections is much faster than computation of the first approximation. The latter requires summation of slowly convergent series (when calculating the kernel of quasiperiodic Green function). For this purpose the Euler-Knopp method of convergence acceleration (a kind of summation by parts) is used.
The program user Gauss's linear solver with partial pivoting.
Fax: (007-095) 972-07-37
E-mail: sadov@spp.keldysh.ru