Managed by UT-Battelle for the Department of Energy SNS Beam Commissioning Tools and Experience Andrei Shishlo on Behalf of SNS Team HB2008, Nashville,

Slides:



Advertisements
Similar presentations
Paul Chu FRIB Controls Group Leader (Acting) Service-Oriented Architecture for High-level Applications.
Advertisements

R. Miyamoto, Beam Physics Design of MEBT, ESS AD Retreat 1 Beam Physics Design of MEBT Ryoichi Miyamoto (ESS) November 29th, 2012 ESS AD Retreat On behalf.
Current Status of Virtual Accelerator at J-PARC 3 GeV Rapid Cycling Synchrotron H. Harada*, K. Shigaki (Hiroshima University in Japan), H. Hotchi, F. Noda,
Alternate Software Development Methodologies
Experience with Bunch Shape Monitors at SNS A. Aleksandrov Spallation Neutron Source, Oak Ridge, USA.
XAL at J-PARC Hiroyuki Sako, G. Shen, JAEA C. K. Allen, ORNL Contents Why did we introduce XAL? Installing XAL Developing XAL Achievements with XAL Summary.
XAL Recent Development
Model Server for Physics Applications Paul Chu SLAC National Accelerator Laboratory October 15, 2010.
EPICS Meeting 2005ORNL Rdb systems at SNS Jeff Patton and cast April 27-29, 2005 EPICS Meeting 2005.
Patrick Krejcik LCLS June 16-18, 2008 High Level Applications Facility Advisory Committee Meeting June 17, 2008 Applications Team.
June 17, 2008 LCLS FAC D. Fairley MATLAB Feedback Phase II Commissioning.
Diane Fairley High Level October 24-28, 2005 High Level Physics Applications LCLS Week / FAC October 24-28, 2005.
Henrik Loos High Level 17 June 2008 High Level Physics Applications for LCLS Commissioning Henrik Loos.
Managed by UT-Battelle for the Department of Energy Open XAL Open Development of the XAL Accelerator Application Framework Christopher K. Allen Tom Pelaia.
8/21/2015J-PARC1 Data Management Machine / Application State Data.
Linac Front-End R&D --- Systems Integration and Meson Lab Setup
JCE A Java-based Commissioning Environment tool Hiroyuki Sako, JAEA Hiroshi Ikeda, Visible Information Center Inc. SAD Workshop.
Tuning an Accelerator for 1 MW C. Peters WAO 12 August 8 th, 2012.
This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC Michigan State.
A Brief History of XAL at SNS - What went right / wrong J. Galambos XAL Workshop at the 2007 EPICS / ICALEPS meeting Knoxville TN.
BROOKHAVEN SCIENCE ASSOCIATES High level applications and EPICS control GUOBAO SHEN NSLS-II, Control Group May 4 th, 2009.
Virtual Accelerator at J-PARC 3 GeV Rapid Cycling Synchrotron H. Harada*, K. Shigaki (Hiroshima University in Japan), H. Hotchi, F. Noda, H. Sako, H. Suzuki,
The european ITM Task Force data structure F. Imbeaux.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Jan Control System Studio, CSS Overview.
ATF Control System and Interface to sub-systems Nobuhiro Terunuma, KEK 21/Nov/2007.
K.Furukawa, Nov Database and Simulation Codes 1 Simple thoughts Around Information Repository and Around Simulation Codes K. Furukawa, KEK Nov.
Experience from the Spallation Neutron Source Commissioning Dong-o Jeon Accelerator Physics Group Oak Ridge National Laboratory May 9, 2007.
Managed by UT-Battelle for the Department of Energy SNS BLM System Overview Detectors, Measurements, Simulations Alexander Zhukov Saeed Assadi SNS/ORNL.
An Overview of XAL XAL - A High-Level Control Application Framework Christopher K. Allen Los Alamos National Laboratory KEK - February 18, 2005.
Michael Borland Advanced Photon Source Using SDDS for Accelerator Commissioning and Operation Michael Borland Operations Analysis Group Advanced Photon.
This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC , the State of Michigan.
Alexander Aleksandrov Oak Ridge National Laboratory
12/3/2015J-PARC1 High Level Physics Applications XAL – An Accelerator Hierarchy Day 1: Accelerator View from the Physicist.
Managed by UT-Battelle for the Department of Energy Using Online Single Particle Model for SNS Accelerator Tuning Andrei Shishlo, Alexander Aleksandrov.
1 BROOKHAVEN SCIENCE ASSOCIATES EPICS Version 4 – Development Plan V4 Team – presented by Bob Dalesio EPICS Meeting October 12, 2010.
HWDB: Operations at the Spallation Neutron Source Workshop on Accelerator Operations August 6-10, 2012 Glen D. Johns Accelerator Operations Manager.
Managed by UT-Battelle for the Department of Energy SNS Injection and Extraction Systems Issues and Solutions by M. Plum for the SNS team and our BNL collaborators.
ICFA-HB 2004 Commissioning Experience for the SNS Linac A. Aleksandrov, S. Assadi, I. Campisi, P. Chu, S. Cousineau, V. Danilov, G. Dodson, J. Galambos,
1 Virtual Accelerator plan and status at RCS Hiroshima University, Graduate School of Science Experimental Quark Physics Lab ( & JAEA Accelerator Development.
1 P. Chu 1 Adapting XAL for LCLS EPICS Meeting, Vancouver Adapting XAL for LCLS Paul Chu - SLAC May 1, 2009.
1 BROOKHAVEN SCIENCE ASSOCIATES High Level Applications Infrastructure and Current Status Guobao Shen, Lingyun Yang* Controls Group & Accelerator Physics.
This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC Michigan State.
Overview of new high level software applications developed for the HIE- ISOLDE superconducting linac D.Lanaia*, M.A. Fraser, D. Voulot *The research project.
SASE optimization with OCELOT Sergey Tomin other co-workers: I. Agapov, G. Geloni, I. Zagorodnov.
2/20/2016J-PARC1 Virtual Accelerator An Accelerator Simulator.
… Work in progress at CTF3 … Davide Gamba 01 July 2013 Study and Implementation of L INEAR F EEDBACK T OOLS for machine study and operation.
1 BEAM COMMISSIONING SOFTWARE AND DATABASE FOR J-PARC LINAC Hiroyuki Sako G. Shen, H. Sakaki, H. Takahashi, H. Yoshikawa, JAEA H. Ikeda, VIC C. K. Allen,
TRIUMF HLA Development High Level Applications Perform tasks of accelerator and beam control at control- room level, directly interfacing with operators.
Managed by UT-Battelle for the Department of Energy Python ORBIT in a Nutshell Jeff Holmes Oak Ridge National Laboratory Spallation Neutron Source Space.
ICS WP3 – Software Core Components Suzanne Gysin Work Package Lead November 25, 2014.
SNS linac beam commissioning By Michael Plum Spallation Neutron Source Oak Ridge National Laboratory ESS Workshop on beam commissioning April 8-9, 2014.
This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC , the State of Michigan.
Development of Commissioning Software for CSNS Weibin Liu on behalf of CSNS AP Group Yuwen An, Mingyang Huang, Mingtao Li, Yong Li, Zhiping Li, Yudong.
This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC , the State of Michigan.
Software tools for digital LLRF system integration at CERN 04/11/2015 LLRF15, Software tools2 Andy Butterworth Tom Levens, Andrey Pashnin, Anthony Rey.
HISTORY OF SNS DESIGN AND TECHNOLOGY CHOICES PROJECT X WORKSHOP NOVEMBER 12-13, 2007 R. KUSTOM.
XAL Applications Development in CSNS Weibin Liu for AP Group of CSNS Yuwen An, Mingyang Huang, Mingtao Li, Yong Li, Zhiping Li, Yudong Liu, Jun Peng, Jing.
Fermilab Control System Jim Patrick - AD/Controls MaRIE Meeting March 9, 2016.
Managed by UT-Battelle for the Department of Energy CSS Based Tools at SNS Dave Purcell EPICS Collaboration Meeting October 13-17, 2008.
Control System Tools for Beam Commissioning Timo Korhonen Controls Division Chief Engineer April 8, 2014.
Introduction to Algorithm. What is Algorithm? an algorithm is any well-defined computational procedure that takes some value, or set of values, as input.
BEAM COMMISSIONING SOFTWARE AND DATABASE FOR J-PARC LINAC Hiroyuki Sako G. Shen, H. Sakaki, H. Takahashi, H. Yoshikawa, JAEA H. Ikeda, VIC C. K. Allen,
LCLS Commissioning & Operations High Level Software
Operations Machine Simulator.
LCLS Commissioning & Operations High Level Software
ILC Main Linac Alignment Simulations
EPICS Meeting March 12 – 14, 2008, Shanghai, China
SNS Commissioning Mike Plum
High Level Physics Applications for LCLS Commissioning
Linac Diagnostics Commissioning Experience
Presentation transcript:

Managed by UT-Battelle for the Department of Energy SNS Beam Commissioning Tools and Experience Andrei Shishlo on Behalf of SNS Team HB2008, Nashville, TN August 27, 2008

2/20 Managed by UT-Battelle for the Department of Energy Presentation_name Outline  SNS Accelerator Complex  Commissioning and Tools Development Timeline  XAL Structure and Most Useful Applications  Conclusions

3/20 Managed by UT-Battelle for the Department of Energy Presentation_name Liquid Hg Target SNS Accelerator Complex 945 ns 1 ms macropulse Current mini-pulse Current 1ms 1 GeV LINAC Accumulator Ring: Compress 1 msec long pulse to 700 nsec Chopper system makes gaps 2.5 MeV1000 MeV87 MeV CCL SCL,  = 0.61 SCL,  = MeV387 MeV DTL MEBT Accumulator Ring RTBT Target HEBT InjectionExtraction RF Collimators Ion Source + RFQ

4/20 Managed by UT-Battelle for the Department of Energy Presentation_name SNS as Collaboration Accelerator components provided by LBNL, LANL, JLab, ANL and BNL

5/20 Managed by UT-Battelle for the Department of Energy Presentation_name SNS Beam Commissioning Timeline DTL Tanks 1-3 Front-End DTL Tank 1 DTL/CCL SCL Ring Target Power Ram-Up  Commissioning was squeezed between Installation activities.  Try-and-learn iterations approach to software applications development  Much less time was available for beam commissioning than originally planned.  Pace of commissioning accelerated at the end Front-End LBNL

6/20 Managed by UT-Battelle for the Department of Energy Presentation_name Application Programming Beginning ( )  The different technologies were reviewed: FORTRAN applications, MATLAB, SDDS (Self Describing Data Sets), Cdev, Java  Java –Advantages: simple, object oriented, it runs everywhere, GUI, database interaction, client/server application, Java interface to EPICS CA existed, appeal to young physicist/developers –Disadvantages (at that time): graphics (contours, error bars, real-time, 3-D, …), mathematical libraries less mature, most AP members used MatLab  Application programming requirements was formulated, a list of programs was constructed, manpower needed is 43 FTE (Full Time Equivalent) for 3.5 years of commissioning, accelerator physics, controls, and diagnostics groups are involved  Two versions of applications: for commissioning and for operations. Commissioning versions are streamlined applications with minimal user interface  The Application Programming Team was created inside Accelerator Physics Group to start development of Java infrastructure and high level physics applications MEBT and DTL commissioning: MatLab prototypes of some of applications were written first by AccPhy group members, and then they were rewritten in Java to insure a successful commissioning

7/20 Managed by UT-Battelle for the Department of Energy Presentation_name XAL – A Java based high level programming infrastructure for physics applications Accelerator SCLHEBTMEBT Ring QuadBPMDipoleQuadRfCavity … … xAvg() yAvg() valid() Java class structure that provides a hierarchical “device” view of the accelerator to the application programmers Setup from database through XML file, EPICS connections hidden Other similar frameworks Based on UAL2 ( Cosylab Abeans / databush ( J. Galambos, “SNS Remote Operations Experience + Thoughts on Using Java” talk, May, 2002

8/20 Managed by UT-Battelle for the Department of Energy Presentation_name First Test - Remote Testing of Applications  The SNS MEBT was commissioned at LBNL April-May  3 slots for testing, 5 hrs total beam time, Tested model comparison, orbit correction + general purpose diagnostic app.  Application testing before commissioning is a valuable option Front End at LBNL Test control room at ORNL

9/20 Managed by UT-Battelle for the Department of Energy Presentation_name Lessons after First Steps  Need to familiarize people with application features before commissioning.  Need GUI interfaced applications for general users.  Have integrated help capability, common look/feel  Testing with Virtual Accelerator before commissioning helped Actions:  The practice of live lessons for applications become a common practice  The development of the Application Framework initiated  Proceed with the Virtual Accelerator development

10/20 Managed by UT-Battelle for the Department of Energy Presentation_name XAL Structure Web page of Tom Pelaia (XAL project leader): Online Model Channel Access Application Framework General Tools Services Applications App. 1App. 2 App. 3 … Site Specific Scripts Jython JRuby  Online Model: simulates charged particle dynamics through specified accelerator sequences; six dimensional phase space propagation; includes space charge  Application Framework: consistent look and feel; standard, familiar menu items; free automatic behaviors; rapid application development  Channel Access: package abstracts channel access; provides some insulation from API changes to underlying access layer  Services: run continuously in the background; provide remote communication with user interfaces  General Tools: solvers, plotting, math etc. SNS Logbook

11/20 Managed by UT-Battelle for the Department of Energy Presentation_name Virtual Accelerator  PCAS - Portable Channel Access Server  Simulation Program – Accelerator Model  CA client – Interface to the Simulation Program + channel access client  Physics Application Program – application under development Simulation Program: Trace3D PARMILA XAL Online Model “Virtual accelerator” is a model imitating the real machine. In the case of EPICS data exchange It looks like a real machine from the EPICS channel access view, because operates with real process variable (PV) names, and produces a reasonable response generated by the simulation model. Now it is an XAL Application. Very useful on early stages and for demonstrations.

12/20 Managed by UT-Battelle for the Department of Energy Presentation_name Online Model  Package - gov.sns.xal.model  Simulates charged particle dynamics through specified accelerator sequences  Supports both linear sequences and rings  Calculates Twiss parameters, energy and orbit distortions  Six dimensional phase space propagation  Includes space charge forces for envelop propagation  Optics input can be from design optics, live machine, PV Logger snapshot or custom values (or combination of these sources)  Fast enough to use inside optimization tasks in the interactive mode

13/20 Managed by UT-Battelle for the Department of Energy Presentation_name XAL Solver - Optimization Package  Optimization using a collection of algorithms  This is a third generation of optimization packages in XAL  Package includes: –Solver – the primary class for setting up and running an optimization –Stopper – the object that can stop the optimization process (time, iterations, satisfaction level etc.) –Problem - the class holds user’s problem information: objectives, variables, constraints, hints etc. –AlgorithmPool – a collection of algorithms that can be used in optimization –SearchAlgorithm – abstract class for a search algorithms. Now the implementations are random search, random shrinking search, gradient search, simplex algorithm  XAL also has the implementations of linear Least Square Method fitting algorithms and Levenberg-Marquardt method

14/20 Managed by UT-Battelle for the Department of Energy Presentation_name PASTA – Phase/Amplitude Scan and Tuning Application Application to setup amplitudes and phase of RF cavities  It scans amplitude and phase of the RF cavity measuring signals from two downstream BPMs  Solve for incoming beam energy, cavity phase and amplitude by using “phase signature matching”.  It uses the XAL Online Model and XAL Solver for “on- fly” tuning It replaced the XAL Application based on the “Delta-T” method To use the “Delta-T you have to find an approximate values for amplitude and phase

15/20 Managed by UT-Battelle for the Department of Energy Presentation_name SLACS – Superconducting Linac Automated Cavity Setter (XAL Application)  As our understanding of the SRF behavior increases, operational settings change, sometimes during a run.  Need to be flexible – Linac output energy is a moving target SCL Tune-Up Time: August 2005: 48 hrs E out = 560 MeV (> 20 cavities off) Dec. 2005: 101 hrs E out = 925 MeV July 2006: 57 hrs E out = 855 MeV Oct 2006: 30 hrs E out = 905 MeV Jan. 2007: 6 hrs E out = 905 MeV Once SCL cavity phase set-points have been established, it is possible rescale downstream cavities using the online model (no measurements needed)

16/20 Managed by UT-Battelle for the Department of Energy Presentation_name SLACS (Cont.) – SCL Retuning In the transition from 4.2 K to 2 K, 22 cavity amplitudes changed.  A Model based method is used to predict the changes in cavity phase settings  Changed over 2000 degrees at the linac end !  The measured beam energy was within a few MeV of the prediction  Used this method many times – takes only a few minutes to setup

17/20 Managed by UT-Battelle for the Department of Energy Presentation_name Model Based Orbit Correction  CCL section has many quads and few BPMs  Usual orbit correction with BPMs does not work  Beam based alignment in quads (40 quads, 1 Hz operations freq.) does work, but it takes about hour to correct orbit  The model based orbit correction was developed. It takes about 30 sec and can be done parasitically CCL Dipole Correctors CCL BPMs, Magnets Solver for Initial conditions at the CCL entrance XAL Online Model Solver for Orbit Correction (fields for Dipole Corr.) XAL Online Model CCL losses were reduced to the acceptable level

18/20 Managed by UT-Battelle for the Department of Energy Presentation_name PV Logger – XAL Service  Runs continuously in the background  Posts sets of data to the database  Posts periodically or “on demand”  Each set has an unique ID  Generalized to allow for custom PV sets  Provides remote communication with any XAL application  Has one directly related XAL Application: PV Log Browser  Has one related XAL tool: PVLogDataSource – source of data for the XAL Online Model

19/20 Managed by UT-Battelle for the Department of Energy Presentation_name SCORE – XAL Application to Save - Compare Restore - Accelerator PVs

20/20 Managed by UT-Battelle for the Department of Energy Presentation_name Conclusions What we did right:  Early staged commissioning approach  Iterative Approach for Commissioning Tools  Using physicists (i.e. commissioners) to write applications (Need a core group of “mentor” programmers)  Educational efforts In XAL Development:  Choose Java  Initialization files created from a database  Online Model  Application Framework  Scripting (Jython/Ruby) What we did wrong:  Most applications and some of tools are SNS specific  Lack of documentation  Did not implement service daemons to reduce EPICS traffic  We used commercial plotting package (JClass) in the open source software (XAL)

21/20 Managed by UT-Battelle for the Department of Energy Presentation_name Backup Slides

22/20 Managed by UT-Battelle for the Department of Energy Presentation_name XAL - Open Source Environment for Creating Accelerator Physics Applications and Services Features  Open Source collaboration with dozens of developers among several sites SNS, SLAC, BNL, JPARC and others  Pure Java for cross platform development and deployment  Application Framework for rapidly developing modern applications  Toolbox of Java packages  Collection of applications (over four dozen) and services  EPICS Channel Access support  Ant based build system independent of IDE