CHRISTOPHER K. ALLEN, ORNL HIROYUKI SAKO, JAEA MASANORI IKEGAMI, KEK GUOBAO SHEN, JAEA HIROSHI IKEDA, VIC TOMOHIRO OHKAWA, JAEA AKIRA UENO, JAEA XAL Online.

Slides:



Advertisements
Similar presentations
Chapter 2 – Software Processes
Advertisements

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,
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.
SPACE CHARGE EFFECTS IN PHOTO-INJECTORS Massimo Ferrario INFN-LNF Madison, June 28 - July 2.
Experimental Facilities DivisionORNL - SNS June 22, 2004 SNS Update – Team Building Steve Miller June 22, 2004 DANSE Meeting at Caltech.
Chapter 13 Embedded Systems
Software Issues Derived from Dr. Fawcett’s Slides Phil Pratt-Szeliga Fall 2009.
July 22, 2005Modeling1 Modeling CESR-c D. Rubin. July 22, 2005Modeling2 Simulation Comparison of simulation results with measurements Simulated Dependence.
Accelerator Physics  Basic Formalism  Linear Accelerators  Circular Accelerators  Magnets  Beam Optics  Our Accelerator Greg LeBlanc Lead Accelerator.
1 An introduction to design patterns Based on material produced by John Vlissides and Douglas C. Schmidt.
Managed by UT-Battelle for the Department of Energy Open XAL Open Development of the XAL Accelerator Application Framework Christopher K. Allen Tom Pelaia.
Solenoid-Based Focusing Lens for a Superconducting RF Proton Linac Presentation prepared for AEM 11/08/20101I. Terechkine.
JCE A Java-based Commissioning Environment tool Hiroyuki Sako, JAEA Hiroshi Ikeda, Visible Information Center Inc. SAD Workshop.
A Shaft Sensorless Control for PMSM Using Direct Neural Network Adaptive Observer Authors: Guo Qingding Luo Ruifu Wang Limei IEEE IECON 22 nd International.
27-Nov-2007 SLAC-ILC- AP Meeting Global Design Effort 1 Lucretia Developments PT SLAC.
1 Tracking code development for FFAGs S. Machida ASTeC/RAL 21 October, ffag/machida_ ppt & pdf.
Simulation of direct space charge in Booster by using MAD program Y.Alexahin, N.Kazarinov.
1 Bunched-Beam RMS Envelope Simulation with Space Charge Christopher K. Allen Los Alamos National Laboratory.
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,
8/28/07RTML EDR KOM1 Cornell Plans for RTML EDR Work G. Dugan Cornell LEPP.
Particle dynamics in electron FFAG Shinji Machida KEK FFAG04, October 13-16, 2004.
Astra A Space Charge Tracking Algorithm
Development of Simulation Environment UAL for Spin Studies in EDM Fanglei Lin December
Details of space charge calculations for J-PARC rings.
Simulation of direct space charge in Booster by using MAD program Y.Alexahin, A.Drozhdin, N.Kazarinov.
ACAT 2005 Workshop, May UAL Interactive Analysis Environment Interactive Analysis Environment of Unified Accelerator Libraries V. Fine, N. Malitsky,
1 FFAG Role as Muon Accelerators Shinji Machida ASTeC/STFC/RAL 15 November, /machida/doc/othertalks/machida_ pdf/machida/doc/othertalks/machida_ pdf.
Introduction to Design. What is Design? 2 minutes Pairs.
1 CSCD 326 Data Structures I Software Design. 2 The Software Life Cycle 1. Specification 2. Design 3. Risk Analysis 4. Verification 5. Coding 6. Testing.
FCC electron cloud study plan K. Ohmi (KEK) Mar FCC electron cloud study meeting CERN.
Chapter 2 – Software Processes Lecture 1 Chapter 2 Software Processes1.
SOFTWARE COMPONENTS DEPLOYMENT REPOSITORY STRUCTURE TEST SUITES XAL Version 2 Christopher K. Allen, ORNL.
1 Bunched-Beam Envelope Simulation with Space Charge within the SAD Environment Christopher K. Allen Los Alamos National Laboratory.
Managed by UT-Battelle for the Department of Energy Using Online Single Particle Model for SNS Accelerator Tuning Andrei Shishlo, Alexander Aleksandrov.
J-PARC Trace3D Upgrades Christopher K. Allen Los Alamos National Laboratory.
Optics considerations for ERL test facilities Bruno Muratori ASTeC Daresbury Laboratory (M. Bowler, C. Gerth, F. Hannon, H. Owen, B. Shepherd, S. Smith,
© 2006 Pearson Addison-Wesley. All rights reserved 2-1 Chapter 2 Principles of Programming & Software Engineering.
Object-Oriented Programming © 2013 Goodrich, Tamassia, Goldwasser1Object-Oriented Programming.
1 Virtual Accelerator plan and status at RCS Hiroshima University, Graduate School of Science Experimental Quark Physics Lab ( & JAEA Accelerator Development.
Aaron Farricker 107/07/2014Aaron Farricker Beam Dynamics in the ESS Linac Under the Influence of Monopole and Dipole HOMs.
1 P. Chu 1 Adapting XAL for LCLS EPICS Meeting, Vancouver Adapting XAL for LCLS Paul Chu - SLAC May 1, 2009.
Midwest Accelerator Physics Meeting. Indiana University, March 15-19, ORBIT Electron Cloud Model Andrei Shishlo, Yoichi Sato, Slava Danilov, Jeff.
Kazuro Furukawa, KEK, Sep Envelope Simulation with Space-charge SAD Workshop Beam Envelope Simulation with Space Charge in SAD Kazuro Furukawa.
GWENAEL FUBIANI L’OASIS GROUP, LBNL 6D Space charge estimates for dense electron bunches in vacuum W.P. LEEMANS, E. ESAREY, B.A. SHADWICK, J. QIANG, G.
Banaras Hindu University. A Course on Software Reuse by Design Patterns and Frameworks.
Week 6: Software Design HNDIT Software Engineering Software Design Learning Outcomes  Understand the activities involved in the Design process.
By Verena Kain CERN BE-OP. In the next three lectures we will have a look at the different components of a synchrotron. Today: Controlling particle trajectories.
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,
Modelling Needs for Future Colliders Ghislain Roy AOC Workshop 05 February Feb 2015AOC Workshop 1.
Marcel Schuh CERN-BE-RF-LR CH-1211 Genève 23, Switzerland 3rd SPL Collaboration Meeting at CERN on November 11-13, 2009 Higher.
Vacuum specifications in Linacs J-B. Jeanneret, G. Rumolo, D. Schulte in CLIC Workshop 09, 15 October 2009 Fast Ion Instability in Linacs and the simulation.
SLAC LET Meeting Global Design Effort 1 CHEF: Recent Activity + Observations about Dispersion in Linacs Jean-Francois Ostiguy FNAL.
Managed by UT-Battelle for the Department of Energy Python ORBIT in a Nutshell Jeff Holmes Oak Ridge National Laboratory Spallation Neutron Source Space.
Warm linac simulations (DTL) and errors analysis M. Comunian F. Grespan.
Fast Ion Instability Study G. Rumolo and D. Schulte CLIC Workshop 2007, General introduction to the physics of the fast ion instability Fastion.
Review of Alignment Tolerances for LCLS-II SC Linac Arun Saini, N. Solyak Fermilab 27 th April 2016, LCLS-II Accelerator Physics Meeting.
Şerban Udrea, Peter Forck, GSI
LCLS Commissioning & Operations High Level Software
402.5 MHz Debunching in the Ring
ILC Z-pole Calibration Runs Main Linac performance
Andrei Shishlo ORNL SNS Project Florence, Italy November 2015
Designing Software for Ease of Extension and Contraction
LCLS Commissioning & Operations High Level Software
Model-Driven Analysis Frameworks for Embedded Systems
What am I working on… H. Loos 08/02/2010.
An Introduction to Software Architecture
Baisc Of Software Testing
Metadata The metadata contains
Physics 417/517 Introduction to Particle Accelerator Physics
Sawtooth effect in CEPC PDR/APDR
Presentation transcript:

CHRISTOPHER K. ALLEN, ORNL HIROYUKI SAKO, JAEA MASANORI IKEGAMI, KEK GUOBAO SHEN, JAEA HIROSHI IKEDA, VIC TOMOHIRO OHKAWA, JAEA AKIRA UENO, JAEA XAL Online Model Enhancements for J-PARC Commissioning and Operation* *Work supported by KEK under a foreign visiting researcher grant

Abstract The XAL application development environment has been installed as a part of the control system for the Japan Proton Accelerator Research Center (J-PARC). XAL was initially developed at the Spallation Neutron Source (SNS) and has been described at length previously. Included in XAL is an online model for doing quick physics simulations. We outline the upgrades and enhancements to the XAL online model necessary for accurate simulation of the J-PARC linac and transport system. Outline 1. Motivation/Background 2. Space Charge Verification 3. Probe Component Refactoring 4. Algorithm Component Refactoring 5. Element Refactoring/Additions 6. Conclusion 2 10/15/2007 ICALEPCS 2007

J-PARC Facility SNS Facility 10/15/2007 ICALEPCS XAL: Moving beyond Version 1.0 XAL is installed at both facilities (although modifications were necessary) (Nice work Sako-san!)

1. Motivation 10/15/2007 ICALEPCS XAL was originally designed to be site- independent. However, it is difficult to consider “everything.” Also, SNS schedule pressures forced several site- specific “short-cuts.” Modifications were necessary to generalize some aspects of XAL and to add features specific to J-PARC operation. Many new features were added to the online model since its inception. The implementation was becoming brittle.

5 10/15/ Original XAL Conceptual Design XAL was designed with the following objectives:  High-level connection management  Hware representation (introspective)  Tool suite  Fast simulation (online model) Here we consider modifications to the model component of XAL XAL Meeting - ICALEPCS Background: XAL Architecture

Element Algorithm Probe XAL Online Model implementation based upon Malitsky’s Element/Algorithm/Probe design pattern. The online model is divided into three corresponding software components, all encapsulated with the Scenario class. 6 10/15/2007 ICALEPCS Online Model Architecture

2. Space Charge Effects Verification 10/15/2007 ICALEPCS After exhaustive verification process online model and Trace3D show exact agreement Located, coalesced, and corrected physical and mathematical constants in Trace3D XAL steps exactly like Trace3D  Previously both used methods accurate to O(h 3 ), but errors accumulate and affect simulation Fixed several bugs in online model  Off-centered envelope tracking error  Lorentz-transform error  Tilted-beam error SPACE CHARGE ALGORITHM Lorentz transform to beam frame Geometric transform from synchronous frame to ellipsoid “natural coordinate frame” Apply electric field kick (elliptic integrals) Inverse transforms

3. Probe Component: Original 10/15/2007 ICALEPCS Recall Probe objects model aspects of beam (e.g., centroid, envelope, etc.) BeamProbe hierarchy became dangerously inconsistent Beam current and beam charge were fundamental attributes  Frequency could be computed EnvelopeProbe contained redundant state information  Covariance matrix (2 nd moments)  Twiss parameters - Covariance generalizes Twiss parameters - Two state variables had separate dynamics - Heavy-weight simulation data

3. Probe Component: Refactored 10/15/2007 ICALEPCS BeamProbe hierarchy refactored Renamed BunchProbe to reflect changes Beam current, bunch frequency fundamental attributes Twiss parameters given separate Probe class TwissProbe TwissProbe  Lightweight variant of EnvelopeProbe  Ignores phase coupling

Original Refactored 10/15/2007 ICALEPCS Algorithm Component (Recall Algorithm objects propagate Probe s through Element s ) Automated probe initialization

5. Bending Dipole Element 10/15/2007 ICALEPCS There were originally two implementations of a bending dipole ThickDipole  Modeled design trajectory effects  No space charge effects (did not conform to architecture) IdealMagWedgeDipole  No design trajectory effects  Facilitated space charge effects The problem occurs when modeling pole face effects  Make bending dipole a composite element ThickDipole and Space Charge Mechansim

5. Bending Dipole Element Refactored 10/15/2007 ICALEPCS IdealMagWedgeDipole Composite element consists of  Two pole face as thin lenses  One magnet body that is space charge compliant Moved design path dynamics of ThickDipole into magnet body of composite element

5. RF Gap Modeling Element 10/15/2007 ICALEPCS With an RF gap, emittance can increase from a finite longitudinal phase spread   This mechanism was added to the XAL online model  Implemented in Algorithm component for EnvelopeProbe  Implemented the same model as Trace3D It was discovered that the Trace3D model is invalid in the longitudinal direction  Trace3D uses an approximation accurate only for  <<  Emittance growth blows up as   

5. RF Gap Modeling Element Emittance increase can be represented as an additive term  where  s is synchronous phase and growth function G has form  T and S are bounded functions with limits of ½ and 0, respectively  Plot T(  )  S(  ) to see worst- case emittance growth  Trace3D emittance growth inaccurate for long (debunched) beams 10/15/ ICALEPCS 2007 Longitudinal G(90,  ) for different distributions Longitudinal G(90,  ) including Trace3D

6. Conclusion 10/15/2007 ICALEPCS Many new features have been added to the online model since its original design, both at SNS and at J-PARC. The overall result of this work was not only the addition of new capabilities, but importantly re-engineering of the software to accommodate these mechanisms in a framework that is  Robust  Understandable  Maintainable

10/15/2007 ICALEPCS

BeamProbe Hierarchy 10/15/2007 ICALEPCS The Shock and Awe approach to interface design Obfuscating form and function Write code nobody can read Make it brittle so nobody will touch it Create dangerous situations which explode only when it really counts Question: what do you get when you call BeamProbe.getTwiss() ? Moral  Refactoring is good It may not be sexy but it will save a lot of future time and anguish BeamProbe moments() : PhaseMatrix //2 nd moments twiss () {moments(). compTwiss() } getTwiss() { return twiss() } ` EnvelopeProbe covariance : PhaseMatrix // 2 nd moments twiss : Twiss[3] // Twiss parameters moments() : { return covariance } ‘ twiss() : { covariance.compTwiss() } getTwiss() : { return twiss } ‘