Converters#
Modules
AT2ELEGANT |
|
AT2MAD8 |
|
AT2MADX |
|
AT2OPA |
|
ELEGANT2AT |
|
MAD82MADX |
|
MADX2AT |
Functions
reads the file output of MAD commands |
- readmad(filename)#
- reads the file output of MAD commandsTWISS, STRUCTURE, SURVEY.atlattice = readmad(filename)readmad reads the MAD file header to determine the number of elementsin the lattice, symmetry flag, the number of supperperiods etc.Then it interprets the entry for each element in the MAD output file.The topology of the lattice is completely determined byLength, Bending Angle, and Ttilt Angle in each elementreadmad uses MAD TYPES and the values of to determinewhich pass-method function in AT to use.MAD TYPE | AT PassMethod———————————-DRIFT | DriftPassSBEND | BendLinearPass, BndMPoleSymplectic4PassQUADRUPOLE | QualdLinearPassSEXTUPOLE | StrMPoleSymplectic4PassOCTUPOLE | StrMPoleSymplectic4PassMULTIPOLE | !!! Not implemented, in future - ThinMPolePassRFCAVITY | RFCavityPassKICKER | CorrectorPassHKICKER | CorrectorPassVKICKER | CorrectorPassMONITOR | IdentityPassHMONITOR | IdentityPassVMONITOR | IdentityPassMARKER | IdentityPass———————————–all others | Length=0 -> IdentityPass, Length~=0 -> DriftPass