-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
1,289 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
!******************************************** | ||
! TT43-TT41 (AWAKE e-line) model | ||
! | ||
! F.M. Velotti, C. Bracco | ||
! MADX version MAD-X 5.04.01 | ||
!******************************************** | ||
|
||
title, 'AWAKE e-line'; | ||
|
||
option, echo; | ||
option, RBARC=FALSE; | ||
|
||
|
||
!system, "ln -fns /opt/vkain/PycharmProjects/awakett43/2018 tt43_repo"; | ||
|
||
!********************************************* | ||
! Import sequence, elements and strengths | ||
! N.B. FINT values calulated empirically from | ||
! beam-based measurements | ||
!********************************************* | ||
|
||
call, file = "tt43_repo/elements/electron_elements.ele"; | ||
call, file = "tt43_repo/sequence/electron_sequence.seq"; | ||
call, file = "tt43_repo/strength/electron_strength.str"; | ||
|
||
call, file = "tt43_repo/beams/electron_beam.beamx"; | ||
|
||
fint_h_var = 0.25; | ||
fint_v_var = 0.09; | ||
!*********************************************** | ||
! Select strengths for needed optics | ||
!*********************************************** | ||
|
||
//Focus at BTV50 | ||
//kqf430205 := -7.74315 ; | ||
//kqd412344 := -5.08493 ; | ||
//kqf412346 :=21.0534; | ||
//kqd412347 := -25.2612 ; | ||
|
||
|
||
//Focus at BTV53 | ||
//kqf430205 := -7.83841 ; | ||
//kqd412344 := - 3.71018; | ||
//kqf412346 := 18.396; | ||
//kqd412347 := -16.3205; | ||
|
||
|
||
//Focus at BTV54 | ||
//kqf430205 := -7.70116 ; | ||
//kqd412344 := -3.90342 ; | ||
//kqf412346 := 17.9845; | ||
//kqd412347 := -15.1748; | ||
|
||
//Focus at Iris +1 m | ||
//kqf430205 := -7.64757 ; | ||
//kqd412344 := -5.91917 ; | ||
//kqf412346 := 17.6078; | ||
//kqd412347 := -13.3947; | ||
|
||
//Focus at Iris +2 m | ||
//kqf430205 := -7.69869 ; | ||
//kqd412344 := -6.32961; | ||
//kqf412346 := 17.3987 ; | ||
//kqd412347 := -12.7635; | ||
|
||
|
||
//Focus at Iris +3 m | ||
//kqf430205 := -7.6056 ; | ||
//kqd412344 := -6.02714; | ||
//kqf412346 := 17.1487; | ||
//kqd412347 := -12.5029; | ||
|
||
//Focus at Iris +4 m | ||
//kqf430205 := -7.75767; | ||
//kqd412344 := -3.12061; | ||
//kqf412346 := 16.2752; | ||
//kqd412347 := -12.1149; | ||
|
||
//Focus at Iris +5 m | ||
//kqf430205 := -7.61516; | ||
//kqd412344 := -4.42116; | ||
//kqf412346 := 16.4406; | ||
//kqd412347 := -11.8455; | ||
|
||
|
||
!*************************************** | ||
! Default optics | ||
!*************************************** | ||
|
||
//Focus at Iris | ||
kqf430205 := -7.92377; | ||
kqd412344 := -1.07907; | ||
kqf412346 := 16.7789; | ||
kqd412347 := -14.0290; | ||
|
||
|
||
use, sequence= TT43; | ||
|
||
set, format="15.9f"; | ||
|
||
! Normalised emittance about 7 um in both planes | ||
emittx:=1.93e-7; | ||
emitty:=1.93e-7; | ||
|
||
! RMS momentum spread (estimated from measurements) | ||
dpp = 8e-3; | ||
|
||
!Spot Size [m] | ||
sigma_x := sqrt((table(twiss, betx)*emittx) + ((table(twiss,dx))*dpp)^2); | ||
sigma_y := sqrt((table(twiss, bety)*emitty) + ((table(twiss,dy))*dpp)^2); | ||
|
||
|
||
! Measured ini conditions: beta_x = 3.1 m, alfa_x = 0.8, beta_y = 3.5 m, alfa_y = 0.8 | ||
|
||
Select,flag=twiss, clear; | ||
Select,flag=twiss,column=name,keyword,s,l,sigma_x,sigma_y,betx,bety,dx, dpx, dy, dpy, alfx,alfy,x,y,k1l,mux,muy; | ||
//Select,flag=twiss,column=name,keyword,s,l,aper_1,aper_2; | ||
TWISS, file="tt43_repo/output/electron_tt43.out", | ||
|
||
! Ideal initial conditions | ||
initbeta0:beta0,DELTAP=0.0,BETX=5,ALFX=0,DX=0,DPX=0, | ||
BETY=5,ALFY=0,DY=0.0,DPY=0.0, | ||
x=0,px=0,y=0,py=0; | ||
|
||
!stop; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
!**************************** | ||
! Beam specification | ||
!**************************** | ||
|
||
!option,debug,-echo; | ||
!sigt=TBUNCH*CLIGHT*(BEAM->PC/BEAM->ENERGY) | ||
BEAM, particle=electron, PC=19e-3, exn=10e-6, eyn=10e-6, npart=3e9, bunched, sigt=TBUNCH*CLIGHT*(BEAM->PC/BEAM->ENERGY); | ||
|
76 changes: 76 additions & 0 deletions
76
compare/simon_maml/tt43_repo/elements/electron_elements.ele
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
!------------------------------------------------------- | ||
! Elements | ||
!------------------------------------------------------- | ||
|
||
//-------------- Bending Magnets | ||
MBH: RBEND, L := 0.1755 , apertype = ellipse , aperture = {0.02,0.02}, FINT := fint_h_var, hgap = 0.035, k1 := mbh_k1 ; ! Bending magnet, horizontal | ||
|
||
MBV: RBEND, L := 0.1755 , apertype = ellipse , aperture = {0.02,0.02}, FINT := fint_v_var, hgap = 0.035 ; ! Bending Magnet, vertical | ||
|
||
!specification magnetic lenght 0.1755 | ||
!specification mechanical lenght 0.294 | ||
|
||
|
||
//-------------- Quadrupoles | ||
QUAD: QUADRUPOLE, L := 0.0708, apertype = ellipse, aperture = {0.02,0.02}; | ||
!specification magnetic length 0.0718, but the measured gradient correspond to | ||
!a magnetic lenght slightly smaller, i.e. 0.0708 m => this is very important to take | ||
!into account | ||
|
||
|
||
|
||
//-------------- Correctors | ||
COR: KICKER, L := 0.0406, apertype = ellipse, aperture = {0.02,0.02}; | ||
!COR : KICKER , L := 0.1651; !magnetic length | ||
!specification magnetic length 0.1654 | ||
!specification mechanical lenght 0.073 | ||
|
||
|
||
//-------------- Beam position monitors | ||
BPM : MONITOR , L := 0, apertype = ellipse, aperture = {0.02,0.02}; | ||
BPMShort : MONITOR , L := 0.207, apertype = ellipse, aperture = {0.02,0.02}; | ||
BPMLong : MONITOR , L := 0.207, apertype = ellipse, aperture = {0.02,0.02}; | ||
|
||
|
||
//-------------- Beam observation TV monitors based on screens | ||
|
||
BTV : INSTRUMENT , L := 0.273, apertype = ellipse, aperture = {0.02,0.02}; | ||
BTV2 : INSTRUMENT , L := 0.354, apertype = ellipse, aperture = {0.02,0.02}; | ||
|
||
|
||
|
||
//-------------- Markers | ||
Start_line : MARKER , L := 0; | ||
End_line : MARKER , L := 0; ! apertype = rectangle, aperture = {0.00025,0.00025}; | ||
Mon : INSTRUMENT , L := 0; | ||
|
||
//-------------- BeamStopper | ||
Beam_Stopper : INSTRUMENT , L := 0.15; !0.069775; | ||
|
||
|
||
|
||
//-------------- Elements proton and secondary beam line | ||
bpg412445 : INSTRUMENT , L := 0.248 , aperture = ellipse, aperture = {0.060,0.060}; !old 0.248 | ||
otr2 : INSTRUMENT , L := 0.35 , aperture = ellipse, aperture = {0.06,0.06}; | ||
|
||
plasmacell: INSTRUMENT , L = 10 , aperture=ellipse ,aperture={0.020 ,0.020} ; | ||
iris: INSTRUMENT , l = 0.001 , aperture=ellipse ,aperture={0.005 ,0.005} ; | ||
|
||
table: INSTRUMENT , L = 2 ; | ||
|
||
MQNBR : QUADRUPOLE , L := 0.285; | ||
|
||
|
||
MBXFB : SBEND , L := 1; | ||
|
||
|
||
BTVSPS : INSTRUMENT , L = 0.448; | ||
|
||
HEATER : SOLENOID , L = 0.025 , KS = 0.00017/0.033; | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
Oops, something went wrong.