ELEGANT2AT#
Functions
determines atribute and sets field in sxs{i} structure AT |
|
function elegant2at(elegantlattice,E0,outfilename) |
- ParseAtributesELEGANT_2_AT()#
- determines atribute and sets field in sxs{i} structure ATcreated 6-sept-2012
- elegant2at()#
- function elegant2at(elegantlattice,E0,outfilename)tansform elegant %s.new file (save_lattice with output_seq=0) file into AT lattice structure.This procedure reads a saved elegant lattice and converts it to an AT latticeElegant command to save the lattice sequence :_______ filename.ele_________&save_latticefilename = %s.new,output_seq=0,&end___________________________filename.new will contain the list of all the elements that make up thelattice in the correct format in a single fileThe routine outputs a Matlab macro with all the AT defitions and variables asin the elegant fileWorks also with single elegant file not containing commands, onlydefinitions.parameters:- elegantlattice = name of the elegant lattice file- E0 = design energy- outfilename (default: elegantlattice_AT_LATTICE.mat)default pass methods:quadrupoles : StrMPoleSymplectic4Passdipole : BndMPoleSymplectic4Passmultipole : StrMPoleSymplectic4Passsextupole : StrMPoleSymplectic4Passthinmultipole : ThinMPolePasscorrectors : ThinMPolePasscavity : DriftPass