1 Model-Driven CEBAF Setup After the 12GeV Upgrade Dennis Turner WAO 2014 Notice: Authored by...

23
1 Model-Driven CEBAF Setup After the 12GeV Upgrade Dennis Turner WAO 2014 Notice: Authored by Jefferson Science Associates, LLC under U.S. DOE Contract No. DE-AC05-06OR23177. The U.S. Government retains a non-exclusive, paid-up, irrevocable, world-wide license to publish or reproduce this manuscript for U.S. Government purposes.

Transcript of 1 Model-Driven CEBAF Setup After the 12GeV Upgrade Dennis Turner WAO 2014 Notice: Authored by...

Page 1: 1 Model-Driven CEBAF Setup After the 12GeV Upgrade Dennis Turner WAO 2014 Notice: Authored by Jefferson Science Associates, LLC under U.S. DOE Contract.

1

Model-Driven CEBAF Setup After the 12GeV Upgrade

Dennis Turner

WAO 2014Notice: Authored by Jefferson Science Associates, LLC under U.S. DOE

Contract No. DE-AC05-06OR23177. The U.S. Government retains a non-exclusive, paid-up, irrevocable, world-wide license to publish or reproduce

this manuscript for U.S. Government purposes.

Page 2: 1 Model-Driven CEBAF Setup After the 12GeV Upgrade Dennis Turner WAO 2014 Notice: Authored by Jefferson Science Associates, LLC under U.S. DOE Contract.

Outline

• Motivation

• 6GeV CEBAF Overview

• Overview of 12GeV Upgrade

• Machine configuration during 6GeV era

• New operational paradigm developed during 12GeV construction

• Examples of software tools developed to support the new operational paradigm.

• Path Forward

Page 3: 1 Model-Driven CEBAF Setup After the 12GeV Upgrade Dennis Turner WAO 2014 Notice: Authored by Jefferson Science Associates, LLC under U.S. DOE Contract.

An accurate accelerator model is critical for accelerator operations, as it enables comparisons of expected and observed beam behavior and helps identify root causes of discrepancy.

An infrastructure of tools and procedures that systematically identifies differences between the machine and model will permit convergence that will lead to reductions in tune time, faster recovery from soft failures, and better understanding of CEBAF 12GeV accelerator control and dynamics.

CEBAF supports a highly dynamic nuclear physics program. Energy and Pass changes occur rather frequently. In an extreme case, we performed 11 pass changes and 3 energy changes in a one month period.

Shorter tune time means more beam time for users. Model-driven setup reduces tune time and improves operational beam

quality. The key concepts here are predictability and reproducibility.

Motivation

Page 4: 1 Model-Driven CEBAF Setup After the 12GeV Upgrade Dennis Turner WAO 2014 Notice: Authored by Jefferson Science Associates, LLC under U.S. DOE Contract.

6GeV CEBAF Overview

5-Pass, 6GeV CW Electron Accelerator Photoinjector; >85% polarization Two 1497MHz superconducting RF linacs Two Recirculation Arcs Up to 180µA beam current for high data collection rate Simultaneous beam to three experimental halls Dynamic physics program requiring frequent energy and pass changes

Page 5: 1 Model-Driven CEBAF Setup After the 12GeV Upgrade Dennis Turner WAO 2014 Notice: Authored by Jefferson Science Associates, LLC under U.S. DOE Contract.

6GeV CEBAF Overview

Page 6: 1 Model-Driven CEBAF Setup After the 12GeV Upgrade Dennis Turner WAO 2014 Notice: Authored by Jefferson Science Associates, LLC under U.S. DOE Contract.

12GeV Upgrade Scope

Ten new higher-gradient superconducting RF cryomodules (five per linac). Ten new RF stations to power the 10 new cryomodules. Approximately double the refrigeration capacity. Modifications to the magnets in the recirculation arcs and their power

supplies to keep the higher energy beam confined to the existing beam path. Modifications to the extraction system to support the higher energy beams. A tenth arc beamline to provide an extra pass through the North Linac. This

additional acceleration pass will bring the beam up to the 12 GeV required to accommodate the experimental program in the new hall (Hall D).

A new beamline connecting Hall D to the baseline accelerator.

Page 7: 1 Model-Driven CEBAF Setup After the 12GeV Upgrade Dennis Turner WAO 2014 Notice: Authored by Jefferson Science Associates, LLC under U.S. DOE Contract.

12GeV Upgrade Scope

Page 8: 1 Model-Driven CEBAF Setup After the 12GeV Upgrade Dennis Turner WAO 2014 Notice: Authored by Jefferson Science Associates, LLC under U.S. DOE Contract.

Machine configuration during the 6GeV era

• Modeled with OptiM and Art++

• Scaled machine settings from previous configurations to new energy (usually didn't work without much tuning, magnet mapping incomplete)

• Tweak, measure, tweak again; “grope & hope”.

• Pass changes could take 4 or more hours, energy changes 8 or more hours. Drastic changes could take many shifts.

• No central source for configuration control; occasionally hardware changes did not propagate to operator tools and screens.

• No feedback; model was not updated to reflect operational experience.

Page 9: 1 Model-Driven CEBAF Setup After the 12GeV Upgrade Dennis Turner WAO 2014 Notice: Authored by Jefferson Science Associates, LLC under U.S. DOE Contract.

Machine configuration for 12GeV

The CEBAF Modeling Team was formed specifically to establish tools and procedures for model-driven machine configuration for 12GeV CEBAF.

Switched to elegant for modeling (will cover advantages of elegant over OptiM later) Retrieve machine settings from the model rather than previous configurations ALL magnets were remapped for 12GeV; model can be closer to reality The CEBAF Element Database (CED) was established as a central repository for

hardware configuration control and model information. A “feedback loop” has been established such that model discrepancies discovered

during commissioning and operation are fed back to the model, thus providing a path for convergence. As an example, during the first 12GeV commissioning run it was noted that Operations needed to excessively tune with the same knobs downstream of Arc1 after every energy change. This led to the discovery of a dipole body gradient error in the model. The error was corrected, and the excessive tuning was eliminated.

Page 10: 1 Model-Driven CEBAF Setup After the 12GeV Upgrade Dennis Turner WAO 2014 Notice: Authored by Jefferson Science Associates, LLC under U.S. DOE Contract.

CEBAF Physics Model

Page 11: 1 Model-Driven CEBAF Setup After the 12GeV Upgrade Dennis Turner WAO 2014 Notice: Authored by Jefferson Science Associates, LLC under U.S. DOE Contract.

6-D accelerator simulation code that does tracking, optimization, synchrotron radiation, scattering, etc.

Developed at APS. Open-source. Compatible with Linux OS used by Operations (OptiM is Windows only) Actively maintained and continuously improved by the APS team with help

from the worldwide accelerator community, whereas OptiM and Art++ are no longer supported by their primary developers.

Large user community, more “industry standard” than OptiM OptiM cannot easily be used in batch mode behind the scenes to drive an

"online model" the way that elegant can. elegant also has better (and better tested) functionality to incorporate

magnet errors that is an important part of reconciling online modeling with machine measurements.

Capable of parallel computing for large scale simulations Interfaces well with the fully developed SDDS infrastructure

elegant (ELEctron Generation ANd Tracking)

Page 12: 1 Model-Driven CEBAF Setup After the 12GeV Upgrade Dennis Turner WAO 2014 Notice: Authored by Jefferson Science Associates, LLC under U.S. DOE Contract.

CEBAF Element Database (CED) Relational database to store beamline elements and their attributes. Authoritative source of hardware, control system, and model information Accessed real-time by control system software and operator tools Operator screens generated on-the-fly; always correct and up to date. Command line interface, web interface, and API for C++, Perl, PHP, and Tcl

available for access

Page 13: 1 Model-Driven CEBAF Setup After the 12GeV Upgrade Dennis Turner WAO 2014 Notice: Authored by Jefferson Science Associates, LLC under U.S. DOE Contract.

CEBAF Element Database (CED)

Page 14: 1 Model-Driven CEBAF Setup After the 12GeV Upgrade Dennis Turner WAO 2014 Notice: Authored by Jefferson Science Associates, LLC under U.S. DOE Contract.

elegant Utilities Library (eUtilities)

Set of Perl modules which provide an object-oriented interface to elegant Provides methods for creating and manipulating elegant lattice and

command files Many optics and operator tools built upon eUtilities. We'll see some

examples later.

Page 15: 1 Model-Driven CEBAF Setup After the 12GeV Upgrade Dennis Turner WAO 2014 Notice: Authored by Jefferson Science Associates, LLC under U.S. DOE Contract.

elegant Download Tool (eDT) Generates magnet design setpoints for various machine energies and pass

configurations Design setpoints are computed from elegant design values stored in CED

rather than scaling from previous settings as we did before. Converts from elegant units to control system units Compares design values to current machine values Computes allowed ranges for designated tuning knobs Provides a mechanism for overlaying non-design configurations Uses CED API, elegant, and eUtilities

Page 16: 1 Model-Driven CEBAF Setup After the 12GeV Upgrade Dennis Turner WAO 2014 Notice: Authored by Jefferson Science Associates, LLC under U.S. DOE Contract.

elegant Download Tool (eDT)

Page 17: 1 Model-Driven CEBAF Setup After the 12GeV Upgrade Dennis Turner WAO 2014 Notice: Authored by Jefferson Science Associates, LLC under U.S. DOE Contract.

Quad Scan Utility (qsUtility) Collects beam size data from wire scans while scanning quadrupole

magnets. Computes transverse emittance and Twiss parameters from wire scan data. Produces phase space plots to visualize quality of match. Uses CED and elegant to determine design optics parameters, transport

matrices, etc. The previous tool was not transparent to the user. Relied on expert to

analyze data offline, after measurements were taken. Sometimes scans did not provide useful data, but it wasn't apparent while the measurements were being taken.

The new tool gives “real-time” feedback and provide the user with an immediate indication of measurement quality

Page 18: 1 Model-Driven CEBAF Setup After the 12GeV Upgrade Dennis Turner WAO 2014 Notice: Authored by Jefferson Science Associates, LLC under U.S. DOE Contract.

qsUtility Data Collector

Page 19: 1 Model-Driven CEBAF Setup After the 12GeV Upgrade Dennis Turner WAO 2014 Notice: Authored by Jefferson Science Associates, LLC under U.S. DOE Contract.

qsUtility Analyzer

Page 20: 1 Model-Driven CEBAF Setup After the 12GeV Upgrade Dennis Turner WAO 2014 Notice: Authored by Jefferson Science Associates, LLC under U.S. DOE Contract.

matchingTool

Even with a machine behaving as modeled, sometimes matching is required. For example, beam parameters from the early part of the Injector can vary from run to run or even drift over time, requiring rematching the beam entering the North Linac. This is where matchingTool will come in handy.

The matchingTool: Takes Twiss parameters measured with qsUtility as input. Provides automated matching using elegant's built-in optimizer. Given a starting element and matchpoint, matches to design Twiss

parameters at a designated matchpoint.

Matching used to be performed by optics experts. Each had a different method. matchingTool provides a consistent method, and operators will be able to perform matching without relying on assistance from optics experts.

Page 21: 1 Model-Driven CEBAF Setup After the 12GeV Upgrade Dennis Turner WAO 2014 Notice: Authored by Jefferson Science Associates, LLC under U.S. DOE Contract.

matchingTool

Page 22: 1 Model-Driven CEBAF Setup After the 12GeV Upgrade Dennis Turner WAO 2014 Notice: Authored by Jefferson Science Associates, LLC under U.S. DOE Contract.

Path Forward

The machine and model will converge over the course of 12GeV operations, leading to a measurable reduction in necessary tune time for new machine configurations, and improved CEBAF operational beam quality.

As we gain more experience with the new machine and operational paradigm, we will streamline our tools and procedures for more efficient machine operation

Page 23: 1 Model-Driven CEBAF Setup After the 12GeV Upgrade Dennis Turner WAO 2014 Notice: Authored by Jefferson Science Associates, LLC under U.S. DOE Contract.

This material is based upon work supported by the U.S. Department of Energy, Office of Science, Office of Nuclear Physics under contract DE-AC05-06OR23177

Questions?