Scanning parameters of a bunched_beam

Moderators: cyao, michael_borland

Post Reply
Björklund
Posts: 84
Joined: 19 May 2016, 07:14

Scanning parameters of a bunched_beam

Post by Björklund » 25 Mar 2021, 04:58

Hi folks,

Maybe there's something obvious I'm missing, but I haven't been able to find a way to automatize the scanning of parameters of a @bunched_beam the way you can scan for example the strength of a magnet with @vary_element; in my application I want to scan the angular centroids in x and y.

Is there a simple way to do this?
Best regards,
Jonas Björklund Svensson

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

Re: Scanning parameters of a bunched_beam

Post by michael_borland » 25 Mar 2021, 11:57

Jonas,

If you want to scan the initial centroids, you can insert a MALIGN element at the start of the beamline and vary the DX, DXP, DY, DYP parameters.

--Michael

Björklund
Posts: 84
Joined: 19 May 2016, 07:14

Re: Scanning parameters of a bunched_beam

Post by Björklund » 25 Mar 2021, 12:24

Hi Michael,

That is indeed such a simple solution that I'm looking for, thanks! :) I had totally missed that element.

EDIT:
Follow-up question: can I use the vary_element function to perform a 2D scan, of dxp and dyp in this case?

- Jonas

Post Reply