Using EDGE and BEND as dipole  [SOLVED]

https://www.dacm-logiciels.fr/tracewin
Post Reply
United States of AmericaAbhishek
Initiated
Initiated
Posts: 44
Joined: Sun 12 Dec 2021 00:44
Country:
United States of America (us)
United States of America

Using EDGE and BEND as dipole  [SOLVED]

Post by United States of AmericaAbhishek »

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
User avatar
FranceDidier
Administrator
Administrator
Posts: 934
Joined: Wed 26 Aug 2020 14:40
Country:
France (fr)
France

Re: Using EDGE and BEND as dipole

Post by FranceDidier »

Dear Abhishek,

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
Post Reply