trick to rotate the beam distribution?

Moderators: cyao, michael_borland

Post Reply
gpark
Posts: 18
Joined: 07 Dec 2017, 13:15

trick to rotate the beam distribution?

Post by gpark » 20 Aug 2019, 17:09

I have a beam distribution in .sdds file. And I want to let this beam go through my lattice. But the distribution is 90 degree rotated relative to my complicated lattice setting and want to rotate the entire beam distribution by 90 (say, clockwise). Can I do it using sddsprocess? If so, how can I do it?

Thanks,
Gunn Tae

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

Re: trick to rotate the beam distribution?

Post by michael_borland » 01 Oct 2019, 18:58

Gunn Tae,

You can do this in elegant itself, by inserting a ROTATE element at the start of the beamline:
R1: ROTATE,TILT="pi 2 /"

If you want to do it externally, you can use sddsprocess:

Code: Select all

sddsprocess input.sdds inputRotated.sdds -define=col,y0,y -define=col,yp0,yp \
-redefine=col,y,x,units=m -redefine=col,yp,xp \
"-redefine=col,x,y chs,units=m" "-redefine=col,xp,yp chs"
--Michael

Post Reply