<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:"Malgun Gothic";
        panose-1:2 11 5 3 2 0 0 2 0 4;}
@font-face
        {font-family:"\@Malgun Gothic";}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
        {mso-style-priority:34;
        margin-top:0in;
        margin-right:0in;
        margin-bottom:0in;
        margin-left:.5in;
        font-size:10.0pt;
        font-family:"Calibri",sans-serif;}
span.EmailStyle20
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
/* List Definitions */
@list l0
        {mso-list-id:1827739716;
        mso-list-template-ids:460632142;}
@list l1
        {mso-list-id:1880043723;
        mso-list-type:hybrid;
        mso-list-template-ids:1355461586 1231355214 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l1:level1
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level2
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level3
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l1:level4
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level5
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level6
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
@list l1:level7
        {mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level8
        {mso-level-number-format:alpha-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:left;
        text-indent:-.25in;}
@list l1:level9
        {mso-level-number-format:roman-lower;
        mso-level-tab-stop:none;
        mso-level-number-position:right;
        text-indent:-9.0pt;}
ol
        {margin-bottom:0in;}
ul
        {margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="#0563C1" vlink="#954F72" style="word-wrap:break-word">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt">Hi Scott,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">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!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Thanks again, Scott!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Cheers!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Ryan<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal" style="margin-bottom:12.0pt"><b><span style="font-size:12.0pt;color:black">From:
</span></b><span style="font-size:12.0pt;color:black">Berg, J Scott <jsberg@bnl.gov><br>
<b>Date: </b>Monday, July 18, 2022 at 2:48 PM<br>
<b>To: </b>Ryan Bodenstein <ryanmb@jlab.org>, ffa_cebaf_collab@jlab.org <ffa_cebaf_collab@jlab.org><br>
<b>Subject: </b>[EXTERNAL] RE: EM Spreader Layout<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt">Hi Ryan,<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">-Scott<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> <o:p></o:p></span></p>
<div style="border:none;border-left:solid blue 1.5pt;padding:0in 0in 0in 4.0pt">
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span style="font-size:11.0pt">From:</span></b><span style="font-size:11.0pt"> FFA_CEBAF_Collab <ffa_cebaf_collab-bounces@jlab.org>
<b>On Behalf Of </b>Ryan Bodenstein via FFA_CEBAF_Collab<br>
<b>Sent:</b> Monday, July 18, 2022 8:12 AM<br>
<b>To:</b> ffa_cebaf_collab@jlab.org<br>
<b>Subject:</b> [FFA_CEBAF_Collab] EM Spreader Layout<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><span style="font-size:11.0pt"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">G’morning Colleagues, and Happy Monday!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">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:
<a href="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$">
Spreader</a>. But if the link doesn’t work, please just check the repository.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">A few notes:<o:p></o:p></span></p>
<ol style="margin-top:0in" start="1" type="1">
<li class="MsoListParagraph" style="margin-left:0in;mso-list:l1 level1 lfo3"><span style="font-size:11.0pt">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).<o:p></o:p></span></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l1 level1 lfo3"><span style="font-size:11.0pt">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.<o:p></o:p></span></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l1 level1 lfo3"><span style="font-size:11.0pt">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.<o:p></o:p></span></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l1 level1 lfo3"><span style="font-size:11.0pt">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.<o:p></o:p></span></li><li class="MsoListParagraph" style="margin-left:0in;mso-list:l1 level1 lfo3"><span style="font-size:11.0pt">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.<o:p></o:p></span></li></ol>
<p class="MsoNormal"><span style="font-size:11.0pt"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Any and all advice and feedback welcome! Have a great week!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Cheers!<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Ryan<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt"> <o:p></o:p></span></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt">Dr. Ryan Bodenstein (he/him)<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt">Staff Scientist II – Center for Advanced Study of Accelerators (CASA)<o:p></o:p></span></p>
<p class="MsoNormal" align="center" style="text-align:center"><span style="font-size:11.0pt"><img border="0" width="403" height="88" style="width:4.1979in;height:.9166in" id="Picture_x0020_1" src="cid:image001.jpg@01D89AB4.C0E40770" alt="signature_3177692690"><o:p></o:p></span></p>
<p class="MsoNormal" align="center" style="text-align:center"><span style="font-size:11.0pt">12000 Jefferson Avenue<o:p></o:p></span></p>
<p class="MsoNormal" align="center" style="text-align:center"><span style="font-size:11.0pt">Newport News, VA 23606<o:p></o:p></span></p>
<p class="MsoNormal" align="center" style="text-align:center"><span style="font-size:11.0pt">United States of America<o:p></o:p></span></p>
</div>
</div>
</div>
</div>
</body>
</html>