AT to Elegant converter

Moderators: cyao, michael_borland

Post Reply
NicolaCarmignani
Posts: 8
Joined: 20 Dec 2012, 08:33

AT to Elegant converter

Post by NicolaCarmignani » 11 Jun 2013, 04:44

At ESRF there are many AT users, so we needed an AT to Elegant lattice converter.
Maybe someone is interested in our matlab function, I attach here the file.
Your AT elements must have the fields "BetaCode" and "FamName". If you have different fields, like "Class", you have to modify the function.
Some elements, like skew quadrupoles, are not converted.
The extension ".m" is not allowed in the Elegant forum, so I changed it in ".txt", but it is a matlab function.

Nicola Carmignani
Attachments
AT_2_Elegant.txt
AT_2_Elegant converter matlab function.
(5.66 KiB) Downloaded 197 times

michael_borland
Posts: 1933
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: AT to Elegant converter

Post by michael_borland » 11 Jun 2013, 08:03

Nicola,

Thanks for posting this.

--Michael

Post Reply