diff --git a/docs/paper/the-karl-code/paper.tex b/docs/paper/the-karl-code/paper.tex index 959bff9..c1d6d58 100755 --- a/docs/paper/the-karl-code/paper.tex +++ b/docs/paper/the-karl-code/paper.tex @@ -722,8 +722,24 @@ Due to the predictable change in velocity as well as the conserved direction of \label{eq:density_single_scattering} n_s = \left(1-\exp\left(-\frac{z - z_\text{neutral}}{\lambda_\text{mfp}(E_\text{inj})}\right)\right) \sqrt{\frac{E_\text{inj}}{E_\text{inj} - E_\text{th}}}n_0 \fullstop \end{equation} -Adding $n_u$ and $n_s$ yields the expected density profile.\\\\ -TODO: Add way double scattering is calculated\\\\ +Adding $n_u$ and $n_s$ yields the expected density profile.\\ +In case the impact energy allows for at most two excitation events to be performed, the density for the twice scattered electrons $n_{s,2}$ can be calculated as well. In order to do so, one just has to calculate the probability $p(z)$ for a single particle to scatter twice within the length $z$: +\begin{equation} +p(z) = \int_0^z d\,x \int_0^{z-x} d\,y p_1(x) p_2(y) \commaeq +\end{equation} +where $p_1(x)$ is the probability for a particle to scatter after a distance $x$ and $p_2(y)$ is the same at the new energy after the first scattering. Since the distribution of distances follows an exponential distribution, this leads to +\begin{equation} +p(z) = \int_0^zdx \int_0^{z-x}dy \left[\frac{1}{\lambda_1} \exp\left(-\frac{x}{\lambda_1}\right)\right] \left[\frac{1}{\lambda_2} \exp\left(-\frac{y}{\lambda_2}\right)\right] \commaeq +\end{equation} +where $\lambda_1$ is the mean free path for the injected electron energy $E_{inj}$ and $\lambda_2$ for $E_{inj} - E_{th}$. Together with the requirement that a particle has to either scatter once, twice or not at all leads to +\begin{equation} +\begin{split} +n_s &= n_0\sqrt{\frac{E}{E - E_{th}}} \frac{\lambda_2}{\lambda_2 - \lambda_1} \left( \exp\left(-\frac{z}{\lambda_2}\right) - \exp\left(-\frac{z}{\lambda_1}\right)\right) \\ +n_{s,2} &= n_0 \sqrt{\frac{E}{E - 2E_{th}}} \left[1-\left(1 - \frac{\lambda_2}{\lambda_2 - \lambda_1}\right) \exp\left(-\frac{z}{\lambda_1}\right) - \frac{\lambda_2}{\lambda_2 - \lambda_1}\exp\left(-\frac{z}{\lambda_2}\right)\right] \fullstop +\end{split} +\end{equation} +For the case that both $\lambda_1$ and $\lambda_2$ have the same value the expressions change but can be derived the same way. +\\ Similar calculations can be done for the case of a maximum of two interactions, but for higher interaction counts this becomes increasingly more difficult. Therefore only the case for a single scattering are shown in Figure~\ref{fig:excitation_test_densities}. In this plot the \SI{12}{eV} is also shown to indicate the value of $n_0$. Furthermore, the density for the \SI{20}{eV} case has been scaled such that it fits to $n_0$ in the non-interaction region. It can be seen that the data fits the expectation very well, with the relative error being below 0.5\% everywhere. In Figures~\ref{fig:excitation_double_scattering_unscattered}, \ref{fig:excitation_double_scattering_singly} and \ref{fig:excitation_doubly_scattering_doubly} the densities for the electrons that have scattered a different amount of time is shown. While the unscattered electrons follow the expectation quite well, the singly and doubly scattered electrons deviate somewhat from the expectation. This might be due to differences in the calculated cross section with the one calculated in the code. In Figure~\ref{fig:excitation_spectrum_500eV} the energy spectrum for an injection energy of $E_\text{inj} = \SI{500}{eV}$ is shown. Overall, it can be seen that the length of the simulation domain is not large enough for any electron to scatter down to below the threshold energy. However a shift in the energy with the maximal density can be seen, as would be expected. }