Skip to content
Snippets Groups Projects
Commit d18462b0 authored by Claudio Scafuri's avatar Claudio Scafuri :speech_balloon:
Browse files

some more examples

parent 04a57b81
No related branches found
No related tags found
No related merge requests found
......@@ -3,7 +3,7 @@
import at
import matplotlib.pylab as mp
ring=at.load_lattice("../../machine/lattice/elettra2/elettra2.mat",energy=2.4e9)
ring=at.load_lattice("../../machine/lattice/elettra2/srElettra2_9_4_beta.mat",energy=2.4e9)
refpts = range(len(ring) + 1)
ring.radiation_off()
......@@ -55,3 +55,13 @@ mp.show()
print('tune H:',tuneH,'tune V:',tuneV)
print('chrom H:',chromH,' chromV:', chromV)
print('E:', e_eV/1e9,' GeV')
# find index in ring strucutre a specific quadrupole
iq = ring.uint32_refpts('QD_S05_02')[0] # use also pattern matching idf needed
# get transport matrxi of 'QD_S05_02')
TM = at.find_elem_m66(ring[iq]) # get 6x6 transport materix
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment