Site perso : Emmanuel Branlard

Subsections


7.2 Spheroidal distribution

7.2.0.0.1 RMS calculation of the theoretical longitudinal field

We have seen in the previous section that the fields inside the ellipsoid are linear with respect to their axis. We will write equation 6.28 as:

$\displaystyle E_z(z) = -\frac{\alpha}{X_0 Y_0 Z_0} z$ (7.5)

without expliciting the constants hidden behind the positive constant $ \alpha$. The maximum of the longitudinal field in the distribution is:

$\displaystyle E_{max}= E_z(z=Z_0) =\frac{\alpha}{X_0 Y_0}$ (7.6)

Then we can write the field in function of its maximum:

$\displaystyle E_z(z) = -\frac{E_{max}}{Z_0} z$ (7.7)

By definition

$\displaystyle \langle E_z^2 \rangle = \int_{x,y,z} E_z^2 f(x,y,z) dxdydz$ (7.8)

Projecting the density distribution function of the ellipsoid on the z-axis:

$\displaystyle \langle E_z^2 \rangle = \frac{E_{max}^2}{Z_0^2} \int_{z} z^2 f(z) dz = \frac{E_{max}^2}{Z_0^2} \langle z^2\rangle$ (7.9)

where the projection of the density function of the distribution of a uniform ellipsoid is:

$\displaystyle f(z)=\int_{x,y} f(x,y,z) dxdy = \left[ 1 -\left(\frac{z}{Z_0}\right)^2\right] A$ (7.10)

The constant $ A$ arbitrary chosen at 1. Let's present some intermediate steps of calculus:
$\displaystyle N=\int_{-Z_0}^{Z_0} f(z) dz$ $\displaystyle =$ $\displaystyle \frac{4}{3}Z_0$ (7.11)
$\displaystyle \langle z \rangle =\int_{-Z_0}^{Z_0} z f(z) dz$ $\displaystyle =$ 0 (7.12)
$\displaystyle \langle z^2 \rangle=\int_{-Z_0}^{Z_0} z^2 f(z) dz$ $\displaystyle =$ $\displaystyle \frac{4}{15}Z_0^3$ (7.13)

The rms value of $ z$ is then

$\displaystyle \langle z^2 \rangle_n =\sigma_{z}^2 = \frac{\langle z^2 \rangle}{N} = \frac{Z_0^2}{5}$ (7.14)

And

$\displaystyle \sigma_{E_z}^2 = \frac{E_{max}^2}{Z_0^2} \sigma_z^2= \frac{E_{max}^2}{5}$ (7.15)

7.2.0.0.2 RMS calculation of the radius

: We will study the RMS value of $ E_z$ for different radius. We will then use RMS value of the radius. As it is a spheroid we could simply write $ r^2=x^2+y^2 = 2 x^2$ and thus:

$\displaystyle \langle r^2 \rangle = 2 \langle x^2 \rangle$ (7.16)

But let's be convinced that we are right. Tha calculation is done for the section $ z=0$. We write $ x=r \cos\theta$, and calculate the not-normalized rms value of x:

$\displaystyle \langle x^2 \rangle = \int_0^{R_0} \int_0^{2\pi} x^2 r dr d\theta = \frac{R_0^4}{4}\int_0^{2\pi} \cos^2\theta=\frac{R_0^4 \pi}{4}$ (7.17)

The nomalisation being:

$\displaystyle \langle 1 \rangle = \pi R^2$ (7.18)

we end up with

$\displaystyle \langle x^2 \rangle_n = \frac{R_0^2}{4}$ (7.19)

On the other end we have

$\displaystyle \langle r^2 \rangle_n=\frac{2\pi \frac{R_0^4}{4}}{\pi R_0^2} = \frac{R_0^2}{2}$ (7.20)

So eventually we have:

$\displaystyle \langle r^2 \rangle_n = 2 \langle x^2 \rangle_n$ (7.21)

By symmetry, from the calculation of $ \langle z^2 \rangle_n$ we have:

$\displaystyle \langle x^2 \rangle_n = \frac{X_0^2}{5}$ (7.22)

and thus, as $ X_0 = R_0$:

$\displaystyle \langle r^2 \rangle_n = \frac{2}{5} R_0$ (7.23)

7.2.0.0.3 RMS calculation of the simulated field

: Two different methods were used for the RMS calculation of the simulated field. The first one, is labelled (sim.) in the legend of figure 7.1, and the second one (sim. from max). Going back to the definition of the rms value, the first method consists in calculating the rms value from the field value on each particle. For this, we added a little ``FOR'' loop at the end of the main of our stand alone algorithm: astraimpulse_main.f. For each component of the two fields, the rms value is calculated as follow:

$\displaystyle E_{z,\text{rms}}= \sum_{i=0}^{N_\text{part}-1} \frac{E_{z,i}(x_i,y_i,z_i)^2}{N_\text{part}}$ (7.24)

where $ N_$part is the number of particle, $ x_i$,$ y_i$,$ z_i$, its coordinates and $ E_{z,i}$ has been calculated with the function SCGridInterpolate. The 6 RMS values are stored in an output file called RMSFields.out

The second method used is based on the theoretical rms value calculated above. Knowing the maximum of the simulated longitudinal field on the z-axis, divinding it by $ \sqrt{5}$ provides a results comparable to the theoretical RMS value. To know the longitudinal field on the z-axis, we will use the file E_DIR.out, which is outputed by our main program. This functionnality will be developped in details in section 8.1.3.

7.2.0.0.4 Comparison between theory and simulation

Figure 7.1: Rms value of the longitudinal field for a spheroidal distribution. The theoretical value is calculated with the formula developped in the previous section, taking $ Ez_$rms$ = Ez_$max$ /\sqrt{5}$. Calculating the simulated rms value(sim.) by averaging the longitudinal field on each particle, provides a really good agreement with the theory. From the maximum of the simulated field, another RMS value can be defined by dividing it by $ \sqrt{5}$. Nevertheless, we previously saw that the simulated field has a smaller maximum. This explains why the values sim. from max are smaller. Data points are stored in file /results/ez-rms/MErmsEllipse.csv
Image Ellipse-Ezrms-theory-simul-real
Figure 7.2: Maximum value of the longitudinal field for a spheroidal distribution. Once again we see that the simulated field has an amplitude smaller than the theoretical one. Note that the fields are here plotted with the real length of the bunch and the real radius of the bunch, instead of RMS values.
Image Ellipse-Ezmax-theory-simul-new-z








Emmanuel Branlard