Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
beamphys
HRS
Commits
ab6bf61c
Commit
ab6bf61c
authored
Jul 06, 2019
by
Thomas Planche
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
got DIPOLE/edge-curvature to work OK
parent
3b9d12e4
Changes
23
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
23 changed files
with
9321 additions
and
29841 deletions
+9321
-29841
DIPOLE/FIT-dipole-parameters/FIT_B0_RE.in
DIPOLE/FIT-dipole-parameters/FIT_B0_RE.in
+9
-8
DIPOLE/FIT-dipole-parameters/FIT_DIPOLE.in
DIPOLE/FIT-dipole-parameters/FIT_DIPOLE.in
+0
-145
DIPOLE/FIT-dipole-parameters/FIT_edgeAngle.in
DIPOLE/FIT-dipole-parameters/FIT_edgeAngle.in
+2
-2
DIPOLE/edge-curvature/multiparticle.in
DIPOLE/edge-curvature/multiparticle.in
+18
-23
DIPOLE/edge-curvature/plot-multiparticles/multiparticle.in
DIPOLE/edge-curvature/plot-multiparticles/multiparticle.in
+0
-68
DIPOLE/edge-curvature/plot-multiparticles/noEspread.beam
DIPOLE/edge-curvature/plot-multiparticles/noEspread.beam
+0
-3000
DIPOLE/edge-curvature/plot-multiparticles/test.eps
DIPOLE/edge-curvature/plot-multiparticles/test.eps
+0
-0
DIPOLE/edge-curvature/plot-multiparticles/twomasses.gnu
DIPOLE/edge-curvature/plot-multiparticles/twomasses.gnu
+0
-15
DIPOLE/edge-curvature/plot-multiparticles/twomasses_edgeCurvature.eps
...curvature/plot-multiparticles/twomasses_edgeCurvature.eps
+0
-7027
DIPOLE/edge-curvature/reFIT-DIPOLE-parameters.in
DIPOLE/edge-curvature/reFIT-DIPOLE-parameters.in
+61
-0
DIPOLE/edge-curvature/twomasses.eps
DIPOLE/edge-curvature/twomasses.eps
+6030
-6219
DIPOLE/edge-curvature/twomasses.gnu
DIPOLE/edge-curvature/twomasses.gnu
+11
-5
DIPOLE/failed-attempt-to-fit-curvature/FIT_edgeCurvature.in
DIPOLE/failed-attempt-to-fit-curvature/FIT_edgeCurvature.in
+7
-7
DIPOLE/failed-attempt-to-fit-curvature/multiparticle_edgeCurvature.in
...d-attempt-to-fit-curvature/multiparticle_edgeCurvature.in
+0
-68
DIPOLE/failed-attempt-to-fit-curvature/twomasses_edgeCurvature.eps
...iled-attempt-to-fit-curvature/twomasses_edgeCurvature.eps
+0
-6960
DIPOLE/failed-attempt-to-fit-curvature/twomasses_edgeCurvature.gnu
...iled-attempt-to-fit-curvature/twomasses_edgeCurvature.gnu
+0
-14
DIPOLE/plot-multiparticles/multiparticle.in
DIPOLE/plot-multiparticles/multiparticle.in
+3
-3
DIPOLE/plot-multiparticles/test.eps
DIPOLE/plot-multiparticles/test.eps
+0
-0
DIPOLE/plot-multiparticles/twomasses.eps
DIPOLE/plot-multiparticles/twomasses.eps
+3155
-6266
DIPOLE/plot-multiparticles/twomasses.gnu
DIPOLE/plot-multiparticles/twomasses.gnu
+12
-5
tuto/figure/twomasses.pdf
tuto/figure/twomasses.pdf
+0
-0
tuto/tutorial-dipole.pdf
tuto/tutorial-dipole.pdf
+0
-0
tuto/tutorial-dipole.tex
tuto/tutorial-dipole.tex
+13
-6
No files found.
DIPOLE/FIT-dipole-parameters/FIT_B0_RE.in
View file @
ab6bf61c
zgoubi HRS tuto: DIPOLE
'OBJET'
54
4.1192
!BORO: Brho of 60 keV 238U+ = 54
4.12
kG.cm
54
3.687
!BORO: Brho of 60 keV 238U+ = 54
3.687
kG.cm
2 !KOBJ=2: initial coordinates must be entered explicitly
1 1 !total number of particles; number of distinct momenta
0. 0. 0. 0. 0. 1. 'o' !Y; T; Z; P; S; D; 'marker'. Note: Brho=BORO*D
...
...
@@ -10,7 +10,7 @@ zgoubi HRS tuto: DIPOLE
'DIPOLE'
2 !output flag: 0: no outpot, 2: output trajectory to zgoubi.plt, etc.
65 120. !AT[deg.], RM[cm]
65 4.53
43342
0. 0. 0. !ACENT[deg.];B0[kG]; N; B; GX
65 4.53
07259
0. 0. 0. !ACENT[deg.];B0[kG]; N; B; GX
7.0 0. !ENTRANCE FIELD BOUNDARY: fringe field extend[cm]; unused
0 0. 1.8 0. 0. 0. 0. 0. !unused; C0...C5; shift
45. 26.5 1e99 0.0 0.0 1e99 !W+[deg.]; edge angle[deg.]; R1[cm]; U1; U2; R2[cm]
...
...
@@ -29,12 +29,13 @@ atDIPOLEcenter.fai
'FIT'
2 !Number of physical parameters to be varied
2 5 0. 0.2 !element #2; vary parameter #64; coupling switch; relative range
2 64 0. 0.2 !element #2; vary parameter #64; coupling switch; relative range
2 1e-15 100 !Number of constraints; Convergence threshold; maximum number of iterations
3 1 2 2 120.0 1. 0 !IC (=3 for constraint on particle coordinate); Particle #; Particle coordinate (=2 for Y);element #;Wanted value; Weigth ; 0
3 1 3 2 0.0 1. 0 !IC (=3 for constraint on particle coordinate); Particle #; Particle coordinate (=3 for T);element #;Wanted value; Weigth ; 0
2 !Number of physical parameters to be varied
2 5 0. 0.2 !element #2; vary parameter #5 (BO); coupling switch; relative range
2 64 0. 0.2 !element #2; vary parameter #64 (RE); coupling switch; relative range
2 1e-8 100 !Number of constraints; Convergence threshold; maximum number of iterations
3 1 2 2 120.0 1. 0 !IC; Particle #; coordinate#=2 for Y;element #; wanted value; weigth ; 0
3 1 3 2 0.0 1. 0 !IC; Particle #; coordinate#=3 for T;element #; wanted value; weigth ; 0
'END'
...
...
DIPOLE/FIT-dipole-parameters/FIT_DIPOLE.in
deleted
100644 → 0
View file @
3b9d12e4
zgoubi HRS tuto: DIPOLE
'OBJET'
544.1192 !60 keV U1+ 544.1192/544.1328
3.01 !read from particles from
1 3000 1 !IP1; IP2; IPStep (Read particles numbered IT1 to IT2, step ITStep)
1 1 1 !not used here
1. 1. 2. 0.25 1. 1. 1. * !scaling factors on Y,T,Z,P,S,DP
0 0 0 0 0 0 0 ! not used here
0 ! not sure what this one does
noEspread.beam ! name of the input file
'FAISCNL'
init.fai
'DRIFT'
36.32357
'DIPOLE'
0 !output flag: 0: no outpot, 2: output trajectory to zgoubi.plt, etc.
130 120. !AT[deg.], RM[cm]
65 4.5343276 0. 0. 0. !ACENT[deg.];B0[kG]; N; B; GX
7.0 0. !ENTRANCE FIELD BOUNDARY: fringe field extend[cm]; unused
4 0. 1.8 0. 0. 0. 0. 0. !unused; C0...C5; shift
45. 26.543694 223. 0.0 0.0 223. !W+[deg.]; edge angle[deg.]; R1[cm]; U1; U2; R2[cm]
7.0 0. !EXIT FIELD BOUNDARY: lambda; =-1 for Enge like
4 0. 1.8 0. 0. 0. 0. 0. !unused; C0...C5; shift
-45. -26.543694 -223. 0. 0. -223. 0. !W-; edge angle; R1; U1; U2; R2
0. 0. !FACE 3: (Not used here)
0 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.
2 4. !IRD(=2, 25 or 4)
0.5 !Integration step size[cm]
2 127.96748 -0.349067 127.96748 0.349067 !KPOS RE[cm]; TE[rad]; RS[cm]; TS[rad]
'DRIFT'
36.32357
'DRIFT'
36.32357
'DIPOLE'
0 !output flag: 0: no outpot, 2: output trajectory to zgoubi.plt, etc.
130 120. !AT[deg.], RM[cm]
65 4.5343276 0. 0. 0. !ACENT[deg.];B0[kG]; N; B; GX
7.0 0. !ENTRANCE FIELD BOUNDARY: fringe field extend[cm]; unused
4 0. 1.8 0. 0. 0. 0. 0. !unused; C0...C5; shift
45. 26.543694 223. 0.0 0.0 223. !W+[deg.]; edge angle[deg.]; R1[cm]; U1; U2; R2[cm]
7.0 0. !EXIT FIELD BOUNDARY: lambda; =-1 for Enge like
4 0. 1.8 0. 0. 0. 0. 0. !unused; C0...C5; shift
-45. -26.543694 -223. 0. 0. -223. 0. !W-; edge angle; R1; U1; U2; R2
0. 0. !FACE 3: (Not used here)
0 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.
2 4. !IRD(=2, 25 or 4)
0.5 !Integration step size[cm]
2 127.96748 -0.349067 127.96748 0.349067 !KPOS RE[cm]; TE[rad]; RS[cm]; TS[rad]
'DRIFT'
36.32357 ! drift length=80-120*tan(20/deg.)
'FAISCNL'
curv_mass1.fai
'END'
'MATRIX'
2 0 !order of the map; 0:means calculate the matrix here
'FIT' 13
7 !Number of physical parameters to be varied
3 24 3.021 0.1
3 37 -3.021 0.1
3 40 -3.021 0.1
6 21 3.021 0.1
6 24 3.021 0.1
6 37 -3.021 0.1
6 40 -3.021 0.1
1 1e-15 100
2 1 22 8 0.0 1. 0 !2:2nd order map element; transfer map element 1-22 (i.e. x-x'^2); Desired value; 0:no additional parameters
'END'
'MATRIX'
1 0
'END'
'FIT' 13
3 !Number of physical parameters to be varied
3 36 -3.020 0.1 !element#4 (DIPOLE); parameter #36 (exit edge angle); inverse (minus sign) correlation with element#4 parameter#20 (entrance edge angle); relative range
6 20 3.020 0.1
6 36 -3.020 0.1
2 1e-11 100 !Number of constraints; Convergence threshold; maximum number of iterations
1 1 2 8 0.0 1. 0 !transfer matrix; matrix element 1 1; FIT after element#12 ('MATRIX');Wanted value(=0.0); Weigth ; 0:no additional parameters
1 2 1 8 0.0 1. 0 !transfer matrix; matrix element 2 2; FIT after element#12 ('MATRIX');Wanted value(=0.0); Weigth ; 0:no additional parameters
'END'
'OBJET'
544.12 !60 keV U1+
5 !5: generate 11 particles used to calculate transfer matrix ('MATRIX')
0.01 0.01 0.01 0.01 .1 .001 !step size in Y; T; Z; P; S; D
0.0 0. 0. 0. 0. 1.
'OBJET'
544.12 !BORO[kg.cm]: Brho of 60 keV 238U+ in kG.cm
2 !KOBJ=2: initial coordinates must be entered explicitly
1 1 !total number of particles; number of distinct momenta
0. 0. 0. 0. 0. 1. 'o' !Y; T; Z; P; S; D; 'marker'. Note: Brho=BORO*D
1 !1 or -9 (-9 disables the tracking of this particle)
DIPOLE/FIT-dipole-parameters/FIT_edgeAngle.in
View file @
ab6bf61c
...
...
@@ -2,7 +2,7 @@ zgoubi HRS tuto: DIPOLE
'OBJET'
54
4.1192
!60 keV U1+
54
3.687
!60 keV U1+
5 !5: generate 11 particles used to calculate transfer matrix ('MATRIX')
0.01 0.01 0.01 0.01 .1 .001 !step size in Y; T; Z; P; S; D
0.0 0. 0. 0. 0. 1.
...
...
@@ -14,7 +14,7 @@ zgoubi HRS tuto: DIPOLE
'DIPOLE'
2 !output flag: 0: no outpot, 2: output trajectory to zgoubi.plt, etc.
130 120. !AT[deg.], RM[cm]
65 4.53
43276
0. 0. 0. !ACENT[deg.];B0[kG]; N; B; GX
65 4.53
07259
0. 0. 0. !ACENT[deg.];B0[kG]; N; B; GX
7.0 0. !ENTRANCE FIELD BOUNDARY: fringe field extend[cm]; unused
4 0. 1.8 0. 0. 0. 0. 0. !unused; C0...C5; shift
45. 26.5 1e99 0.0 0.0 1e99 !W+[deg.]; edge angle[deg.]; R1[cm]; U1; U2; R2[cm]
...
...
DIPOLE/edge-curvature/multiparticle.in
View file @
ab6bf61c
zgoubi HRS tuto: DIPOLE
'OBJET'
54
4.1192
!54
4.1192 or 544.1328
54
3.701
!54
3.687 or 543.701 and not 543.714, since we are aiming for a mass resolution of 20000 and not momentum resolution of 20000
3.01 !read from particles from
1 3000 1 !IP1; IP2; IPStep (Read particles numbered IT1 to IT2, step ITStep)
1 1 1 !not used here
...
...
@@ -11,6 +11,7 @@ zgoubi HRS tuto: DIPOLE
noEspread.beam ! name of the input file
'DRIFT'
36.32357
...
...
@@ -18,55 +19,49 @@ noEspread.beam ! name of the input file
'DIPOLE'
0 !output flag: 0: no outpot, 2: output trajectory to zgoubi.plt, etc.
130 120. !AT[deg.], RM[cm]
65 4.53
43
27
6
0. 0. 0. !ACENT[deg.];B0[kG]; N; B; GX
65 4.53
15
27
0
0. 0. 0. !ACENT[deg.];B0[kG]; N; B; GX
7.0 0. !ENTRANCE FIELD BOUNDARY: fringe field extend[cm]; unused
4 0. 1.8 0. 0. 0. 0. 0. !unused; C0...C5; shift
45. 26.4
74
227.0 0.0 0.0 227.0 !W+[deg.]; edge angle[deg.]; R1[cm]; U1; U2; R2[cm]
45. 26.4
86450
227.0 0.0 0.0 227.0 !W+[deg.]; edge angle[deg.]; R1[cm]; U1; U2; R2[cm]
7.0 0. !EXIT FIELD BOUNDARY: lambda; =-1 for Enge like
4 0. 1.8 0. 0. 0. 0. 0. !unused; C0...C5; shift
-45. -26.4
74
-227.0 0. 0. -227.0 0. !W-; edge angle; R1; U1; U2; R2
-45. -26.4
86450
-227.0 0. 0. -227.0 0. !W-; edge angle; R1; U1; U2; R2
0. 0. !FACE 3: (Not used here)
0 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.
2 4. !IRD(=2, 25 or 4)
0.
5
!Integration step size[cm]
2 127.9
6721
-0.349067 127.9
6721
0.349067 !KPOS RE[cm]; TE[rad]; RS[cm]; TS[rad]
0.
3
!Integration step size[cm]
2 127.9
7493
-0.349067 127.9
7493
0.349067 !KPOS RE[cm]; TE[rad]; RS[cm]; TS[rad]
'DRIFT'
36.32357
'DRIFT'
36.32357
'DRIFT'
36.32357
'DIPOLE'
0 !output flag: 0: no outpot, 2: output trajectory to zgoubi.plt, etc.
130 120. !AT[deg.], RM[cm]
65 4.53
43
27
6
0. 0. 0. !ACENT[deg.];B0[kG]; N; B; GX
65 4.53
15
27
0
0. 0. 0. !ACENT[deg.];B0[kG]; N; B; GX
7.0 0. !ENTRANCE FIELD BOUNDARY: fringe field extend[cm]; unused
4 0. 1.8 0. 0. 0. 0. 0. !unused; C0...C5; shift
45. 26.4
74
227.0 0.0 0.0 227.0 !W+[deg.]; edge angle[deg.]; R1[cm]; U1; U2; R2[cm]
45. 26.4
86450
227.0 0.0 0.0 227.0 !W+[deg.]; edge angle[deg.]; R1[cm]; U1; U2; R2[cm]
7.0 0. !EXIT FIELD BOUNDARY: lambda; =-1 for Enge like
4 0. 1.8 0. 0. 0. 0. 0. !unused; C0...C5; shift
-45. -26.4
74
-227.0 0. 0. -227.0 0. !W-; edge angle; R1; U1; U2; R2
-45. -26.4
86450
-227.0 0. 0. -227.0 0. !W-; edge angle; R1; U1; U2; R2
0. 0. !FACE 3: (Not used here)
0 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.
2 4. !IRD(=2, 25 or 4)
0.
5
!Integration step size[cm]
2 127.9
6721
-0.349067 127.9
6721
0.349067 !KPOS RE[cm]; TE[rad]; RS[cm]; TS[rad]
0.
3
!Integration step size[cm]
2 127.9
7493
-0.349067 127.9
7493
0.349067 !KPOS RE[cm]; TE[rad]; RS[cm]; TS[rad]
'DRIFT'
36.32357 ! drift length=80-120*tan(20/deg.)
'DRIFT'
36.32357
'FAISCNL'
mass1.fai
'REBELOTE'
1 0.1 0 1
1
1 1 544.1328
mass2.fai
'END'
...
...
DIPOLE/edge-curvature/plot-multiparticles/multiparticle.in
deleted
100644 → 0
View file @
3b9d12e4
zgoubi HRS tuto: DIPOLE
'OBJET'
544.1328 !544.1192 or 544.1328 or 544.1464?? mass resolution vs momentum resolution
3.01 !read from particles from
1 3000 1 !IP1; IP2; IPStep (Read particles numbered IT1 to IT2, step ITStep)
1 1 1 !not used here
1. 1. 1. 0.5 1. 1. 1. * !scaling factors on Y,T,Z,P,S,DP
0 0 0 0 0 0 0 ! not used here
0 ! not sure what this one does
noEspread.beam ! name of the input file
'DRIFT'
36.32357
'DIPOLE'
0 !output flag: 0: no outpot, 2: output trajectory to zgoubi.plt, etc.
130 120. !AT[deg.], RM[cm]
65 4.5343276 0. 0. 0. !ACENT[deg.];B0[kG]; N; B; GX
7.0 0. !ENTRANCE FIELD BOUNDARY: fringe field extend[cm]; unused
4 0. 1.8 0. 0. 0. 0. 0. !unused; C0...C5; shift
45. 26.543694 1e99 0.0 0.0 1e99 !W+[deg.]; edge angle[deg.]; R1[cm]; U1; U2; R2[cm]
7.0 0. !EXIT FIELD BOUNDARY: lambda; =-1 for Enge like
4 0. 1.8 0. 0. 0. 0. 0. !unused; C0...C5; shift
-45. -26.543694 -1e99 0. 0. -1e99 0. !W-; edge angle; R1; U1; U2; R2
0. 0. !FACE 3: (Not used here)
0 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.
2 4. !IRD(=2, 25 or 4)
0.5 !Integration step size[cm]
2 127.96748 -0.349067 127.96748 0.349067 !KPOS RE[cm]; TE[rad]; RS[cm]; TS[rad]
'DRIFT'
36.32357
'DRIFT'
36.32357
'DIPOLE'
0 !output flag: 0: no outpot, 2: output trajectory to zgoubi.plt, etc.
130 120. !AT[deg.], RM[cm]
65 4.5343276 0. 0. 0. !ACENT[deg.];B0[kG]; N; B; GX
7.0 0. !ENTRANCE FIELD BOUNDARY: fringe field extend[cm]; unused
4 0. 1.8 0. 0. 0. 0. 0. !unused; C0...C5; shift
45. 26.543694 1e99 0.0 0.0 1e99 !W+[deg.]; edge angle[deg.]; R1[cm]; U1; U2; R2[cm]
7.0 0. !EXIT FIELD BOUNDARY: lambda; =-1 for Enge like
4 0. 1.8 0. 0. 0. 0. 0. !unused; C0...C5; shift
-45. -26.543694 -1e99 0. 0. -1e99 0. !W-; edge angle; R1; U1; U2; R2
0. 0. !FACE 3: (Not used here)
0 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.
2 4. !IRD(=2, 25 or 4)
0.5 !Integration step size[cm]
2 127.96748 -0.349067 127.96748 0.349067 !KPOS RE[cm]; TE[rad]; RS[cm]; TS[rad]
'DRIFT'
36.32357 ! drift length=80-120*tan(20/deg.)
'FAISCNL'
mass2.fai
'END'
DIPOLE/edge-curvature/plot-multiparticles/noEspread.beam
deleted
100644 → 0
View file @
3b9d12e4
This source diff could not be displayed because it is too large. You can
view the blob
instead.
DIPOLE/edge-curvature/plot-multiparticles/test.eps
deleted
100644 → 0
View file @
3b9d12e4
DIPOLE/edge-curvature/plot-multiparticles/twomasses.gnu
deleted
100644 → 0
View file @
3b9d12e4
set term postscript eps color enhanced "Times-Roman" 18 lw 2
set output "twomasses_edgeCurvature.eps"
set xlabel 'X/mm'
set ylabel 'X`/mrad'
set grid
titletext="Horizontal and vertical emittance: 3{/Symbol m}m, no DE/E, m/Dm=20000 \n"
set title titletext
set key left cent
cm2mm=10.0
plot "mass1.fai" u ($10*cm2mm):11 w points pt 7 ps 0.5 lc 1 title "^{238}U mass", \
"mass2.fai" u ($10*cm2mm):11 w points pt 7 ps 0.5 lc 3 title"20001/20000*^{238}U mass"
DIPOLE/edge-curvature/plot-multiparticles/twomasses_edgeCurvature.eps
deleted
100644 → 0
View file @
3b9d12e4
This diff is collapsed.
Click to expand it.
DIPOLE/edge-curvature/reFIT
_edgeAngle
.in
→
DIPOLE/edge-curvature/reFIT
-DIPOLE-parameters
.in
View file @
ab6bf61c
...
...
@@ -2,9 +2,9 @@ zgoubi HRS tuto: DIPOLE
'OBJET'
54
4.1192
!60 keV U1+
54
3.687
!60 keV U1+
5 !5: generate 11 particles used to calculate transfer matrix ('MATRIX')
0.0001 0.1 0.0001 0.1 .
1
.0
01
!step size in Y; T; Z; P; S; D
0.000
0
1 0.
00
1 0.000
0
1 0.
00
1 .
0
.0 !step size in Y; T; Z; P; S; D
0.0 0. 0. 0. 0. 1.
'DRIFT'
...
...
@@ -14,18 +14,18 @@ zgoubi HRS tuto: DIPOLE
'DIPOLE'
0 !output flag: 0: no outpot, 2: output trajectory to zgoubi.plt, etc.
130 120. !AT[deg.], RM[cm]
65 4.53
43276
0. 0. 0. !ACENT[deg.];B0[kG]; N; B; GX
65 4.53
07259
0. 0. 0. !ACENT[deg.];B0[kG]; N; B; GX
7.0 0. !ENTRANCE FIELD BOUNDARY: fringe field extend[cm]; unused
4 0. 1.8 0. 0. 0. 0. 0. !unused; C0...C5; shift
45. 26.5
75
22
0
.0 0.0 0.0 22
0
.0 !W+[deg.]; edge angle[deg.]; R1[cm]; U1; U2; R2[cm]
45. 26.5 22
7
.0 0.0 0.0 22
7
.0 !W+[deg.]; edge angle[deg.]; R1[cm]; U1; U2; R2[cm]
7.0 0. !EXIT FIELD BOUNDARY: lambda; =-1 for Enge like
4 0. 1.8 0. 0. 0. 0. 0. !unused; C0...C5; shift
-45. -26.5
75
-22
0
.0 0. 0. -22
0
.0 0. !W-; edge angle; R1; U1; U2; R2
-45. -26.5 -22
7
.0 0. 0. -22
7
.0 0. !W-; edge angle; R1; U1; U2; R2
0. 0. !FACE 3: (Not used here)
0 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.
2 4. !IRD(=2, 25 or 4)
0.
1
!Integration step size[cm]
0.
3
!Integration step size[cm]
2 127.96721 -0.349067 127.96721 0.349067 !KPOS RE[cm]; TE[rad]; RS[cm]; TS[rad]
'DRIFT'
...
...
@@ -34,15 +34,28 @@ zgoubi HRS tuto: DIPOLE
'MATRIX'
1 0
'FIT'
1 !Number of physical parameters to be varied
3 36 -3.020 0.1 !element#4 (DIPOLE); parameter #36 (exit edge angle); inverse (minus sign) correlation with element#4 parameter#20 (entrance edge angle); relative range
2 1e-11 100 !Number of constraints; Convergence threshold; maximum number of iterations
1 1 1 5 0.0 1. 0 !transfer matrix; matrix element 1 1; FIT after element#12 ('MATRIX');Wanted value(=0.0); Weigth ; 0:no additional parameters
1 2 2 5 0.0 1. 0 !transfer matrix; matrix element 2 2; FIT after element#12 ('MATRIX');Wanted value(=0.0); Weigth ; 0:no additional parameters
'FIT'
3 !Number of physical parameters to be varied
3 5 0. 0.2 !element #3 (DIPOLE); vary parameter #5 (BO); coupling switch; relative range
3 64 0. 0.2 !element #3 (DIPOLE); vary parameter #64 (RE); coupling switch; relative range
3 36 -3.020 0.1 !element #3 (DIPOLE); parameter #36 (exit edge angle); inverse (minus sign) correlation with element#4 parameter#20 (entrance edge angle); relative range
4 1e-8 100 !Number of constraints; Convergence threshold; maximum number of iterations
1 1 1 5 0.0 1. 0 !transfer matrix; matrix element 1 1; FIT after element#5 ('MATRIX');Wanted value(=0.0); Weigth ; 0:no additional parameters
1 2 2 5 0.0 1. 0 !transfer matrix; matrix element 2 2; FIT after element#5 ('MATRIX');Wanted value(=0.0); Weigth ; 0:no additional parameters
3 1 2 5 0.0 10. 0 !IC; Particle #; coordinate#=2 for Y;element #; wanted value; weigth ; 0
3 1 3 5 0.0 10. 0 !IC; Particle #; coordinate#=3 for T;element #; wanted value; weigth ; 0
'END'
'FIT'
3 !Number of physical parameters to be varied
3 36 -3.020 0.1 !element #3 (DIPOLE); parameter #36 (exit edge angle); inverse (minus sign) correlation with element#4 parameter#20 (entrance edge angle); relative range
3 5 0. 0.2 !element #3 (DIPOLE); vary parameter #5 (BO); coupling switch; relative range
3 64 0. 0.2 !element #3 (DIPOLE); vary parameter #64 (RE); coupling switch; relative range
4 1e-8 100 !Number of constraints; Convergence threshold; maximum number of iterations
3 1 2 5 0.0 1000. 0 !IC; Particle #; coordinate#=2 for Y;element #; wanted value; weigth ; 0
3 1 3 5 0.0 1000. 0 !IC; Particle #; coordinate#=3 for T;element #; wanted value; weigth ; 0
1 1 1 5 0.0 1. 0 !transfer matrix; matrix element 1 1; FIT after element#5 ('MATRIX');Wanted value(=0.0); Weigth ; 0:no additional parameters
1 2 2 5 0.0 1. 0 !transfer matrix; matrix element 2 2; FIT after element#5 ('MATRIX');Wanted value(=0.0); Weigth ; 0:no additional parameters
DIPOLE/edge-curvature/twomasses.eps
View file @
ab6bf61c
This diff is collapsed.
Click to expand it.
DIPOLE/edge-curvature/twomasses.gnu
View file @
ab6bf61c
...
...
@@ -2,14 +2,20 @@
set term postscript eps color enhanced "Times-Roman" 18 lw 2
set output "twomasses.eps"
set xlabel 'X/mm'
set ylabel
'X`
/mrad
'
set grid
set ylabel
"X'
/mrad
"
#
set grid
titletext="Horizontal and vertical emittance: 3{/Symbol m}m, no DE/E, m/Dm=20000 \n"
set title titletext
set key left cent
cm2mm=10.0
set key at -0.5, 5
plot "mass1.fai" u ($10*cm2mm):11 w points pt 7 ps 0.2 lc 1 title "^{238}U mass", \
"mass2.fai" u ($10*cm2mm):11 w points pt 7 ps 0.2 lc 3 title"20001/20000*^{238}U mass"
set xrange [-1.5:0.5]
set yrange [-60:60]
plot "mass1.fai" u ($10*cm2mm):11 w points pt 7 ps 0.2 lc 1 notitle, \
"" w points pt 7 ps 0.7 lc 1 title "^{238}U mass ", \
"mass2.fai" u ($10*cm2mm):11 w points pt 7 ps 0.2 lc 2 notitle ,\
"" w points pt 7 ps 0.7 lc 2 title "^{238}U mass*20001/20000"
DIPOLE/failed-attempt-to-fit-curvature/FIT_edgeCurvature.in
View file @
ab6bf61c
zgoubi HRS tuto: DIPOLE
'OBJET'
54
4.1192
!
60 keV U1+
54
3.687
!
BRHO of 60 keV 238U1+ in kG.cm
6 !6: generate 61 particles used to calculate 2nd order map ('MATRIX')
0.01 0.01 0.01 0.01 .1 .001 !step size in Y; T; Z; P; S; D
0.0 0. 0. 0. 0. 1.
...
...
@@ -13,13 +13,13 @@ zgoubi HRS tuto: DIPOLE
'DIPOLE'
0 !output flag: 0: no outpot, 2: output trajectory to zgoubi.plt, etc.
130 120. !AT[deg.], RM[cm]
65 4.53
43276
0. 0. 0. !ACENT[deg.];B0[kG]; N; B; GX
65 4.53
07259
0. 0. 0. !ACENT[deg.];B0[kG]; N; B; GX
7.0 0. !ENTRANCE FIELD BOUNDARY: fringe field extend[cm]; unused
4 0. 1.8 0. 0. 0. 0. 0. !unused; C0...C5; shift
45. 26.543694 2
00.
0.0 0.0 2
00.
!W+[deg.]; edge angle[deg.]; R1[cm]; U1; U2; R2[cm]
45. 26.543694 2
27.0
0.0 0.0 2
27.0
!W+[deg.]; edge angle[deg.]; R1[cm]; U1; U2; R2[cm]
7.0 0. !EXIT FIELD BOUNDARY: lambda; =-1 for Enge like
4 0. 1.8 0. 0. 0. 0. 0. !unused; C0...C5; shift
-45. -26.543694 -2
00.
0. 0. -2
00.
0. !W-; edge angle; R1; U1; U2; R2
-45. -26.543694 -2
27.0
0. 0. -2
27.0
0. !W-; edge angle; R1; U1; U2; R2
0. 0. !FACE 3: (Not used here)
0 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.
...
...
@@ -61,13 +61,13 @@ zgoubi HRS tuto: DIPOLE
'DIPOLE'
0 !output flag: 0: no outpot, 2: output trajectory to zgoubi.plt, etc.
130 120. !AT[deg.], RM[cm]
65 4.53
43276
0. 0. 0. !ACENT[deg.];B0[kG]; N; B; GX
65 4.53
07259
0. 0. 0. !ACENT[deg.];B0[kG]; N; B; GX
7.0 0. !ENTRANCE FIELD BOUNDARY: fringe field extend[cm]; unused
4 0. 1.8 0. 0. 0. 0. 0. !unused; C0...C5; shift
45. 26.543694 2
00.
0.0 0.0 2
00.
!W+[deg.]; edge angle[deg.]; R1[cm]; U1; U2; R2[cm]
45. 26.543694 2
27.0
0.0 0.0 2
27.0
!W+[deg.]; edge angle[deg.]; R1[cm]; U1; U2; R2[cm]
7.0 0. !EXIT FIELD BOUNDARY: lambda; =-1 for Enge like
4 0. 1.8 0. 0. 0. 0. 0. !unused; C0...C5; shift
-45. -26.543694 -2
00.
0. 0. -2
00.
0. !W-; edge angle; R1; U1; U2; R2
-45. -26.543694 -2
27.0
0. 0. -2
27.0
0. !W-; edge angle; R1; U1; U2; R2
0. 0. !FACE 3: (Not used here)
0 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.
...
...
DIPOLE/failed-attempt-to-fit-curvature/multiparticle_edgeCurvature.in
deleted
100644 → 0
View file @
3b9d12e4
zgoubi HRS tuto: DIPOLE
'OBJET'
544.1328 !544.1192 or 544.1328
3.01 !read from particles from
1 3000 1 !IP1; IP2; IPStep (Read particles numbered IT1 to IT2, step ITStep)
1 1 1 !not used here
1. 1. 1. 0.5 1. 1. 1. * !scaling factors on Y,T,Z,P,S,DP
0 0 0 0 0 0 0 ! not used here
0 ! not sure what this one does
noEspread.beam ! name of the input file
'DRIFT'
36.32357
'DIPOLE'
0 !output flag: 0: no outpot, 2: output trajectory to zgoubi.plt, etc.
130 120. !AT[deg.], RM[cm]
65 4.5343276 0. 0. 0. !ACENT[deg.];B0[kG]; N; B; GX
7.0 0. !ENTRANCE FIELD BOUNDARY: fringe field extend[cm]; unused
4 0. 1.8 0. 0. 0. 0. 0. !unused; C0...C5; shift
45. 26.543694 220.000 0.0 0.0 220.000 !W+[deg.]; edge angle[deg.]; R1[cm]; U1; U2; R2[cm]
7.0 0. !EXIT FIELD BOUNDARY: lambda; =-1 for Enge like
4 0. 1.8 0. 0. 0. 0. 0. !unused; C0...C5; shift
-45. -26.543694 -220.000 0. 0. -220.000 0. !W-; edge angle; R1; U1; U2; R2
0. 0. !FACE 3: (Not used here)
0 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.
2 4. !IRD(=2, 25 or 4)
0.5 !Integration step size[cm]
2 127.96748 -0.349067 127.96748 0.349067 !KPOS RE[cm]; TE[rad]; RS[cm]; TS[rad]
'DRIFT'
36.32357
'DRIFT'
36.32357
'DIPOLE'
0 !output flag: 0: no outpot, 2: output trajectory to zgoubi.plt, etc.
130 120. !AT[deg.], RM[cm]
65 4.5343276 0. 0. 0. !ACENT[deg.];B0[kG]; N; B; GX
7.0 0. !ENTRANCE FIELD BOUNDARY: fringe field extend[cm]; unused
4 0. 1.8 0. 0. 0. 0. 0. !unused; C0...C5; shift
45. 26.543694 220.000 0.0 0.0 220.000 !W+[deg.]; edge angle[deg.]; R1[cm]; U1; U2; R2[cm]
7.0 0. !EXIT FIELD BOUNDARY: lambda; =-1 for Enge like
4 0. 1.8 0. 0. 0. 0. 0. !unused; C0...C5; shift
-45. -26.543694 -220.000 0. 0. -220.000 0. !W-; edge angle; R1; U1; U2; R2
0. 0. !FACE 3: (Not used here)
0 0. 0. 0. 0. 0. 0. 0.
0. 0. 0. 0. 0. 0. 0.
2 4. !IRD(=2, 25 or 4)
0.5 !Integration step size[cm]
2 127.96748 -0.349067 127.96748 0.349067 !KPOS RE[cm]; TE[rad]; RS[cm]; TS[rad]
'DRIFT'
36.32357 ! drift length=80-120*tan(20/deg.)
'FAISCNL'
mass2-ec.fai
'END'
DIPOLE/failed-attempt-to-fit-curvature/twomasses_edgeCurvature.eps
deleted
100644 → 0
View file @
3b9d12e4
This diff is collapsed.
Click to expand it.
DIPOLE/failed-attempt-to-fit-curvature/twomasses_edgeCurvature.gnu
deleted
100644 → 0
View file @
3b9d12e4
set term postscript eps color enhanced "Times-Roman" 18 lw 2
set output "twomasses_edgeCurvature.eps"
set xlabel 'X/mm'
set ylabel 'X`/mrad'
set grid
titletext="Horizontal and vertical emittance: 3{/Symbol m}m, no DE/E, m/Dm=20000 \n"
set title titletext
set key left cent
cm2mm=10.0
plot "mass1-ec.fai" u ($10*cm2mm):11 w points pt 7 ps 0.5 lc 1 title "^{238}U mass", \
"mass2-ec.fai" u ($10*cm2mm):11 w points pt 7 ps 0.5 lc 3 title"20001/20000*^{238}U mass"
DIPOLE/plot-multiparticles/multiparticle.in
View file @
ab6bf61c
zgoubi HRS tuto: DIPOLE
'OBJET'
54
4.1192
!54
4.1192 or 544.1328
and not 54
4.146
4, since we are aiming for a mass resolution of 20000 and not momentum resolution of 20000
54
3.687
!54
3.687 or 543.701
and not 54
3.71
4, since we are aiming for a mass resolution of 20000 and not momentum resolution of 20000
3.01 !read from particles from
1 3000 1 !IP1; IP2; IPStep (Read particles numbered IT1 to IT2, step ITStep)
1 1 1 !not used here
...
...
@@ -19,7 +19,7 @@ noEspread.beam ! name of the input file
'DIPOLE'
0 !output flag: 0: no outpot, 2: output trajectory to zgoubi.plt, etc.
130 120. !AT[deg.], RM[cm]
65 4.53
43276
0. 0. 0. !ACENT[deg.];B0[kG]; N; B; GX