Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
#*******************************************************************
# 15 March 2010
# File for checking TRacy is running well
#
# input script to set the file and bool flag
#
# comments:
# 1) Blank line and line starting with "#" (comment) are ignored
# 2) Obligatory parameter: lat_file,
# lat file name is without the extension of .lat
# 3) All the other parameters are optional, and all the default
# values for flags are false
# 4) Default FMAP values are:
# _FmapFlag_nxpoint=31, _FmapFlag_nypoint=21,
# _FmapFlag_nturn=516; _FmapFlag_xmax=0.025,
# _FmapFlag_ymax=0.005, _FmapFlag_delta=0.0;
# _FmapFlag_diffusion = true;
# 5) Default values of FMAPdp are the same as FMAP.
#
# Test verison for the development of Tracy 3, always the nearest
# input file verison.
#
# 07/2011 Jianfeng Zhang
#
#******************************************************************
#******files********
# relative directory of the files in the script
in_dir ./
#in_dir /home/zhang/codes/TracyIII/lattice/example/
# lattice file must be wihout .lat extension
lat_file example_lattice
# H-corrector name in lattice file
h_corr HCM
# V-corrector name in lattice file
v_corr VCM
# girder start symbol
gs GS
# girder end symbol
ge GE
# BPM name in lattice file
bpm_name BPM
# skew quadrupole
qt QT
# GLOBAL PARAMETER PART
# Activate quadrupole Fringefield
QuadFringeOnFlag
# VACCUUM CHAMBER PART
# read vacuum chamber from chamber_file
ReadChamberFlag example_chamber.dat
# set RF voltage, if false, then use the definition value
# of RF cavity in the lattice
# name, flag, RF voltage [V]
RFvoltageFlag 3000000
#####################
# Read the field error, and replacement the corresponding components
# of the element.
# Generic features
####################
ReadfefileFlag example_dip.fe
# fit tunes
FitTuneFlag q7 q9 18.202 10.317
# fit chromaticities
FitChromFlag sx9 sx10 2.0 2.0
# NOT finished
#PrintGirderFlag testgirder.out
######################
# alignment error file, after read the misalignment, the orbit is corrected
#####################
ReadaefileFlag example.ae
#####################
# orbit correction, if ReadaefieldFlag is on, then must set the parameters to do orbit correction
#####################
# file to specify which correctors are used for H orbit correction
hcorr_file example_hcorr_56nom.state
# file to specify which correctors are used for V orbit correction
vcorr_file example_vcorr_56nom.state
#number of statistics (seeds) --> N flat-files
n_stat 2
#number of times to scale the errors
n_scale 1
#number of iterations for orbit correction, if 0, no orbit correction
n_orbit 0
#number of singular values in H-plane, must be not larger than the number of correctors used for orbit correction
nwh 60
#number of singular values in V-plane, must be not larger than the number of correctors used for orbit correction
nwv 60
#######################################
# print the twiss paramters to a file
#######################################
PrintTwissFlag twisstest.out
########################
# print close orbit to a file
##########################
PrintCODFlag codtest.out
#print coordinates tracking around COD at each element
PrintTrackFlag tracktest.out 0.001 0.000 0.0 0.0 0.0 0.0 50
# tune obtained by tracking
TuneTracFlag
# chromaticity obtained by tracking
ChromTracFlag
###
### FITTING FACTORY
###
# fit tune
# name, flag, tuned quadrople,tuned quadrople,targetnudx targetnudz
FitTuneFlag q7 q9 18.202 10.317
# fit chromaticity
# name,flag, tuned sextupole, tuned sextupole, targetksix targetksiz
FitChromFlag sx9 sx10 2.0 2.6
# TUNESHIFT WITH AMPLITUDE
# tune shift with amplitude and energy
# AmplitudeTuneShiftFlag flag Nbx Nby TurnNumber xmax(m) ymax(m) delta
# Nbx and Nby Number of amplitude values in H et V planes
# TurnNumber number of turns for tracking
# xmax ymax maximum amplitude value (sqrt law)
# delta energy offset
AmplitudeTuneShiftFlag nudxtest.out nudztest.out 50 30 516 0.035 0.02 0.0
# EnergyTuneShiftFlag Nb TurnNumber emax
# Nb point number
# TurnNumber number of turn for tracking
# emax maximum energy for tracking
EnergyTuneShiftFlag nudptest.out 31 1026 0.06
# FMA calculate frequency map
# Nbx Nby number of point in h and v planes
# TurnNumber Number of turns for tracking
# xmax, ymax maximum amplitude
# energyoffset
# diffusionflag to compute tunediffusion
FmapFlag fmaptest.out 31 21 516 0.025 0.005 0.0 true
# FMA dp calculate frequency map
# Nbx: number of point in h planes
# Nbe: number of point for the energy
# TurnNumber: Number of turns for tracking
# xmax: maximum amplitude in the horizontal plane
# emax: maximum energyoffset
# y: vertical amplitude
# diffusionflag to compute tunediffusion
FmapdpFlag fmapdptest.out 101 121 1026 25e-3 0.06 0.3e-3 true
# Error coupling
# add random rotation error to the full quadrupole
# random seed number, RMS value of the rotation angle
# of the quadrupole
ErrorCouplingFlag 0 0.0007
# coupling flag
# calcualte the coupling factor in the lattice
CouplingFlag
# calculate momentum acceptance for Touscheck lifetime
# Dim istart istop eminp emaxp nstepp eminn emaxn nstepn nturns zinitial
# Dim: 4D/6D tracking, default value is 6D
MomentumAccFlag momacctest.out 6D 1 189 0.01 0.05 100 -0.01 -0.05 100 1026 0.0002
# calculate phase space
# parameters are:
# 4D/6D dimension to track the phase space;
# x[m],x',y[m],y',delta,c*tau, Number of turns, flag to turn on/off
# damping during the tracking
PhaseSpaceFlag phasetest.out 6D 1e-6 0.0 1e-6 0.0 0.012 0.0 1000 false
###
### Touschek lifetime
###
# calculate Touschek lifetime
# name, flag
TouschekFlag
# Intra Beam Scattering
IBSFlag
# Track momentum acceptance and then get Touschek lifetime
TousTrackFlag