Skip to content

Commit

Permalink
Updated cbeta lattices. (#1158)
Browse files Browse the repository at this point in the history
* Updated cbeta lattices.
  • Loading branch information
DavidSagan authored Aug 18, 2024
1 parent 0c1ea10 commit 98c85eb
Show file tree
Hide file tree
Showing 317 changed files with 2,416,731 additions and 98 deletions.
6 changes: 6 additions & 0 deletions bmad-doc/lattices/cbeta/model/README
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
To run Tao use one of:
> tao -lat erl_0pass.lat.bmad
> tao -lat erl_1pass.lat.bmad
> tao -lat erl_2pass.lat.bmad
> tao -lat erl_3pass.lat.bmad
> tao -lat erl_4pass.lat.bmad
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
call, file=erl.param.bmad
call, file = sub/erl.param.bmad
parameter[lattice] = "CBETA, Beam Straight to Dump"
parameter[geometry] = open
parameter[particle] = electron
parameter[absolute_time_tracking] = t
call, file = beginning/beginning_in_merge.bmad
call, file = erl.bmad
call, file = sub/beginning/beginning_in_merge.bmad
call, file = sub/erl.bmad

rd1cav0%[gradient_err] = 0

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
call, file=erl.param.bmad
call, file = sub/erl.param.bmad

parameter[lattice] = "CBETA 1-pass"

Expand All @@ -8,13 +8,13 @@ PARAMETER[particle] = Electron

parameter[absolute_time_tracking] = T

call, file = beginning/beginning_in_merge.bmad
call, file = sub/beginning/beginning_in_merge.bmad

!call, file = beginning/beginning_gun.bmad
!call, file = sub/beginning/beginning_gun.bmad


! Main call
call, file = erl.bmad
call, file = sub/erl.bmad

lines_234_fork: fork, to_line=lines_234

Expand All @@ -25,20 +25,20 @@ cbeta_042: line=(
du.part1, la.demer.match006, du.part2, du, mar.end)


call, file = sx/s1.rec.bmad
call, file = sub/sx/s1.rec.bmad

call, file = rx/r1.rec.bmad
call, file = sub/rx/r1.rec.bmad

call, file = la/la.042.bmad
call, file = sub/la/la.042.bmad

call, file = fx/fa.bpms.bmad
call, file = fx/fb.bpms.bmad
call, file = tx/ta.bpms.bmad
call, file = tx/tb.bpms.bmad
call, file = zx/za.bpms.bmad
call, file = zx/zb.bpms.bmad
call, file = sub/fx/fa.bpms.bmad
call, file = sub/fx/fb.bpms.bmad
call, file = sub/tx/ta.bpms.bmad
call, file = sub/tx/tb.bpms.bmad
call, file = sub/zx/za.bpms.bmad
call, file = sub/zx/zb.bpms.bmad

! call, file = fx.multipoles.bmad
! call, file = sub/fx/fx.multipoles.bmad

! Only for making pretty pictures
lines_234: line=(
Expand All @@ -54,13 +54,13 @@ lines_234[geometry] = open
lines_234[particle] = electron
lines_234[live_branch] = f

call, file = sx/s2.rec.bmad
call, file = sx/s3.rec.bmad
call, file = sx/s4.rec.bmad
call, file = sub/sx/s2.rec.bmad
call, file = sub/sx/s3.rec.bmad
call, file = sub/sx/s4.rec.bmad

call, file = rx/r2.rec.bmad
call, file = rx/r3.rec.bmad
call, file = rx/r4.rec.bmad
call, file = sub/rx/r2.rec.bmad
call, file = sub/rx/r3.rec.bmad
call, file = sub/rx/r4.rec.bmad

use, cbeta_042
! TEMP for .layout_table
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
call, file=erl.param.bmad
call, file = sub/erl.param.bmad
parameter[lattice] = "CBETA 4-pass"

parameter[geometry] = open
Expand All @@ -7,13 +7,13 @@ PARAMETER[particle] = Electron

parameter[absolute_time_tracking] = T

call, file = beginning/beginning_in_merge.bmad
call, file = sub/beginning/beginning_in_merge.bmad

!call, file = beginning/beginning_gun.bmad
!call, file = sub/beginning/beginning_gun.bmad


! Main call
call, file = erl.bmad
call, file = sub/erl.bmad

lines_34_fork: fork, to_line=lines_34

Expand All @@ -27,20 +27,20 @@ cbeta_078: line=(
return7.time_patch, return7.time_match, la, setenergy006, la.tail,
du.part1, la.demer.match006, du.part2, du, mar.end)

call, file = sx/s1.acc.bmad
call, file = sx/s2.rec.bmad
call, file = sub/sx/s1.acc.bmad
call, file = sub/sx/s2.rec.bmad

call, file = rx/r1.acc.bmad
call, file = rx/r2.rec.bmad
call, file = sub/rx/r1.acc.bmad
call, file = sub/rx/r2.rec.bmad

call, file = la/la.078.bmad
call, file = sub/la/la.078.bmad

call, file = fx/fa.bpms.bmad
call, file = fx/fb.bpms.bmad
call, file = tx/ta.bpms.bmad
call, file = tx/tb.bpms.bmad
call, file = zx/za.bpms.bmad
call, file = zx/zb.bpms.bmad
call, file = sub/fx/fa.bpms.bmad
call, file = sub/fx/fb.bpms.bmad
call, file = sub/tx/ta.bpms.bmad
call, file = sub/tx/tb.bpms.bmad
call, file = sub/zx/za.bpms.bmad
call, file = sub/zx/zb.bpms.bmad

! Only for making pretty pictures
lines_34: line=(
Expand All @@ -53,11 +53,11 @@ lines_34[geometry] = open
lines_34[particle] = electron
lines_34[live_branch] = f

call, file = sx/s3.rec.bmad
call, file = sx/s4.rec.bmad
call, file = sub/sx/s3.rec.bmad
call, file = sub/sx/s4.rec.bmad

call, file = rx/r3.rec.bmad
call, file = rx/r4.rec.bmad
call, file = sub/rx/r3.rec.bmad
call, file = sub/rx/r4.rec.bmad

use, cbeta_078

Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
call, file=erl.param.bmad
call, file = sub/erl.param.bmad
parameter[lattice] = "CBETA 114 MeV Recovery"

parameter[geometry] = open
Expand All @@ -7,13 +7,13 @@ PARAMETER[particle] = Electron

parameter[absolute_time_tracking] = T

call, file = beginning/beginning_in_merge.bmad
call, file = sub/beginning/beginning_in_merge.bmad

!call, file = beginning/beginning_gun.bmad
!call, file = sub/beginning/beginning_gun.bmad


! Main call
call, file = erl.bmad
call, file = sub/erl.bmad

line_4_fork: fork, to_line=line_4

Expand All @@ -31,22 +31,22 @@ cbeta_114: line=(
return7.time_patch, return7.time_match, la, setenergy006, la.tail,
du.part1, la.demer.match006, du.part2, du, mar.end)

call, file = sx/s1.acc.bmad
call, file = sx/s2.acc.bmad
call, file = sx/s3.rec.bmad
call, file = sub/sx/s1.acc.bmad
call, file = sub/sx/s2.acc.bmad
call, file = sub/sx/s3.rec.bmad

call, file = rx/r1.acc.bmad
call, file = rx/r2.acc.bmad
call, file = rx/r3.rec.bmad
call, file = sub/rx/r1.acc.bmad
call, file = sub/rx/r2.acc.bmad
call, file = sub/rx/r3.rec.bmad

call, file = la/la.114.bmad
call, file = sub/la/la.114.bmad

call, file = fx/fa.bpms.bmad
call, file = fx/fb.bpms.bmad
call, file = tx/ta.bpms.bmad
call, file = tx/tb.bpms.bmad
call, file = zx/za.bpms.bmad
call, file = zx/zb.bpms.bmad
call, file = sub/fx/fa.bpms.bmad
call, file = sub/fx/fb.bpms.bmad
call, file = sub/tx/ta.bpms.bmad
call, file = sub/tx/tb.bpms.bmad
call, file = sub/zx/za.bpms.bmad
call, file = sub/zx/zb.bpms.bmad

! Only for making pretty pictures
line_4: line=(
Expand All @@ -57,8 +57,8 @@ line_4[geometry] = open
line_4[particle] = electron
line_4[live_branch] = f

call, file = sx/s4.rec.bmad
call, file = sub/sx/s4.rec.bmad

call, file = rx/r4.rec.bmad
call, file = sub/rx/r4.rec.bmad

use, cbeta_114
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
call, file=erl.param.bmad
call, file = sub/erl.param.bmad
parameter[lattice] = "CBETA 4-pass"

parameter[geometry] = open
Expand All @@ -7,32 +7,32 @@ PARAMETER[particle] = Electron

parameter[absolute_time_tracking] = T

call, file = beginning/beginning_in_merge.bmad
call, file = sub/beginning/beginning_in_merge.bmad

!call, file = beginning/beginning_gun.bmad
!call, file = sub/beginning/beginning_gun.bmad


! Main call
call, file = erl.bmad

call, file = sx/s1.acc.bmad
call, file = sx/s2.acc.bmad
call, file = sx/s3.acc.bmad
call, file = sx/s4.rec.bmad

call, file = rx/r1.acc.bmad
call, file = rx/r2.acc.bmad
call, file = rx/r3.acc.bmad
call, file = rx/r4.rec.bmad

call, file = la/la.150.bmad

call, file = fx/fa.bpms.bmad
call, file = fx/fb.bpms.bmad
call, file = tx/ta.bpms.bmad
call, file = tx/tb.bpms.bmad
call, file = zx/za.bpms.bmad
call, file = zx/zb.bpms.bmad
call, file = sub/erl.bmad

call, file = sub/sx/s1.acc.bmad
call, file = sub/sx/s2.acc.bmad
call, file = sub/sx/s3.acc.bmad
call, file = sub/sx/s4.rec.bmad

call, file = sub/rx/r1.acc.bmad
call, file = sub/rx/r2.acc.bmad
call, file = sub/rx/r3.acc.bmad
call, file = sub/rx/r4.rec.bmad

call, file = sub/la/la.150.bmad

call, file = sub/fx/fa.bpms.bmad
call, file = sub/fx/fb.bpms.bmad
call, file = sub/tx/ta.bpms.bmad
call, file = sub/tx/tb.bpms.bmad
call, file = sub/zx/za.bpms.bmad
call, file = sub/zx/zb.bpms.bmad

! Helper overlays
!O_SR.Pip35: overlay = {
Expand Down
16 changes: 16 additions & 0 deletions bmad-doc/lattices/cbeta/model/sub/beginning/beginning_gun.bmad
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
! Starting at the gun
! Matched with what beginning_in_merge.bmad does
BEGINNING[BETA_A] = 1.64572812131665422E+001
BEGINNING[ALPHA_A] = -1.14181737433087171E+001
BEGINNING[BETA_B] = 2.56956036664692311E+000
BEGINNING[ALPHA_B] = -1.12943895603512345E+000
BEGINNING[CMAT_11] = -4.97223145814601808E-001
BEGINNING[CMAT_12] = 4.52331942516531323E-005
BEGINNING[CMAT_21] = 1.36003088134465263E-006
BEGINNING[CMAT_22] = -4.97219471442358674E-001
parameter[p0c] = 0
call, file = ../in/in.bmad
call, file = ../in/in.X.bmad
beginning[x_position] = +2.56947702291317315E+00 + 1.26108377079917400E+01
beginning[z_position] = -1.09741156643455255E+01 + 1.42538628627946178E+01 - 0.009
beginning[theta_position] = -15*pi/180
82 changes: 82 additions & 0 deletions bmad-doc/lattices/cbeta/model/sub/building_wall.init
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@



! SW wall
&building_wall_section
constraint = 'none'
point(1) = -2844.8e-3, -2286e-3
point(2) = -2844.8e-3, -2895.6e-3 ! 24 in thick outer wall?
point(3) = 406.4e-3, -2895.6e-3
point(4) = 406.4e-3, -2286e-3
point(5) = -2844.8e-3, -2286e-3
/

! Inside wall S, E, N
&building_wall_section
constraint = 'none'
point(1) = 5283.2e-3, -2286e-3
point(2) = 36703e-3, -2286e-3
point(3) = 36703e-3, 19050e-3
point(4) = -2844.8e-3, 19050e-3
/


! interior E wall
&building_wall_section
constraint = 'none'
point(1) = 33794.7e-3, -2286e-3
point(2) = 34404.3e-3, -2286e-3
point(3) = 34404.3e-3, 19050e-3
point(4) = 33794.7e-3, 19050e-3
point(5) = 33794.7e-3, -2286e-3
/



! F cave extension
&building_wall_section
constraint = 'none'
point(1) = -2.84089, 4.11988
point(2) = -0.415112, 4.11988
point(3) = -0.415112, 13.1181
point(4) = -2.84089, 13.1181
/


! F cave
&building_wall_section
constraint = 'none'
point(1) = -2.84089, 14.0375
point(2) = 0, 14.0375
point(3) = 0, 17.7841
point(4) = 1.27, 19050e-3
/

! West wall (holes ignored)
&building_wall_section
constraint = 'none'
point(1) = -3.4952, 3.5383
point(2) = -2.8496, 3.5383
point(3) = -2.8496, 19050e-3
point(4) = -3.4952, 19050e-3
point(5) = -3.4952, 3.5383
/

! West wall south section
&building_wall_section
constraint = 'none'
point(1) = -3.4952, -1.36243
point(2) = -2.8496, -1.36243
point(3) = -2.8496, -0.134569
point(4) = -3.4952, -0.134569
point(5) = -3.4952, -1.36243
/

! South wall west section
&building_wall_section
constraint = 'none'
point(1) = -4, -1.36243
point(2) = -0.572211, -1.36243
point(3) = 0, -1.60698
point(4) = 0.29972, -2.25158
/
Loading

0 comments on commit 98c85eb

Please sign in to comment.