Skip to content
Snippets Groups Projects
example_input.prm 5.44 KiB
Newer Older
zhang's avatar
zhang committed
#*******************************************************************
# 15 March 2010
# File for checking TRacy is running well
#
# input script to set the file and bool flag
#
#  comments:
zhang's avatar
zhang committed
# 1) The rules to define commands are described in the tracy mannual.
zhang's avatar
zhang committed
#
zhang's avatar
zhang committed
# 2) Test verison for the development of Tracy 3, always the nearest
zhang's avatar
zhang committed
#        input file verison.
#
zhang's avatar
zhang committed
#                     12/2011    Jianfeng Zhang 
zhang's avatar
zhang committed
#
#******************************************************************
zhang's avatar
zhang committed
#================================================
# mandatory parts
#================================================

zhang's avatar
zhang committed
# relative directory of the files in the script
zhang's avatar
zhang committed
# in_dir /home/zhang/codes/TracyIII/lattice/   
in_dir ./
zhang's avatar
zhang committed

# 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

zhang's avatar
zhang committed
#======================================
zhang's avatar
zhang committed
# GLOBAL PARAMETER PART
zhang's avatar
zhang committed
#======================================

zhang's avatar
zhang committed
# Activate quadrupole Fringefield
 QuadFringeOnFlag 

zhang's avatar
zhang committed
# Deactivate quadrupole Fringefield
  QuadFringeOffFlag
zhang's avatar
zhang committed

# 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
  RFvoltageFlag   3000000

zhang's avatar
zhang committed
#======================================
#specific for SOLEIL lattice
#======================================
zhang's avatar
zhang committed

zhang's avatar
zhang committed
# read the multipole field error, and add 
# the corresponding components of the element
 # multipole_file multipole_error_fullquad.dat
# files for looking for the multipole field errors of 
# correctors and skew quadrupoles, which are integrated in the sextupoles
 # fic_hcorr corh.txt
 # fic_vcorr corv.txt
 # fic_skew  corqt.txt
zhang's avatar
zhang committed

zhang's avatar
zhang committed
 # ReadMultipoleFlag  
zhang's avatar
zhang committed


zhang's avatar
zhang committed
# file of source of coupling; only works for SOLEIL lattice
  #virtualskewquad_file   virtual_skew_quad_currents.txt 
zhang's avatar
zhang committed

zhang's avatar
zhang committed
#### Virtual Skew quadrupole FACTORY
# read the virtual setting of skew quadrupoles from a file
  #ReadVirtualSkewquadFlag 
zhang's avatar
zhang committed

zhang's avatar
zhang committed
# add random rotation error to the two half quadrupoles
# to introduce coupling into the lattice
  #ErrorCoupling2Flag   0  0.0007
zhang's avatar
zhang committed

zhang's avatar
zhang committed
# fit tune for the lattice with each quadrupole is cut into two pieces
# name, flag, tuned quadrople,tuned quadrople,targetnudx    targetnudz
  #FitTune4Flag     qp7a qp7b  qp9a qp9b  18.202 10.317
zhang's avatar
zhang committed

zhang's avatar
zhang committed
#=================================================
## general command (NOT machine dependent)
#=================================================  

# Read the multipole field errors, and replacement the corresponding components
# of the element.
  
  ReadfefileFlag   example_dip.fe

# read the misalignment error from a file 
zhang's avatar
zhang committed
  ReadaefileFlag    example.ae
zhang's avatar
zhang committed

zhang's avatar
zhang committed
#####################
zhang's avatar
zhang committed
#  orbit correction
  CODCorrectFlag

#parameters used to do orbit correction
zhang's avatar
zhang committed
# 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

zhang's avatar
zhang committed
#number of iterations for orbit correction, should NOT small than 1
n_orbit       5     
zhang's avatar
zhang committed
#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
zhang's avatar
zhang committed
  PrintCODFlag testcod.out
zhang's avatar
zhang committed

zhang's avatar
zhang committed
#print  coordinates tracking around COD at each element to a file 
 PrintTrackFlag  tracktest.out  0.001 0.000  0.0  0.0  0.0  0.0   50
zhang's avatar
zhang committed


# tune obtained by tracking
  TuneTracFlag   
zhang's avatar
zhang committed

zhang's avatar
zhang committed
# chromaticity obtained by tracking
  ChromTracFlag   

zhang's avatar
zhang committed
# fit tune for the lattice with full quadrupoles
zhang's avatar
zhang committed
  FitTuneFlag     q7 q9   18.202 10.317

# fit chromaticity
  FitChromFlag   sx9 sx10  2.0    2.6

zhang's avatar
zhang committed
# tune shift with amplitude 
  AmplitudeTuneShiftFlag nudxtest.out nudztest.out   50 30 516 0.035 0.02 0.0

# tune shift with energy
  EnergyTuneShiftFlag nudptest.out  31 1026 0.06 
zhang's avatar
zhang committed

zhang's avatar
zhang committed
# frequency map analysis for on momentum particle
zhang's avatar
zhang committed
 FmapFlag  fmaptest.out 31 21 516 0.025 0.005 0.0 true

zhang's avatar
zhang committed
# frequency map analysis for off momentum particle
zhang's avatar
zhang committed
 FmapdpFlag  fmapdptest.out 101 121 1026 25e-3 0.06 0.3e-3 true

zhang's avatar
zhang committed

zhang's avatar
zhang committed
# add random rotation error to the full quadrupole
zhang's avatar
zhang committed
# to introduce coupling into the lattice
zhang's avatar
zhang committed
  ErrorCouplingFlag   0  0.0007
zhang's avatar
zhang committed

# calcualte the coupling factor in the lattice 
zhang's avatar
zhang committed
  CouplingFlag  

zhang's avatar
zhang committed
# calculate momentum acceptance 
  MomentumAccFlag momacctest.out  6D 1 189 0.01 0.05 100 -0.01 -0.05 100 1026  0.0002
zhang's avatar
zhang committed

# calculate phase space
  PhaseSpaceFlag phasetest.out 6D 1e-6 0.0 1e-6 0.0 0.012 0.0 1000 false


zhang's avatar
zhang committed
#===============================================
### OTHER (for debug ......)
#===============================================
# calculate induced amplitude
#  InducedAmplitudeFlag  

# specific for test
 # CodeComparaisonFlag  

# calculate Eta function
 # EtaFlag  

zhang's avatar
zhang committed

zhang's avatar
zhang committed
#================================================
#        TO BE UPDATED
#===============================================
zhang's avatar
zhang committed

### Touschek lifetime
# calculate Touschek lifetime
zhang's avatar
zhang committed
#  TouschekFlag 
zhang's avatar
zhang committed
# Intra Beam Scattering
zhang's avatar
zhang committed
#  IBSFlag  
zhang's avatar
zhang committed
# Track momentum acceptance and then get Touschek lifetime
zhang's avatar
zhang committed
#  TousTrackFlag 

# print girder
#PrintGirderFlag testgirder.out