next up previous contents
Next: Tracking with RF modulation Up: Slow RF Modulation Previous: The types rf_phasor and   Contents


Effect on the magnet

The \bgroup\color{black}$(a_n,b_n)$\egroup of the magnet will be modulated by a multiplicative factor \bgroup\color{black}$V$\egroup given by:

       V=EL%DC_ac+EL%A_ac*(XS%AC%X(1)*COS(EL%theta_ac)-XS%AC%X(2)*SIN(EL%theta_ac))

DC_ac (normally equal to one), A_ac, theta_ac are properties of the element as can be seen in the following piece of code:

call move_to(als,p,"BEND",pos)
write(6,*) pos,p%mag%name,p%mag%vorname

                if(.not.associated(P%MAG%DC_ac)) then
                   allocate(P%MAG%DC_ac)
                   allocate(P%MAG%A_ac)
                   allocate(P%MAG%theta_ac)

                   allocate(P%MAGP%DC_ac)
                   allocate(P%MAGP%A_ac)
                   allocate(P%MAGP%theta_ac)
                   CALL alloc(P%MAGP%DC_ac)
                   CALL alloc(P%MAGP%A_ac)
                   CALL alloc(P%MAGP%theta_ac)

                   P%MAG%DC_ac=DC_ac
                   P%MAG%A_ac=A_ac
                   P%MAG%theta_ac=theta_ac*twopi
                   P%MAGP%DC_ac=DC_ac
                   P%MAGP%A_ac=A_ac
                   P%MAGP%theta_ac=theta_ac*twopi
                   P%MAG%slow_ac=.true.
                   P%MAGP%slow_ac=.true.
                ENDIF

N.B. The logical slow_ac must be true otherwise all RF modulation is ignored.



Frank Schmidt 2010-10-15