CLEAN in Pelegant

Moderators: cyao, michael_borland

ding
Posts: 53
Joined: 30 Jul 2008, 12:36

CLEAN in Pelegant

Post by ding » 20 Apr 2011, 12:48

Hello,

I noticed that if I set CLEAN such as CLEAN, DELTALIMIT =1.5, it won't work with Pelegant, though works well in Elegant. However, put a larger number like CLEAN, DELTALIMIT=1.8 it works. I am confused with it.

thanks,
Yuantao

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

Re: CLEAN in Pelegant

Post by michael_borland » 21 Apr 2011, 07:58

Yuantao,

Can you post some files that show the problem so I can test it more easily?

Thanks--Michael

ding
Posts: 53
Joined: 30 Jul 2008, 12:36

Re: CLEAN in Pelegant

Post by ding » 21 Apr 2011, 17:32

Michael,

while I set up a very simple example, it works for both elegant and Pelegant. I need some time to look into it first before asking help again.

thanks,
Yuantao

ding
Posts: 53
Joined: 30 Jul 2008, 12:36

Re: CLEAN in Pelegant

Post by ding » 27 May 2011, 13:52

Hi Michael,

I uploaded an example, where RCOL is used in the middle of the chicane. When run Pelegant, i can have output at the location after the RCOL, and also at the end of the chicane. But actually the Charge parameter was not correct in the watchout files (still 20pC as before collimation). But after that, it won't continue to run into the following linacs. This is similar with CLEAN element I met. When there is a large amount of particle loss, it seems Pelegant has problems.

For the same setup runing with Elegant, everything works correctly.

thanks,
Yuantao
Attachments
LCLS.lte
lattice file
(10.12 KiB) Downloaded 1306 times
LCLS.ele
ele file
(1.42 KiB) Downloaded 1259 times
BC1BEG.out
input beam file
(707.08 KiB) Downloaded 1262 times

ywang25
Posts: 52
Joined: 10 Jun 2008, 19:48

Re: CLEAN in Pelegant

Post by ywang25 » 31 May 2011, 08:34

Yuntao,

Can you upload the wake files:
ZWAKEFILE="/afs/slac.stanford.edu/u/rl/ding/elegant/wakefiles/Sz_p05um_10mm.sdds", &
TRWAKEFILE="/afs/slac.stanford.edu/u/rl/ding/elegant/wakefiles/Sx_p05um_10mm.sdds", &
ZWAKEFILE="/afs/slac.stanford.edu/u/rl/ding/elegant/wakefiles/Sz_p05um_10mm.sdds", &
TRWAKEFILE="/afs/slac.stanford.edu/u/rl/ding/elegant/wakefiles/Sx_p05um_10mm.sdds", &

Thanks,

Yusong

ywang25
Posts: 52
Joined: 10 Jun 2008, 19:48

Re: CLEAN in Pelegant

Post by ywang25 » 31 May 2011, 08:53

Yuntao,

I realized you were using the AFS file system. Please be aware the AFS is not listed as a supported file system for parallel I/O, which is required for the latest version of Pelegant.

You can see previous discussions at:
viewtopic.php?f=18&t=161&p=583&hilit=afs#p583

Yusong

ding
Posts: 53
Joined: 30 Jul 2008, 12:36

Re: CLEAN in Pelegant

Post by ding » 31 May 2011, 11:37

Hi Yusong,

You may try with this uploaded lte file, where I removed the wakes. If I also remove the LSC, then it works. It looks to me Wakes or LSC will cause trouble, and they are both related with Charge.

I realized I can not work Pelegant on AFS for writing purpose. So I work with NFS, and only these wake files are saved in AFS space for read only. Without the CLEAN of RCOL element it works fine in my NFS.
thanks,
Yuantao
Attachments
LCLS.lte
new .LTE file without wake files
(9.62 KiB) Downloaded 1286 times

ywang25
Posts: 52
Joined: 10 Jun 2008, 19:48

Re: CLEAN in Pelegant

Post by ywang25 » 01 Jun 2011, 13:15

Yuantao,

You can use the attached file to replace the file under the elegant directory for the version 24.0 to fix the charge issue. The problem is caused by the delay of updating the total particle number across all the processors for minimizing communication overhead. The incorrect charge happens only in the intermediate output files and it would not affect the correctness of the final output. Unless you use the intermediate output file as the input of the next step, it should not cause a problem. Let me know if you find other issues.

Yusong
Attachments
do_tracking.c
(156.05 KiB) Downloaded 1327 times

ding
Posts: 53
Joined: 30 Jul 2008, 12:36

Re: CLEAN in Pelegant

Post by ding » 01 Jun 2011, 13:37

Thank you Yusong. Do I need to re-compile the Pelegant after replacing the file?
Yuantao

ywang25
Posts: 52
Joined: 10 Jun 2008, 19:48

Re: CLEAN in Pelegant

Post by ywang25 » 01 Jun 2011, 13:43

You do need recompile the code. The fix I just provided should only affect the watch point output file. I will provide a better fix soon.

Yusong
Last edited by ywang25 on 01 Jun 2011, 14:41, edited 1 time in total.

Post Reply