[FFA_CEBAF_Collab] EM Spreader Layout

Ryan Bodenstein ryanmb at jlab.org
Mon Jul 18 16:42:53 EDT 2022


Thanks Scott!

I’ll start with the last point first: the magnet values are calculated through the geometry, essentially. In the spreadsheet, you set the heights, energy, etc (everything in yellow), and then the blue parts are calculated based on the geometry and the beam/field interactions. Then, in the next tab (3rd pass), the calculated values like B field must remain the same (in grey). And the calculations continue from there.

As far as getting these into BMAD, it may require me to manually write it in the end. Or at least translate, then adjust by hand heavily. However, once I do so, I will do so using your patch method and the multipass feature.

I got some good feedback from Jay regarding some magnet lengths and strengths, and I’ll be iterating with that feedback. While I’m doing it, I’ll keep this information in mind as well, so I can better translate it.

Thanks again!
Ryan

From: Berg, J Scott <jsberg at bnl.gov>
Date: Monday, July 18, 2022 at 4:27 PM
To: Ryan Bodenstein <ryanmb at jlab.org>, ffa_cebaf_collab at jlab.org <ffa_cebaf_collab at jlab.org>
Subject: [EXTERNAL] RE: EM Spreader Layout
The ideal way you would handle this in Bmad would be using its multipass feature, which means there would be only one definition of any magnet. So how would that work? For a rectangular magnet like MAQ1S01, you would declare the line up through MAQS01 to be multipass, and make MAQS01 have no bend angle but a nonzero field. Then the first pass orbit comes out at some nonzero coordinate and angle, and you introduce a patch element (which is not multipass) to reset the phase space coordinates.  Alternatively make the angle match its field and use an edge angle, and avoid the patch for the first pass (but you won’t avoid one for later passes, and you’ll have to calculate the arc length). When you come through on the second pass, you go through the same multipass line (up through MAQS01), and now you have a coordinate patch for the second pass (a different one than for the first pass) that resets the phase space coordinates for the second pass. The advantage of this is you have only one definition for each element, and you can even get things right with the gradient, for instance (which is ignored in the spreadsheet). Tao will do the geometry fitting that the spreadsheet does. Unfortunately that doesn’t translate back into other codes very well.

Are the magnet gradients measured values of some sort? They look somewhat random. Is there a known gradient-to-field ratio for each magnet?

-Scott

From: Ryan Bodenstein <ryanmb at jlab.org>
Sent: Monday, July 18, 2022 2:55 PM
To: Berg, J Scott <jsberg at bnl.gov>; ffa_cebaf_collab at jlab.org
Subject: Re: EM Spreader Layout

Hi Scott,

Many thanks! Yes, the calculations take place on “the spreadsheet” of much fame. An older version is on the site, but I’ll attach the one used here. Please note: you have to allow for iterative calculations on the spreadsheet, or it won’t work. It’s also easy to mistype something and have everything go “wonky,” so back up frequently!

Regarding the magnet lengths, OptiM uses path length rather than steel length. So each pass through the same magnet will have a slightly different path length. It’s all calculated in the spreadsheet.

That said, I’ll also write everything up to better explain things. Regarding the translation to BMAD, you can export from OptiM to MAD8 or MADX, but it doesn’t quite do it right. So I’m trying to find the errors in that, then convert from MADX to BMAD. Right now, I’m close-ish, but the optics aren’t behaving at all like in OptiM, and I can’t quite figure out why.

Thanks again, Scott!
Cheers!
Ryan

From: Berg, J Scott <jsberg at bnl.gov<mailto:jsberg at bnl.gov>>
Date: Monday, July 18, 2022 at 2:48 PM
To: Ryan Bodenstein <ryanmb at jlab.org<mailto:ryanmb at jlab.org>>, ffa_cebaf_collab at jlab.org<mailto:ffa_cebaf_collab at jlab.org> <ffa_cebaf_collab at jlab.org<mailto:ffa_cebaf_collab at jlab.org>>
Subject: [EXTERNAL] RE: EM Spreader Layout
Hi Ryan,

Since you mentioned my name, I thought I would have a look through the files at least. My first observation there is that there are some auxiliary calculations that happened elsewhere that lead to some parameters in that file. A good example are lengths in MAQ1S01; each pass has a different length, and it’s not clear where those come from (analytic, fitting, field map calculation, etc.). So it would be good to have a writeup of where those numbers come from, or a procedure to get them, etc. That might also make it easier to know how to construct a Bmad version, where one uses a common magnet for MAQ1S01, for instance.

-Scott

From: FFA_CEBAF_Collab <ffa_cebaf_collab-bounces at jlab.org<mailto:ffa_cebaf_collab-bounces at jlab.org>> On Behalf Of Ryan Bodenstein via FFA_CEBAF_Collab
Sent: Monday, July 18, 2022 8:12 AM
To: ffa_cebaf_collab at jlab.org<mailto:ffa_cebaf_collab at jlab.org>
Subject: [FFA_CEBAF_Collab] EM Spreader Layout

G’morning Colleagues, and Happy Monday!

I have just uploaded some files for the NE Spreader to the file repository. They are in the Optics folder, in a new folder titles “Spreader.” This link should work as well: Spreader<https://urldefense.com/v3/__https:/jeffersonlab-my.sharepoint.com/:f:/r/personal/tristan_jlab_org/Documents/Grad*20Student*202019/Graduate*20Student*20Steering/CEBAF*20FFA*20Working*20Group/Optics/Spreader?csf=1&web=1&e=wAZhqJ__;JSUlJSUlJQ!!P4SdNyxKAPE!Fe2zlrICc2B8roIaArE9OxSJHUAjik53rwsj79En3YMzQM6Li5HCO-YGCOiRhopGsZiZRgF2ZPMSeogIcH68J1IGgQ$>. But if the link doesn’t work, please just check the repository.

A few notes:

  1.  These are all 4 of the EM spreaders for the NE corner. I haven’t done the FFA part yet (and will likely bother Scott a bit to do that part, since I have to know a bit of what requirements the splitter(s) will have).
  2.  These were performed in OptiM, and the conversion to MadX seems to have some odd hiccup (and therefore the conversion to BMAD as well). I’m working on that. For now, I’ve also uploaded the OptiMX installer for Windows (or Wine/Windows environment that you use). That way, you can run them as you wish, if you wish. But, I also put some .dat files in a subfolder that have some of the info you may need. If you need other info, let me know.
  3.  I’m still working on some other options as well. I’d like to drop the height of the first step in the first pass if possible, but I have to check clearances first. I also need to make sure the setup still fits in the z direction, but I think it does. For now, let’s call this Option 1, tentatively. There will be more, but this should give us a good enough place to work from.
  4.  The optics will end up different, depending on what comes out of our linac choice(s). But for now, this is a good approximation. I focused mainly on closing the dispersion and dispersion’, and just got the betas to be reasonable, but not matched to any specific value. None of the magnets are maxed out (Jay – feel free to correct me if I’m wrong there!), so there should still be some flexibility built in.
  5.  For now (relevant to the JLab folks who know our system), don’t assume the names of the magnets are correct. I iterated magnet names in my own way, and some of them don’t reflect the names of a real magnet. It was for my own book keeping.

Any and all advice and feedback welcome! Have a great week!

Cheers!
Ryan

Dr. Ryan Bodenstein (he/him)
Staff Scientist II – Center for Advanced Study of Accelerators (CASA)
[signature_3177692690]
12000 Jefferson Avenue
Newport News, VA 23606
United States of America
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.jlab.org/pipermail/ffa_cebaf_collab/attachments/20220718/242edce2/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 69011 bytes
Desc: image001.jpg
URL: <https://mailman.jlab.org/pipermail/ffa_cebaf_collab/attachments/20220718/242edce2/attachment-0001.jpg>


More information about the FFA_CEBAF_Collab mailing list