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
Radia kickmap
Moderators: cyao, michael_borland
Radia kickmap
- Attachments
-
- kickmap2sdds.txt
- remove the txt extension and change the mode to executable.
- (2.4 KiB) Downloaded 312 times
-
- W90v5_pole80mm_finemesh_7m.txt
- (71.49 KiB) Downloaded 313 times
-
- W90v5_pole80mm_7m-x.sdds
- (42.21 KiB) Downloaded 303 times
Last edited by wguo on 24 Jul 2008, 10:39, edited 2 times in total.
attachement files
The maximum allowed number of attachment is 3, so I attached them here.
Weiming
Weiming
- Attachments
-
- kickmap2sdds.txt
- These two files are tck/sdds command files. Remove the txt file extension and change the mode to executable.
- (2.4 KiB) Downloaded 296 times
-
- DWkickmap.txt
- (2.96 KiB) Downloaded 300 times
Last edited by wguo on 24 Jul 2008, 10:39, edited 1 time in total.
-
- Posts: 1959
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: Radia kickmap
Weiming,
Thanks for posting this. I'm planning to include a built-in kick-map element in elegant in the next release.
Also, it should be possible to have elegant compute the matrix for the SCRIPT element using tracking, as it does with CWIGGLER.
--Michael
Thanks for posting this. I'm planning to include a built-in kick-map element in elegant in the next release.
Also, it should be possible to have elegant compute the matrix for the SCRIPT element using tracking, as it does with CWIGGLER.
--Michael
Re: Radia kickmap
Michael,
Could you add synchron radiation loss to ukickmap as what you did to Wiggler and Cwiggler? I guess you have similar subroutines.
Weiming
Could you add synchron radiation loss to ukickmap as what you did to Wiggler and Cwiggler? I guess you have similar subroutines.
Weiming
-
- Posts: 1959
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: Radia kickmap
Weiming,
It's a good suggestion. I should be able to get this into the next release.
--Michael
It's a good suggestion. I should be able to get this into the next release.
--Michael