double gaussian

Moderators: cyao, michael_borland

jtobin
Posts: 47
Joined: 23 Jul 2008, 15:00

double gaussian

Post by jtobin » 23 Nov 2010, 12:33

dear elegant folks,
I want to generate two Gaussian bunches with rms bunchlength (sigma1) and (sigma2) separated in time by delta_t. Is there a way to do this in elegant? This will be great for me.

regards,
Charles

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

Re: double gaussian

Post by michael_borland » 23 Nov 2010, 12:47

Charles,

Yes, this is possible. Please see attached. On windows machines, you might have to remove the sddscombine command from the .ele file and put it in the runScript.

--Michael
Attachments
doubleBeam1.tar
(10 KiB) Downloaded 889 times

jtobin
Posts: 47
Joined: 23 Jul 2008, 15:00

Re: double gaussian

Post by jtobin » 23 Nov 2010, 15:02

Thank you michael.
I generated the double pulse. I start with a momentum chirp on each of those "bunches" but when i go through the dogleg the modulation in z is not mapped onto x.


I am attaching the file(s) for your perusal. Am I missing something? Seems to me the action in z-E and x-y are somehow totally independent.

regards,
Charles
Attachments
files.tgz
A0 Xchngr.ele = main file; run.ele= I modified it to have a finite beam size. runScript= generates the double pulse. rest is the lattice file and the support file
(3.11 KiB) Downloaded 764 times

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

Re: double gaussian

Post by michael_borland » 23 Nov 2010, 18:02

Charles,

I plotted the data at watch point XPROBE, at it seems to show a reasonable correlation. See attached.

--Michael
Attachments
xprobe.png

jtobin
Posts: 47
Joined: 23 Jul 2008, 15:00

Re: double gaussian

Post by jtobin » 24 Nov 2010, 11:56

Dear Michael,
When i execute: sddsplot -col=t,p A0_Xchgr.Xprobe i get the following, which is different from what you seem to have got?
I dont understand what is going on?
btw, what is the command you used to plot...(i like the plot!)
regards,
Charles
Attachments
toforum.JPG

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

Re: double gaussian

Post by michael_borland » 24 Nov 2010, 18:18

Charles,

I think you may not be properly combining the two files to make the new beam file, since it appears that you are tracking the two sub-bunches separately. Be sure you have the "-merge" option on sddscombine.

The plot command is
sddsplot -col=t,p A0_Xchgr.XProbe -graph=dot,vary -order=spect -split=column=x -title=@PreviousElementName

--Michael

jtobin
Posts: 47
Joined: 23 Jul 2008, 15:00

Re: double gaussian

Post by jtobin » 29 Nov 2010, 11:58

Dear Michael,
I have tried sddscombine with the merge option. But it does not seem to make any difference. I still get the same plot. I don't get what you see at XProbe. I tried to remove the merge option and it has the same result. I can post the files if you want...Is there anything else you want me to check?

regards,
Charles

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

Re: double gaussian

Post by michael_borland » 29 Nov 2010, 17:58

Charles,

It is probably easiest if you post your files.

--Michael

jtobin
Posts: 47
Joined: 23 Jul 2008, 15:00

Re: double gaussian

Post by jtobin » 30 Nov 2010, 12:36

Dear Michael,
I have attached the files. The runScript runs and gives the plot we are looking for. Keeping my fingers crossed..
regards,
Charles
Attachments
toforum.tgz
(3.08 KiB) Downloaded 763 times

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

Re: double gaussian

Post by michael_borland » 30 Nov 2010, 17:35

Charles,

I didn't see the runScript in the tar file. Can you repost with this file included? Also, if you can include the bunch.sdds file, that would help.

Thanks--Michael

Post Reply