51st example file, to illustrate the user-defined scattering option.
The rays start at z = -0.5, in a field-free region. When the rays reach z = 1 they are focussed by a thin lens that has f = 2, Cs = 0.1, Cc = 0.
The routine that defines the scattering function is in file sct3lens.cpp, which is supplied with the CPO3D package. It should be copied to scatter3.cpp and used to create scatter3.dll.
This routine calls the data file sct3lens.dat (also supplied with the package), which is named by the User in the databuilder.
The data in the file are:
= number of lenses (1), followed by 1 set that gives:
z of lens plane, focal length, cs, cc, reference energy for cc
Please see sct3lens.cpp for more detailed information.