The of the magnet will be modulated by a multiplicative factor 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.