Dear Didier,
I am attempting to convert a MAD file into a TraceWin lattice. The MAD file defines a bending element as follows:
RBEND, L=2.449790968, ANGLE=0.11455892
The bend has a length of 2.449790968 meters and a bending angle of 0.11455892 radians, or 6.5637426 degrees.
The radius of curvature is calculated by \(\rho = \frac{L}{\theta} = \frac{2.449790968}{0.11455892} = 21.38455\) meters.
Could you please advise on how to represent this in TraceWin?
Thank you.
Kind regards,
Abhishek
Using EDGE and BEND as dipole [SOLVED]
Re: Using EDGE and BEND as dipole
Dear Abhishek,
I don't knwon "MAD", but I think something like following should be similar.
Regards,
Didier
I don't knwon "MAD", but I think something like following should be similar.
Regards,
Didier
Code: Select all
variable Angle 6.5637426 ; (deg)
variable Ldip 2449.79096 ; (m)
drift 0 100
EDGE Angle/2 Ldip/(Angle*3.14159/180) 100 1e-8 1e-8 150 0
BEND Angle Ldip/(Angle*3.14159/180) 0 150 0
EDGE Angle/2 Ldip/(Angle*3.14159/180) 100 1e-8 1e-8 150 0
drift 0 100
end