Radia kickmap
Posted: 24 Jul 2008, 09:01
Radia kickmap is really simple in terms of scripting. I implemented the method into Elegant by using a SCRIPT element. In the lte file, the script element is defined as
DWSCRIPT: SCRIPT,COMMAND="./DWkickmap -input %i -output %o -Bmax %np0 -kickmapFile %sp0",&
verbosity=1,NP0=1.0, SP0="W90v5_pole80mm_finemesh_7m-x.sdds", KEEP_FILES=1,use_csh=0
Then I inserted this element to the lattice at the center of the straight section.
Tracking through the kick map is realized by the script DWkickmap, which is attached to this message.
DWkickmap needs four parameters, the input file, output file, Bmax, and the kickmap file. Bmax (0~1) is a scaling factor for the map. It can be interpreted as the relative field strength while the gap of the ID varies. The kickmap file is an sdds file. Another script, kickmap2sdds is also attached, which converts a typical text kickmap file (see the attachment) into sdds format.
Unfortunately at this stage the SCRIPT command works only for tracking. It is treated as a drift space when lattice functions are calculated. It would be nice if it will be upgraded into a normal element.
Weiming
DWSCRIPT: SCRIPT,COMMAND="./DWkickmap -input %i -output %o -Bmax %np0 -kickmapFile %sp0",&
verbosity=1,NP0=1.0, SP0="W90v5_pole80mm_finemesh_7m-x.sdds", KEEP_FILES=1,use_csh=0
Then I inserted this element to the lattice at the center of the straight section.
Tracking through the kick map is realized by the script DWkickmap, which is attached to this message.
DWkickmap needs four parameters, the input file, output file, Bmax, and the kickmap file. Bmax (0~1) is a scaling factor for the map. It can be interpreted as the relative field strength while the gap of the ID varies. The kickmap file is an sdds file. Another script, kickmap2sdds is also attached, which converts a typical text kickmap file (see the attachment) into sdds format.
Unfortunately at this stage the SCRIPT command works only for tracking. It is treated as a drift space when lattice functions are calculated. It would be nice if it will be upgraded into a normal element.
Weiming