double gaussian
Moderators: cyao, michael_borland
double gaussian
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
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
-
- Posts: 2008
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: double gaussian
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
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
Re: double gaussian
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
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 765 times
-
- Posts: 2008
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: double gaussian
Charles,
I plotted the data at watch point XPROBE, at it seems to show a reasonable correlation. See attached.
--Michael
I plotted the data at watch point XPROBE, at it seems to show a reasonable correlation. See attached.
--Michael
Re: double gaussian
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
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
-
- Posts: 2008
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: double gaussian
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
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
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
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
-
- Posts: 2008
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: double gaussian
Charles,
It is probably easiest if you post your files.
--Michael
It is probably easiest if you post your files.
--Michael
Re: double gaussian
Dear Michael,
I have attached the files. The runScript runs and gives the plot we are looking for. Keeping my fingers crossed..
regards,
Charles
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 764 times
-
- Posts: 2008
- Joined: 19 May 2008, 09:33
- Location: Argonne National Laboratory
- Contact:
Re: double gaussian
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
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