7.33 insert_sceffects

&insert_sceffects  
        STRING name = NULL;  
        STRING type = NULL;  
        STRING exclude = NULL;  
        long disable = 0;  
        long clear = 0;  
        STRING element_prefix = "MYSC";  
        long skip = 0;  
        long vertical = 0;  
        long horizontal = 0;  
        long nonlinear = 0;  
        long uniform_distribution = 0;  
        long verbosity = 0;  
        double averaging_factor = 1;  
        double slice_duration = 0.0;  
        long slice_threshold = 100;  
        long slice_interpolation = 0;  
&end

Important notes:

This element simulates transverse space charge (SC) kicks using K.Y. Ng’s formula [24].

The linear SC force is given by:

              2   2
   ′  KscLe--z-∕(2σz)-----x-----
Δx  =     √2-πσ     σx(σx + σy)
               z

            -z2∕(2σ2)
Δy ′ = KscLe√------z------y-----
            2πσz    σy(σx + σy)
(7)

where Ksc = 2γN3rβe2, L is the integrating length, σx,y,z are rms beam size.

The non-linear SC force is given by:

                       ⌊  (             )              (             )⌋
      KscLe -z2∕(2σ2z)           x + iy         --x22--y22     xσσy + iy σσx
Δx′ = ----∘---------Im ⌈w ( ∘-----------) - e 2σx 2σyw ( ∘--x------y-)⌉
       2σz  σ2x - σ2y           2(σ2x - σ2y)                  2(σ2x - σ2y)

            -z2∕(2σ2)   ⌊  (            )      x2- -y2-  ( x σy+ iyσx ) ⌋
Δy ′ = KscLe∘------z-Re ⌈w ( ∘--x+-iy---)  - e-2σ2x-2σ2yw ( ∘-σx----σy-) ⌉
       2σz  σ2x - σ2y           2(σ2x - σ2y)                   2(σ2x - σ2y)
(8)

where w(z) is the complex error function

            ⌊              ⌋
          2      2i ∫z  2
w (z) = e- z ⌈1+ √---  eζdζ⌉
                   π 0
(9)

These expressions appear to diverge when σx = σy. In fact, this is not true, because the expressions inside the square brackets will provide zero too at σx = σy to cancel the poles outside. In our code, we calculate this equation at 1.01σx and 0.99σx, and average the total effects.

ion_effects