From d18462b0cac1449854a45a2eec3dc5da7cfcc131 Mon Sep 17 00:00:00 2001 From: Claudio Scafuri <claudio.scafuri@elettra.eu> Date: Tue, 24 Oct 2023 17:06:17 +0200 Subject: [PATCH] some more examples --- elettra2test.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/elettra2test.py b/elettra2test.py index 00a9e17..6abd9a5 100755 --- a/elettra2test.py +++ b/elettra2test.py @@ -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 + + -- GitLab