Test2d09, 9th 'benchmark test' data file for CPO2D

Coefficients of hemispherical deflection analyser (HDA)

 

This file is almost identical to test2d01.dat, except that the 'coefficients of lens' option has been used. The user asks (in separate runs) for three coefficients (the energy dispersion, the linear magnification and the second order angle coefficient), and specifies the exit plane and the starting conditions of the median (that is, reference) ray. The program then automatically sets up and traces 2 rays, the median ray and a ray with incremented initial conditions, to deduce these coefficients.

 

Detailed description:

The number of segments used in the present example is small enough for the example to be run with the ‘demo’ version of CPO2D. Higher accuracy could of course be obtained with more segments, using the standard or full versions of CPO2D.

 

This file is identical to the 1st test file test2d01.dat, except that the 'coefficients of lens' option has been used, the initial energy is chosen to be a kinetic energy rather than a total energy (see the relevant note) and higher accuracies are used. This file is also close to the analogous 3D file test3d09.dat.

 

The first 'test plane' is r = 0, which is the exit plane of the analyzer.

 

The lines of data shown above for the 'coefficients' option are:

 

coefficients, aberration - definition of rays

0        -1        1        0        1         r,z,vr,vz,eV,I of median ray

0        0.01        0.05        0        0.01        Increments for initial parameters

0        1        0        0        0        Choice of coefficients

 

The first line defines the 'median' ray as the ray that starts at (r,z) = (0,-1) with a kinetic energy of 1 eV. This ray should follow the semi-circular path to (r,z) = (0,1).

The next line defines the increments or steps that will be applied to the initial parameters (not all the increments are necessarily used, depending on the next line). The z position is incremented by 0.01, the angle to the z direction (call it a_z) is incremented by 0.05, and the energy is incremented by 0.01 eV.

The next line gives the first 'choice of coefficients'. An order of 1 is given for the z position, and so the program will find the variation of each of 4 final parameters (r, z, a_r, a_z) at the test plane, with respect to z_initial. In other words the program will give the coefficient c(zf,zi) in the expansion

z_final - z_final_median = c(zf,zi)*(z_initial - z_initial_median) +...

and will give the analogous coefficients for the other 3 final parameters.

 

For another explanation of the meaning of the coefficients see the note on coefficients.

 

The output lines in the ray output file are:

Initial Coefficients for:

parameters: r z angle_r angle_z

z        1.703E-06        -2.960E+00        -1.046E-06        1.046E-06

 

We see here that the rate of change of rf with respect to ri is -2.960 (and note that here ri is changed while the kinetic energy is kept constant at 1 eV). This value is usually quoted as -3, but using the exact formula, see below, (with ri=0.99) we find -2.9604, so the present error is very small. The other coefficients here are not useful.

 

Important note:

When the 'coefficients' option is used for lenses, care must be taken over the position of the first test plane, which is usually the gaussian image plane. If the position of this plane is not known in advance then it can be found by tracing a series of rays at different angles alpha to the axis and looking to see the values of z at which they cross the axis in image space. Then plot z versus alpha and extrapolate to alpha = 0 (a quadratic dependence is expected).

 

 

Now the following input lines can be used:

coefficients, aberration - definition of rays

0        -1        1        0        1        r,z,vr,vz,eV,I of median ray

0        0.01        0.05                0.01        Increments for initial parameters

0        0        2        0        0         Choice of coefficients

 

The non-zero integer on the last line gives the order 2 for a_z, so the program will find the variations with respect to a_z squared. That is it will find the coefficient c(z,a_z*a_z) in the expansion

z_final - z_final_median = c(z,a_z*a_z)*a_z*a_z +...

and will give the analogous coefficients for the other 3 final parameters.

 

Then the output lines are:

Initial Coefficients for:

parameters: r z angle_r angle_z

a_r        a_r        -1.806E-06        -1.993E+00        -1.990E+01        1.990E+01

 

The second coefficient in this line gives the rate of change of z_final (that is, rf), which is usually quoted as -2. Here its value is found to be -1.993. Using the exact formula given below, for cosy = 0.05, we obtain the value -1.995, so the error is small.

 

 

Finally the following input lines can be used:

coefficients, aberration - definition of rays

0        -1        1        0        1        r,z,vr,vz,eV,I of median ray

0        0.01        0.05                .01         Increments for initial parameters

0        0        0        0        1        Choice of coefficients

 

Therefore we are looking for the dependence of the final parameters on the initial energy.

 

The output lines are:

Initial Coefficients for:

parameters: r z angle_r angle_z

en 1.676E-06 2.020E+00 5.470E-05 -5.470E-05

 

We see from the second coefficient in this line that the rate of change of z_final is 2.020. This is the energy dispersion of the analyzer, and is usually quoted as 2. However the exact expression for y_final (call this rf) as a function of y_initial (ri), angle_r_initial (a) and en (e) is

ri/rf = 2/(ri*e*cos(a)^2) - 1

(see F H Read and S C Page, Nucl. Inst. and Methods A363, 249-253, 1995, and the detailed equations on HDA).

Therefore for the present choice of ri (1), a (0) and e (1.01), the ratio (delta_rf)/(delta_e) is 2.0202, which is essentially the value given in the above table. (And it can be noted in passing that the energy dispersion is significantly non-linear, as pointed out by Read and Page.)

 

 

WARNING:

Using higher charge and ray accuracies would of course give more accurate results, but it is difficult to obtain very accurate aberration coefficients because of the conflict between using small increments for the initial parameters, in which case numerical errors might be significant, and using large increments, when higher order efffects might be present. The user should always carefully explore the dependence on these increments.