Hello to all,
I am trying to use sddsmatchtwiss and maybe I misunderstood how it works. I understood that it is changing the particle distribution to have a given projected beta and alpha.
I used it like this:
sddsmatchtwiss Linear_post.sdds Matched.sdds -xPlane=beta=22,alpha=1.997674 -yPlane=beta=22,alpha=1.997674
To check what I get I do:
elegant2genesis Matched.sdds test.txt -slice=200 -TotalCharge=200e-12
sddsplot test.txt -col=s,alphax
This is what I obtain: see attached plot
sddsanalyzebeam Matched.sdds aa.txt
sddsprintout aa.txt -col=alphax
and I get exactly what I set with sddsmatchtwiss
Printout for SDDS file aa.txt
alphax
---------------
1.997674e+00
Am I doing anything wrong? This is an extreme bunch (alpha very high), but I checked also with a beam with alpha ~1-2 and I have the same problem.
Thanks in advance,
Simona.
sddsmatchtwiss question
Moderators: cyao, michael_borland
-
- Posts: 45
- Joined: 06 Jul 2011, 03:14
sddsmatchtwiss question
- Attachments
-
- Linear_post.sdds
- (294.35 KiB) Downloaded 182 times
-
- Matched.sdds
- (294.35 KiB) Downloaded 171 times
-
- Out.png (11.11 KiB) Viewed 1807 times
-
- Posts: 45
- Joined: 06 Jul 2011, 03:14
Re: sddsmatchtwiss question
Hi,
Now it's fine.
Thanks in any case,
Simona.
Now it's fine.
Thanks in any case,
Simona.