Constrains inside Quadrupole?

Moderators: cyao, michael_borland

Post Reply
PCaminal
Posts: 15
Joined: 02 Nov 2017, 12:26

Constrains inside Quadrupole?

Post by PCaminal » 08 Dec 2017, 06:52

Hi all,

is there any way to constrain the Twiss parameters INSIDE a quadrupole?

Thanks a lot in advance!
Cheers,
Pau Gonzalez

PCaminal
Posts: 15
Joined: 02 Nov 2017, 12:26

Re: Constrains inside Quadrupole?

Post by PCaminal » 08 Dec 2017, 11:47

I mean, I know that you could define a quadrupole which is the half of the width and put a mark in between. So, if I want a quadrupole with a total width of 0.25 m, I would do:

in the .ele file:
...
Q1: QUAD,L=0.125,K1=-0.5397597812035915
M1: MARK, FITPOINT=1
...

and in the .lte file:
...
BLINE: LINE=(...Q1,M1,Q1, ...
...

But is this the best solution to do that?
Thanks a lot in advance, again!
Cheers,
Pau

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

Re: Constrains inside Quadrupole?

Post by michael_borland » 08 Dec 2017, 12:50

Pau,

Splitting the quadrupole is the only way to do this in elegant.

--Michael

Post Reply