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

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

where Ksc = 2Nre
γ3β2, 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σσyx + iyσσxy
Δx  = ----∘---------Im ⌈w  ( ∘----------)  - e 2σx 2σyw ( ∘-----------) ⌉
       2σz  σ2x - σ2y            2(σ2x - σ2y)                   2(σ2x - σ2y)

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

where w(z) is the complex error function

           ⌊                ⌋
                    ∫z
w (z) = e-z2⌈1 + 2√i--  eζ2dζ ⌉
                  π 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