Page 1 of 2
double gaussian
Posted: 23 Nov 2010, 12:33
by jtobin
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
Re: double gaussian
Posted: 23 Nov 2010, 12:47
by michael_borland
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
Re: double gaussian
Posted: 23 Nov 2010, 15:02
by jtobin
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
Re: double gaussian
Posted: 23 Nov 2010, 18:02
by michael_borland
Charles,
I plotted the data at watch point XPROBE, at it seems to show a reasonable correlation. See attached.
--Michael
Re: double gaussian
Posted: 24 Nov 2010, 11:56
by jtobin
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
Re: double gaussian
Posted: 24 Nov 2010, 18:18
by michael_borland
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
Re: double gaussian
Posted: 29 Nov 2010, 11:58
by jtobin
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
Re: double gaussian
Posted: 29 Nov 2010, 17:58
by michael_borland
Charles,
It is probably easiest if you post your files.
--Michael
Re: double gaussian
Posted: 30 Nov 2010, 12:36
by jtobin
Dear Michael,
I have attached the files. The runScript runs and gives the plot we are looking for. Keeping my fingers crossed..
regards,
Charles
Re: double gaussian
Posted: 30 Nov 2010, 17:35
by michael_borland
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