3
AGS MODEL IN ZGOUBI RHIC RUN 13 POLARIZATION MODELING STATUS F. M´ eot, L. Ahrens, K. Brown, Y. Dutheil, J. Glenn, C. Harper, H. Huang, V. Ranjbar, T. Roser, V. Schoefer, N. Tsoupas, Collider-Accelerator Department, BNL, Upton, NY 11973, USA Abstract This paper gives a status of the AGS model in the ray- tracing code Zgoubi and its operation via the “AgsZgoubi- Model” and the “AgsModelViewer” applications available from the controls system application launcher, “StartUp”. Examples of typical uses and studies performed using these are included, as optics controls, spin matching to RHIC, etc. A companionpaper (MOPWA085) gives additional de- tails, regarding especially spin dynamics and polarization studies aimed at determining optimal AGS settings for po- larization during RHIC Run 13. This work is an additional step towards further combination with the already existing RHIC spin tracking model in Zgoubi, and AGS’s Booster model in Zgoubi, a promising suite for detailed beam and spin dynamics studies and optimizations. INTRODUCTION The modeling of the Alternating Gradient Synchrotron lattice, including optics and spin dynamics, is based on stepwise ray-tracing methods using Zgoubi [1]. Optics ac- count for two Siberian snakes simulated using their 3-D OPERA field maps, and possibly uses the 240 2-D field maps of the main magnets, as described in detail in earlier publications [2]-[7]. Recent studies aimed at determining optimal AGS settings for polarization during RHIC Run 13 are further detailed in a companion paper [8]. The present paper gives a status of this work, and examples of various possible applications. Table 1: “ZgoubiFromSnaprampCmd” At an arbitrary timing, or series of timings, in a cycle, (i) ZgoubiFromSnaprampCmd”reads magnet settings from an AGS “snapramp” : a snapramp is a photo of an AGS cycle, i.e., (a folder that houses) a series of files containing magnet currents vs. timing over that cycle, as well as orbit radius and other bumps. (ii) It then builds a “zgoubi.dat” input data file to Zgoubi, from an existing template. (iii) This “zgoubi.dat” problem is run, so producing outputs as closed orbits, optical functions, periodic spin n 0 vector, and possibly plots. Work supported by Brookhaven Science Associates, LLC under Con- tract No. DE-AC02-98CH10886 with the U.S. Department of Energy. ZGOUBI MODEL FROM SNAPRAMPS The model of the AGS in the ray-tracing code Zgoubi is now operational and used in optical and polarization stud- ies in the present RHIC Run 13. Not just an AGS operation tool however, it is in addition a research tool, as addressed below. The model can be launched from any shell termi- nal under linux/unix, via the command “ZgoubiFrom- SnaprampCmd”, see Table 1. Like the existing command “MadxFromSnaprampCmd”, the former produces “twiss” type of output files, formatted in exactly the same way as MADX ones, so making existing interfaces operational for both engines with minor additional work. In addition, two interfaces have been developed, as described hereafter, that both essentially execute “ZgoubiFromSnaprampCmd”. “AGSZGOUBIMODEL” This interface stands as an application in the AGS op- eration “StartUp” menu. It is an R&D tool, in continuous development. Its goal is to make user’s life easier in so- phisticated manipulations of the AGS Zgoubi model. Two examples for illustration, amongst other possibilities : Example 1. When producing a model of the AGS at particular timing(s) during a cycle, tunes (and chromatic- ities as well) will fall at some distance from measured tunes during that very cycle. The reason for that may be attributed to a lack of knowledge of the main mag- nets, due for instance to evolutions in shape and align- ment over the years, or to eddy currents during the ramp (this is still to be investigated). However it is necessary for betatron resonance studies, or spin dynamics studies, for instance, to have tight agreement between the model and the live machine. The way this is dealt with is by matching, varying the K1F and K1D gradient indices in the respectively focusing and defocusing main magnet fam- ilies. This variation is very small, within ±10 -3 , rel- ative, whatever the timing. “AgsZgoubiModel” will es- tablish the required (file-)links between measured (tunes, chromaticities) and “ZgoubiFromSnaprampCmd”, so that this operation of matching is automatic. This results in a “zgoubi.dat” file matched to the live AGS, ready for further dynamics studies. A typical outcome of such a manipula- tion is shown in Fig. 1. Similar consideration of automa- tion holds for orbit, dispersion, and measurements and their modeling. Proceedings of IPAC2013, Shanghai, China WEPEA082 04 Hadron Accelerators A04 Circular Accelerators ISBN 978-3-95450-122-9 2699 Copyright c 2013 by JACoW — cc Creative Commons Attribution 3.0 (CC-BY-3.0)

AGS Model in Zgoubi. RHIC Run 13 Polarization Modeling ...and the commercial XRT TM (from Quest Software) graph-ics plotting package. It interfaces to the AGSModelServer, which exists

  • Upload
    others

  • View
    1

  • Download
    0

Embed Size (px)

Citation preview

Page 1: AGS Model in Zgoubi. RHIC Run 13 Polarization Modeling ...and the commercial XRT TM (from Quest Software) graph-ics plotting package. It interfaces to the AGSModelServer, which exists

AGS MODEL IN ZGOUBIRHIC RUN 13 POLARIZATION MODELING

STATUS∗

F. Meot, L. Ahrens, K. Brown, Y. Dutheil, J. Glenn, C. Harper, H. Huang, V. Ranjbar, T. Roser,V. Schoefer, N. Tsoupas, Collider-Accelerator Department, BNL, Upton, NY 11973, USA

AbstractThis paper gives a status of the AGS model in the ray-

tracing code Zgoubi and its operation via the “AgsZgoubi-Model” and the “AgsModelViewer” applications availablefrom the controls system application launcher, “StartUp”.Examples of typical uses and studies performed using theseare included, as optics controls, spin matching to RHIC,etc. A companion paper (MOPWA085) gives additional de-tails, regarding especially spin dynamics and polarizationstudies aimed at determining optimal AGS settings for po-larization during RHIC Run 13. This work is an additionalstep towards further combination with the already existingRHIC spin tracking model in Zgoubi, and AGS’s Boostermodel in Zgoubi, a promising suite for detailed beam andspin dynamics studies and optimizations.

INTRODUCTIONThe modeling of the Alternating Gradient Synchrotron

lattice, including optics and spin dynamics, is based onstepwise ray-tracing methods using Zgoubi [1]. Optics ac-count for two Siberian snakes simulated using their 3-DOPERA field maps, and possibly uses the 240 2-D fieldmaps of the main magnets, as described in detail in earlierpublications [2]-[7]. Recent studies aimed at determiningoptimal AGS settings for polarization during RHIC Run 13are further detailed in a companion paper [8]. The presentpaper gives a status of this work, and examples of variouspossible applications.

Table 1: “ZgoubiFromSnaprampCmd”

At an arbitrary timing, or series of timings, in a cycle,

(i) ZgoubiFromSnaprampCmd” reads magnet settingsfrom an AGS “snapramp” : a snapramp is a photoof an AGS cycle, i.e., (a folder that houses) a seriesof files containing magnet currents vs. timing overthat cycle, as well as orbit radius and other bumps.

(ii) It then builds a “zgoubi.dat” input data file toZgoubi, from an existing template.

(iii) This “zgoubi.dat” problem is run, so producingoutputs as closed orbits, optical functions, periodicspin �n0 vector, and possibly plots.

∗Work supported by Brookhaven Science Associates, LLC under Con-tract No. DE-AC02-98CH10886 with the U.S. Department of Energy.

ZGOUBI MODEL FROM SNAPRAMPSThe model of the AGS in the ray-tracing code Zgoubi is

now operational and used in optical and polarization stud-ies in the present RHIC Run 13. Not just an AGS operationtool however, it is in addition a research tool, as addressedbelow.

The model can be launched from any shell termi-nal under linux/unix, via the command “ZgoubiFrom-SnaprampCmd”, see Table 1. Like the existing command“MadxFromSnaprampCmd”, the former produces “twiss”type of output files, formatted in exactly the same way asMADX ones, so making existing interfaces operational forboth engines with minor additional work.

In addition, two interfaces have been developed,as described hereafter, that both essentially execute“ZgoubiFromSnaprampCmd”.

“AGSZGOUBIMODEL”This interface stands as an application in the AGS op-

eration “StartUp” menu. It is an R&D tool, in continuousdevelopment. Its goal is to make user’s life easier in so-phisticated manipulations of the AGS Zgoubi model. Twoexamples for illustration, amongst other possibilities :

Example 1. When producing a model of the AGS atparticular timing(s) during a cycle, tunes (and chromatic-ities as well) will fall at some distance from measuredtunes during that very cycle. The reason for that maybe attributed to a lack of knowledge of the main mag-nets, due for instance to evolutions in shape and align-ment over the years, or to eddy currents during the ramp(this is still to be investigated). However it is necessaryfor betatron resonance studies, or spin dynamics studies,for instance, to have tight agreement between the modeland the live machine. The way this is dealt with is bymatching, varying the K1F and K1D gradient indices inthe respectively focusing and defocusing main magnet fam-ilies. This variation is very small, within ±10−3, rel-ative, whatever the timing. “AgsZgoubiModel” will es-tablish the required (file-)links between measured (tunes,chromaticities) and “ZgoubiFromSnaprampCmd”, so thatthis operation of matching is automatic. This results in a“zgoubi.dat” file matched to the live AGS, ready for furtherdynamics studies. A typical outcome of such a manipula-tion is shown in Fig. 1. Similar consideration of automa-tion holds for orbit, dispersion, and measurements and theirmodeling.

Proceedings of IPAC2013, Shanghai, China WEPEA082

04 Hadron Accelerators

A04 Circular Accelerators

ISBN 978-3-95450-122-9

2699 Cop

yrig

htc ○

2013

byJA

CoW

—cc

Cre

ativ

eC

omm

onsA

ttri

butio

n3.

0(C

C-B

Y-3.

0)

Page 2: AGS Model in Zgoubi. RHIC Run 13 Polarization Modeling ...and the commercial XRT TM (from Quest Software) graph-ics plotting package. It interfaces to the AGSModelServer, which exists

8.65 8.7

8.75 8.8

8.85 8.9

8.95 9

150 200 250 300 350 400 450 500 550

Qx,

Qy

AGS tunes(a)

Qy snapRQy fit’dQx snapRQx fit’d

0 0.001 0.002 0.003 0.004 0.005 0.006 0.007 0.008 0.009

0.01

150 200 250 300 350 400 450 500 550

dQ/Q

(b) dQydQx

-0.003-0.0025

-0.002-0.0015

-0.001-0.0005

0 0.0005

0.001 0.0015

0.002 0.0025

150 200 250 300 350 400 450 500 550

dK1/

K1

Timing (ms)

(c) dK1DdK1F

Figure 1: Tune measurements and modeling during theramp, in presence of polarization tune jump quadrupoles.The top plot shows tunes along the cycle, before and aftermatching of the K1F and K1D families to measured AGSdata. The accuracy of the agreement between measured andcomputed tunes is controlled via a “penalty” function inZgoubi’s fitting procedure. It takes of the order of a minuteto complete - quite compatible with operation imperatives.The middle plot shows the difference between measuredtunes and their values from the model prior to matching- usually small. Bottom plot : the amount that K1F andK1D families need be varied in order to have measured andmodel tunes agree. The dip in the 310 ms region resultsfrom the transition quads not being powered in this partic-ular simulation.

Example 2. Periodic extraction conditions - beam andspin - need be transported to RHIC. A first step is, gettingthe former, which includes orbit and related feed-downsfrom the main magnets, tuning quadrupoles and chromatic-ity sextupoles. Simulation of the bump optics at 1077 msin nominal working conditions (orbit bump is switched onaround 680 ms, zero-ed at 1100 ms, extraction occurs at1077 ms) is schemed and commented in Fig. 2.

“AGSMODELVIEWER”The AgsModelViewer is a thin client graphical interface

application written in C++ that makes use of a local userinterface library developed on top of OSF/Motif R©widgetsand the commercial XRTTM(from Quest Software) graph-ics plotting package. It interfaces to the AGSModelServer,which exists in two instances, one for a MADX modelof the AGS and one for the Zgoubi model of the AGS.The servers are generic CDEV servers that collect live orarchived data of the machine settings or readbacks andbuild the instances for the respective model engines. In thecase of Zgoubi, the same ZgoubiFromSnapRampCmd in-frastructure is used. The model servers are designed to pub-lish model results to any requesting client including com-mand line requests using the cdevCommand interface [9].

8 10 12 14 16 18 20 22 24 26

8 10 12 14 16 18 20 22 24 26 28

beta

x (m

)

beta

y (m

)

AgsZgoubiModel. Timing = 1077 ms

(a) betaxbetay

-5-4.5

-4-3.5

-3-2.5

-2-1.5

-1-0.5

0 0.5

-5-4.5-4-3.5-3-2.5-2-1.5-1-0.5 0 0.5

Dx

(m)

Dy

(m)

(b) DxDy

-0.08

-0.06

-0.04

-0.02

0

0.02

0.04

0.06

0 100 200 300 400 500 600 700 800

-0.0002

-0.00015

-0.0001

-5e-05

0

5e-05

0.0001

x (m

)

y (m

)

s (m)

(c)

* Qx= 8.7413 Qy= 8.9039 Chrox= -22.32 Chroy= 3.26

xy

Figure 2: AGS extraction optics (1077 ms after injection,Gγ = 45.5), in presence of the “G10” kicker and “H10”septum orbit bumps - this is for instance the configurationrequired for determining the periodic spin precession vec-tor �n0 at H10 in view of its transport to the collider RHICvia the AGS to RHIC beam line, see Fig. 4. Bottom plot :first the H and V closed orbits are searched for (the verticalorbit is normally very small in the model since an artificialorbit bump is maintained at both sakes - they are sources ofH and V orbit, decreasing in strength with increasing mo-mentum). Middle plot : then the dispersions are computed.Top plot : eventually the optical functions are computedfrom ray-tracing as well, with these very H and V closedorbits as Serret-Frenet frame reference.

The AgsModelViewer is designed to display all the datarelevant to the online model, see example in Fig. 3. Oncea given set of data is requested, whether from live settingsor from an archive of the settings, the viewer will displaythe magnet currents and other machine settings, and themodel output data in terms of Courant-Snyder parameters,generated either from the MADX or Zgoubi server. Theviewer can access both. It also contains a simple longitu-dinal model, with the intent of connecting the longitudinaland transverse models of the accelerators together. Thiswould provide, for example, the momentum compactionfactor to the longitudinal model for a more accurate pre-diction of the synchrotron frequency as a function of time.This feature is still under development. The viewer is alsodesigned to make comparisons of the model predictions tomeasurements, so it is capable of reading data logged frominstrumentation, such as tune measurements, as a functionof time.

SPIN OPTICSAs mentioned earlier, “ZgoubiFromSnaprampCmd” and

its interface “AgsZgoubiModel” are also R&D tools. Theycan be used for spin studies, this is the example displayedin Fig. 4 which shows the transport of the periodic �n0 pre-

WEPEA082 Proceedings of IPAC2013, Shanghai, China

ISBN 978-3-95450-122-9

2700Cop

yrig

htc ○

2013

byJA

CoW

—cc

Cre

ativ

eC

omm

onsA

ttri

butio

n3.

0(C

C-B

Y-3.

0)

04 Hadron Accelerators

A04 Circular Accelerators

Page 3: AGS Model in Zgoubi. RHIC Run 13 Polarization Modeling ...and the commercial XRT TM (from Quest Software) graph-ics plotting package. It interfaces to the AGSModelServer, which exists

Figure 3: The AGS “lattice” page of AgsModelViewer, atan early timing. MADX and Zgoubi engines give very sim-ilar results. They differ essentially at low energy, where theeffect of the snakes on the optics is strongest - MADX usesfirst order matrices to simulate the snakes, whereas Zgoubiray-traces.

cession vector at the extraction septum H10 in the AGS,via the AtR (AGS to RHIC beam line), to the downstreamend of the injection kickers in the “RHIC Blue” and “RHICYellow” rings. The exercise in that example consists in aseries of steps, as follows:

(i) get the the periodic optics in AGS in presence of theextraction bumps at G10 and H10,

(ii) get the periodic spin �n0 at H10,(iii) transport �n0 along the AtR,(iv) bring �n0 through RHIC-X and RHIC-Y injection sec-

tions down to Blue and Yellow kicker ends.

Phases (iii), (iv) require getting the AtR and RHIC injec-tion sections settings in Zgoubi’s AtR model, the processof automatizing that and incorporating it in ZgoubiFrom-SnaprampCmd is on-going.

CONCLUSIONA powerful AGS modeling tool is now in operation for

RHIC Run 13, after 3 years of development. It is based onstepwise ray-tracing methods and allows detailed and so-phisticated simulations and studies of beam and spin opticsin RHIC’s injector, AGS. Combined with the already ex-isting RHIC model in Zgoubi, that has proved a powerfultool for spin dynamics simulations [10], and with the ex-isting Booster model, used at present for the simulation ofpolarized helion transport to RHIC [11], the Zgoubi enginemethod appears a promising tool for the modeling of RHICcollider and its injectors complex.

0.6

0.65

0.7

0.75

0.8

0.85

0.9

0.95

1

42 43 44 45 46 47 48 49 50

Sy

G.gamma

N0 at H10, Y and B kickers

H10RHIC-BRHIC-Y

Figure 4: Red curve: vertical component of the periodic�n0 precession vector as observed at septum H10 in AGS,as a function of beam energy (in units of Gγ). Blue andYellow curves: resulting vertical component at RHIC-Blueand RHIC-Yellow injection kickers. The ideal case is whenSy is closest to 1 in both Blue and Yellow since RHIC’s �n0

is vertical. It can be observed that RHIC Run 13 injectionGγ = 45.5 is a reasonable compromise in that respect.

REFERENCES[1] Zgoubi Users’ Guide, F. Meot, Report BNL-98726-2012-IR,

https://www.bnl.gov/isd/documents/79375.pdf.

[2] Spin Dynamics Simulations at AGS, H. Huang et al., ProcsIPAC 2010 Conf., Kyoto.

[3] Modelling of the AGS using Zgoubi - status, F. Meot et al.,Procs IPAC 2011 Conf., San Sebastian.

[4] Development of a stepwise ray-tracing based, on-line modelof the AGS, F. Meot et al., Procs PAC 2011 Conf., New York.

[5] Modelling of the AGS using Zgoubi - status, F. Meot et al.,Procs PAC 2012 Conf., New Orleans ;A Model of the AGS Based on Stepwise Ray-TracingThrough the Measured Field Maps of the Main MagnetsY. Dutheil et al., Procs PAC 2012 Conf., New Orleans.

[6] Spin tracking simulations in AGS based on ray-tracing meth-ods - bare lattice, no snakes, F. Meot et al., Note C-AD/AP/452 (Feb. 2012).

[7] Zgoubi-ing AGS spin motion with snakes and jump-quads,Gγ = 43.5 through Gγ = 46.5 and beyond, F. Meot et al.,Note C-AD/AP/453 (Feb. 2012).

[8] Spin Dynamics Simulations and Horizontal Intrinsic Reso-nance Studies in the AGS using the Zgoubi Code, Y. Dutheilet al., MOPWA085, these proceedings.

[9] J. Chen et al., Cdev: An object-oriented class library for de-veloping device control applications, Procs 1995 Int. Conf. onAccelerator and Large Experimental Physics Controls Sys-tems, (Chicago), p. 97, 1995.

[10] Spin code benchmarking at RHIC, F. Meot et al., ProcsIPAC 2011 Conf., San Sebastian.Polarization transmission at RHIC, numerical simulations,F. Meot et al., Procs PAC 2012 Conf., New Orleans.

[11] Transport of polarized 3He in Booster and AGS, F. Meot,Workshop on Opportunities for Polarized He-3 in RHIC andEIC, BNL, Sept. 2011.

Proceedings of IPAC2013, Shanghai, China WEPEA082

04 Hadron Accelerators

A04 Circular Accelerators

ISBN 978-3-95450-122-9

2701 Cop

yrig

htc ○

2013

byJA

CoW

—cc

Cre

ativ

eC

omm

onsA

ttri

butio

n3.

0(C

C-B

Y-3.

0)