Page 1 of 1

Tilting quadrupoles

Posted: 17 Jan 2020, 10:10
by Neeraj
Hello Michael,

I was wondering if there is a way one can introduce tilts (pitch and yaw) about the axes perpendicular to the magnetic axis of KQUAD? It would have been much easier if it was possible to do it with element parameters in elegant for error studies.

(At the moment I am thinking of loading 'tilted field maps' from a magnet model.)

cheers,
Neeraj

Re: Tilting quadrupoles

Posted: 20 Jan 2020, 16:24
by michael_borland
Neeraj,

The only way to do this at present is using MALIGN elements before and after the KQUAD. E.g.,

Code: Select all

mal1: malign
mal2: malign
Q1: KQUAD,L=0.20494743951919,K1=3.946439610164161,&
 N_KICKS=48,EDGE1_EFFECTS=1,EDGE2_EFFECTS=1,I0P=0.003824662127752904,&
 I1P=6.903339913689746e-05,I2P=2.972459683194837e-06,I3P=2.03620440157978e-07,&
 LAMBDA2P=1.451116689085801e-07,I0M=-0.003677869867790978,&
 I1M=1.815037845766118e-05,I2M=-2.368849318580891e-07,&
 I3M=8.218609250308457e-09,LAMBDA2M=3.037179653285794e-08
bl: line=(mal1,q1,mal2)

Code: Select all

&alter_elements name=MAL1, item=DXP, value=1e-2 &end
&alter_elements name=MAL1, item=DX, value="(1e-2 0.20494743951919 * -2 /)" &end
&alter_elements name=MAL2, item=DXP, value=-1e-2 &end
&alter_elements name=MAL2, item=DX, value="(-1e-2 0.20494743951919 * -2 /)" &end
You'll see a sextupole-like term. See attached.

--Michael