Radia kickmap

Moderators: cyao, michael_borland

Post Reply
wguo
Posts: 41
Joined: 13 Jun 2008, 12:54

Radia kickmap

Post by wguo » 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
Attachments
kickmap2sdds.txt
remove the txt extension and change the mode to executable.
(2.4 KiB) Downloaded 246 times
W90v5_pole80mm_finemesh_7m.txt
(71.49 KiB) Downloaded 236 times
W90v5_pole80mm_7m-x.sdds
(42.21 KiB) Downloaded 233 times
Last edited by wguo on 24 Jul 2008, 10:39, edited 2 times in total.

wguo
Posts: 41
Joined: 13 Jun 2008, 12:54

attachement files

Post by wguo » 24 Jul 2008, 09:18

The maximum allowed number of attachment is 3, so I attached them here.


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 221 times
DWkickmap.txt
(2.96 KiB) Downloaded 220 times
Last edited by wguo on 24 Jul 2008, 10:39, edited 1 time in total.

michael_borland
Posts: 1933
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: Radia kickmap

Post by michael_borland » 24 Jul 2008, 10:31

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

wguo
Posts: 41
Joined: 13 Jun 2008, 12:54

Re: Radia kickmap

Post by wguo » 29 Sep 2008, 10:24

Michael,

Could you add synchron radiation loss to ukickmap as what you did to Wiggler and Cwiggler? I guess you have similar subroutines.


Weiming

michael_borland
Posts: 1933
Joined: 19 May 2008, 09:33
Location: Argonne National Laboratory
Contact:

Re: Radia kickmap

Post by michael_borland » 29 Sep 2008, 13:25

Weiming,

It's a good suggestion. I should be able to get this into the next release.

--Michael

Post Reply