Page 1 of 1

Quadrupole wakefield

Posted: 26 Aug 2019, 06:24
by pestana
Hi,

I am trying to simulate two quadrupole wakefield sources in Elegant. I defined them like this:

SINSB05.UDCP100_quad: TRWAKE, INPUTFILE = "Wake_quadrupole.txt", TCOLUMN="t",WXCOLUMN="W", WYCOLUMN="W", FACTOR=1, N_BINS = 0, X_DRIVE_EXPONENT=0, Y_DRIVE_EXPONENT=0, X_PROBE_EXPONENT=1, Y_PROBE_EXPONENT=1

where Wake_quadrupole.txt is a file from ECHO.

I would like to have the second source rotated by 90 degrees from the first one. How can I set this?

Many thanks,
Rita

Re: Quadrupole wakefield

Posted: 01 Oct 2019, 19:01
by michael_borland
Rita,

Since you gave the same column name for WxColumn and WyColumn, I'm not sure what it means to rotate this 90 degrees.

However, you can always bracket any element with ROTATE elements, e.g.,

Code: Select all

TRW1: TRWAKE,...
R1: ROTATE,TILT="pi 2 /"
R2: ROTATE,TILT="pi -2 /"
TRW1R: line=(R1,TRW1,R2)
--Michael