Seven C-functions were written to be used in the WALLPSI code.
Four of the functions take, as input, target, projectile, energy and angle of incidence and return a scalar quantity, either mean , reflection coefficient , energy reflection coefficient or sputtering yield .
The header file containing 15×9 matrices for each species combination, “Scalars.h”, is included in each of these four functions. Based on the input, the functions look up the table of values associated with each target projectile combination.
The four points in energy-angle space that surround the input are determined and a geometric weighting is applied to interpolate a return value.