Page 1 of 1

Attaching apertures to elements

Posted: 26 Nov 2008, 08:28
by fliller
Mike,

I would like to take a lattice with apertures, add errors to the lattice and have the apertures move with the elements (for example if I set dx=1mm, I'd like the aperture xCenter to move 1mm). Currently I do have an aperture file that I can use, but I don't know how to move the xCenter with the elements without writing a script. Is there a way to do this in elegant?? If not, can I make a feature request to make XHalfAperture and yHalfAperture to be element parameters or some equivalent?

Re: Attaching apertures to elements

Posted: 26 Nov 2008, 13:18
by michael_borland
Ray,

I can't think of a good way to do this while using the aperture file to specify the apertures. If you are willing to insert RCOL or ECOL elements in the lattice instead, then you can use link_elements to link the DX and DY values of the apertures to the quadrupoles.

It is probably not that hard to upgrade elegant to give elements the ability to "drag" the aperture around. I'll put it on my list of things to add.

--Michael

Re: Attaching apertures to elements

Posted: 26 Nov 2008, 16:17
by fliller
Michael,

Thanks. It works. Messy, but it works.

Ray