nobeam / lattice-summaries-lattices-legacy

https://lattice-summaries.netlify.app
0 stars 1 forks source link

Wrong Elegant Twiss Plot #11

Open MichaelMAB2020 opened 3 years ago

MichaelMAB2020 commented 3 years ago

The Twiss parameter plot for kuske / bessy3_5ba-20p_v_reference from Elegant is wrong? I run the file and get the same results as mad and apace ...

felix-andreas commented 3 years ago

The generated lattice file seems to cause this problem. But I can't figure out why this is the case.

Original: https://github.com/nobeam/lattice-summaries-lattices/blob/4a3c4e66852ed52818647fabd69df2206215e28f/originals/kuske/bessy3_5ba-20p_v_reference.lte

Generated: https://github.com/nobeam/lattice-summaries-lattices/blob/2d3c35f9d8e305781d103205dcbf6c87d069156e/kuske/bessy3_5ba-20p_v_reference.lte

felix-andreas commented 3 years ago

I think one problem is, that the entrance and exit angle of a bend must be reversed if the bend is reversed

felix-andreas commented 3 years ago

Yes, the problem was the b1 element. If it is reversed also, it's entrance and exit angles must be reversed. I wonder why madx and my tool still produced the same twiss functions???