Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Round dipole #259

Open
SchroederSa opened this issue Sep 3, 2024 · 6 comments
Open

Round dipole #259

SchroederSa opened this issue Sep 3, 2024 · 6 comments

Comments

@SchroederSa
Copy link

Hi,

A question:

Is there a way to simulate a round pole dipole?

Best
Sarah

Screenshot 2024-09-02 at 6 17 35 PM
@sergey-tomin
Copy link
Collaborator

Hi, I didn’t know that such magnets exist. What are they used for? do you have a reference?
Just looking at the geometry, I would assume it has an edge quadrupole and sextuple components. Isn’t that the case?
If we’re talking about linear optics, I assume you can calculate the position of the ideal beam and find the beta angles (as shown in the picture you attached), which would give you the linear matrix. To track the beam through the magnet, we’d need to implement the R and T matrices if you have them, or alternatively, you can use the RK integrator embedded in Ocelot.

@st-walker
Copy link
Collaborator

st-walker commented Sep 3, 2024

Can something similar and relatively simple be achieved with sbend and h_pole1/h_pole2 perhaps?

@sergey-tomin
Copy link
Collaborator

You’re right. I forgot that it’s already included. Although I have never used it.
It is in docstring in ocelot.
h_pole1 - the curvature (1/r) of the entrance face
h_pole2 - the curvature (1/r) of the exit face

@SchroederSa
Copy link
Author

SchroederSa commented Sep 3, 2024

Thanks for your quick help.

We use such a dipole as an electron spectrometer. References would be:

https://escholarship.org/uc/item/98h5r889

If I understand it correctly, such a design minimises edge focusing. The beam enters and exits the pole at the exact same angle.

@st-walker
Copy link
Collaborator

I only very briefly looked at the paper, fig 3 shows this "wedge" magnet, I guess this is same as using h_pole1/hpole_2 in ocelot. So I suppose it's different to a truly round magnet.

Instead, can you just take the matrix in Equation 5 and use ocelot.cpbd.element.Matrix?

@SchroederSa
Copy link
Author

The paper discusses two dipoles, a round one and a wedged (Pacman) dipole.

Thanks for your help and ideas, I will give it a try and report. I have never used the Matrix element, I will take a look - thanks!

Sarah

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants