SASE optimization with OCELOT Sergey Tomin other co-workers: I. Agapov, G. Geloni, I. Zagorodnov.

Slides:



Advertisements
Similar presentations
1 Optimal focusing lattice for XFEL undulators: Numerical simulations Vitali Khachatryan, Artur Tarloyan CANDLE, DESY/MPY
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,
SPEAR3 short pulse development J. Safranek for the SSRL accelerator physics group* Outline: Timing mode fill patterns Short bunches –Low alpha Bunch length.
1 ILC Bunch compressor Damping ring ILC Summer School August Eun-San Kim KNU.
Tests of DFS and WFS at ATF2 Andrea Latina (CERN), Jochem Snuverink (RHUL), Nuria Fuster (IFIC) 18 th ATF2 Project Meeting – Feb – LAPP, Annecy.
RF Tweak 5 Tool for FLASH and XFEL
E. Schneidmiller and M. Yurkov (SASE & MCP) C. Behrens, W. Decking, H. Delsim, T. Limberg, R. Kammering (rf & LOLA) N. Guerassimova and R. Treusch (PGM.
Beam position monitors LCABD Plenary meeting Bristol, 24th March 2009 A. Aryshev, S. T. Boogert, G. Boorman, S. Molloy, N. Joshi JAI at Royal Holloway.
Online Data Analysis and Simulation Sven Reiche UCLA - 09/22/04 Sven Reiche UCLA - 09/22/04.
Overview of Proposed Parameter Changes Linac Coherent Light Source Stanford Synchrotron Radiation Laboratory Stanford Linear Accelerator.
Henrik Loos High Level 17 June 2008 High Level Physics Applications for LCLS Commissioning Henrik Loos.
Searching for Quantum LOVE at the Australian Synchrotron Light Source Eugene Tan On behalf of Rohan Dowd 120/10/2010Eugene Tan – IWLC 2010, Genega ASLS.
CLIC programme at FACET Update on CERN-BBA A. Latina, J. Pfingstner, G. De Michele, D. Schulte (CERN) E. Adli (Univ. of Oslo), J. Resta Lopez (IFIC) In.
FEL Beam Dynami cs FEL Beam Dynamics T. Limberg FEL driver linac operation with very short electron bunches.
Summary of AWG4: Beam Dynamics A. Latina (CERN), N. Solyak (FNAL) LCWS13 – Nov 11-15, 2013 – The University of Tokyo, Japan.
Simulation of direct space charge in Booster by using MAD program Y.Alexahin, N.Kazarinov.
Matching recipe and tracking for the final focus T. Asaka †, J. Resta López ‡ and F. Zimmermann † CERN, Geneve / SPring-8, Japan ‡ CERN, Geneve / University.
S2E in LCLS Linac M. Borland, Lyncean Technologies, P. Emma, C. Limborg, SLAC.
SPPS, Beam stability and pulse-to-pulse jitter Patrick Krejcik For the SPPS collaboration Zeuthen Workshop on Start-to-End Simulations of X-ray FEL’s August.
Beam dynamics on damping rings and beam-beam interaction Dec 포항 가속기 연구소 김 은 산.
FLS2006 Workshop, HamburgEduard Prat, DESY DISPERSION MEASUREMENT AND CORRECTION IN THE VUV-FEL (FLASH) Winni Decking, Torsten Limberg, Eduard Prat 37th.
Undulator parameters choice/wish based on a simplified XFEL cost model Jürgen Pfingstner 29 st of July 2015.
Simulation of direct space charge in Booster by using MAD program Y.Alexahin, A.Drozhdin, N.Kazarinov.
FMAP_Workshop - April 1, 2004 Frequency Map Calculation for the Advanced Light Source David Robin Advanced Light Source work done in collaboration with.
B. FaatzS2E workshop, August 18-22, XFEL simulations with GENESIS Outline: Undulator layout (real/simulated) Matching Genesis.
Beam Dynamics and FEL Simulations for FLASH Igor Zagorodnov and Martin Dohlus Beam Dynamics Meeting, DESY.
SFLASH  SASE interference setup & optics rough estimation 1d estimation 3d estimation summary.
Managed by UT-Battelle for the Department of Energy Using Online Single Particle Model for SNS Accelerator Tuning Andrei Shishlo, Alexander Aleksandrov.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Office of Science U.S. Department of Energy Containing a.
Low emittance tuning in ATF Damping Ring - Experience and plan Sendai GDE Meeting Kiyoshi Kubo.
6-D dynamics in an isochronous FFAG lattice e-model Main topic : Tracking code development : 3-D simulation of the field in an isochronous FFAG optics.
1 Alternative ILC Bunch Compressor 7 th Nov KNU (Kyungpook National Univ.) Eun-San Kim.
1 Dynamic aperture studies in e+e- factories with crab waist IR’07, November 9, 2007 E.Levichev Budker Institute of Nuclear Physics, Novosibirsk.
1 EMMA Tracking Studies Shinji Machida ASTeC/CCLRC/RAL 4 January, ffag/machida_ ppt & pdf.
Y. R. Roblin Hall A beamline and accelerator status.
Design options for emittance measurement systems for the CLIC RTML R Apsimon.
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.
… 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.
Beam Optics of the TTF2 Nina Golubeva DESY. Beam optics from the BC2 up to the undulators General introduction to linear optics: – constraints for different.
SLAC LET Meeting Global Design Effort 1 CHEF: Recent Activity + Observations about Dispersion in Linacs Jean-Francois Ostiguy FNAL.
Experience with Novosibirsk FEL Getmanov Yaroslav Budker INP, Russia Dec. 2012, Berlin, Germany Unwanted Beam Workshop.
What did we learn from TTF1 FEL? P. Castro (DESY).
Beam-based alignment techniques for linacs Masamitsu Aiba, PSI BeMa 2014 workshop Bad Zurzach, Switzerland Thanks to Michael Böge and Hans Braun.
Simulation for Lower emittance in ATF Damping Ring Kiyoshi Kubo Similar talk in DR WS in Frascati, May 2007 Most simulations were done several.
Overview Preparatory work at the MML BBA to define the reference orbit
LCLS Commissioning & Operations High Level Software
Arun Saini, N. Solyak Fermi National Accelerator Laboratory
Orbit Response Matrix Analysis
Benchmarking MAD, SAD and PLACET Characterization and performance of the CLIC Beam Delivery System with MAD, SAD and PLACET T. Asaka† and J. Resta López‡
LLRF'15 Workshop, Shanghai, Nov. 4, 2015
Slice Parameter Measurements at the SwissFEL Injector Test Facility
New algorithms for tuning the CLIC beam delivery system
Coupling Correction at the Australian Synchrotron
Beam Optics Set-Up at SLAC End Station A
LCLS Commissioning & Operations High Level Software
Update on Dark current generation in ILC Main Linac
6-D dynamics in an isochronous FFAG lattice e-model
ICFA Mini-Workshop, IHEP, 2017
OCELOT orbit correction and optimizer
Two-bunch self-seeding for narrow-bandwidth hard x-ray FELs
Quadrupole error localization using Response Fits
High Level Physics Applications for LCLS Commissioning
Linac Diagnostics Patrick Krejcik, SLAC April 24, 2002
Linac Physics, Diagnostics, and Commissioning Strategy P
PS2 meeting NMC lattice for PS2 Y. Papaphilippou September 28th, 2007.
Linac Design Update P. Emma LCLS DOE Review May 11, 2005 LCLS.
Sawtooth effect in CEPC PDR/APDR
BEAM REALISTIC ERROR ORBIT IMPACT ON SASE PERFORMANCE
Progress on Non-linear Beam Dynamic Study
Status of IR / Nonlinear Dynamics Studies
Presentation transcript:

SASE optimization with OCELOT Sergey Tomin other co-workers: I. Agapov, G. Geloni, I. Zagorodnov

Motivation How it works Recent results of empirical tuning at FLASH (model-free optimization) OCELOT features in beam dynamics simulations Extending of empirical tuning by model-depending optimization Summary Outline

The major motivation is the economic benefit of improving facility availability and performance through more effective and faster tuning Motivation

How it works Optimizer corr. 1 – Nc quad. 1 – Nq sext. 1 – Ns bend. 1 – Nb Cavit. 1 - Ncv Undul. SASE det. BLM Typical tuning sequence for FLASH:  V14, V7, H10, H12, H3, V3  Q13SMATCH, Q14SMATCH, Q15SMATCH  FODO QUADS  intra-undulator orb. correctors  RF phases and Voltages Orbit correctors and FODO quads have largest impact All steps programmed to avoid electron beam losses in the undulators above threshold (solutions above 0.7 alarm level highly penalized and above alarm level forbidden)..

How it works from ocelot.utils.mint.mint import Optimizer, Action, TestInterface from flash1_interface import FLASH1MachineInterface, FLASH1DeviceProperties #from lcls_interface import LCLSMachineInterface, LCLSDeviceProperties dp = FLASH1DeviceProperties() mi = FLASH1MachineInterface() opt = Optimizer(TestInterface(), dp) opt.log_file = 'test.log' opt.timeout = 1.2 seq1 = [Action(func=opt.max_sase, args=[ ['H10SMATCH','H12SMATCH'], 'simplex'] ) ] seq2 = [Action(func=opt.max_sase, args=[ ['V14SMATCH','V7SMATCH'], 'simplex' ] )] seq3 = [Action(func=opt.max_sase, args=[ ['Q13SMATCH','Q15SMATCH'], 'simplex' ] )] opt.eval(seq1) #opt.eval(seq1 + seq2 + seq3 + seq4 + seq5) Python script

Automatic SASE tuning works in a few minutes if the machine is in initially stable condition Demonstrated at several wavelengths (17nm, 13.5nm, 10.4 nm, 7 nm) with different bunch filling at about 0.3 nC charge Experience of model-free optimization at FLASH

For optimization is necessary initial SASE signal To check repeatability of the optimization techniques we repeated the same experiment after resetting correctors to initial values

after resetting correctors

… and after correctors cycling

Extended set of correctors used Was logged all changes what OCELOT optimizer did but without online processing H12SMATCH: I = A

H3UND4: I = 0.5 A

Resume The empirical tuning works and was demonstrated at FLASH at several wavelengths (17nm, 13.5nm, 10.4 nm, 7 nm) with different bunch filling at about 0.3 nC charge The method was demonstrated at SLAC (mainly uses quadrupoles in the linac. This tuning procedure they called “Ocelot optimization“) Do not exist universally effective sequence of operations for fast SASE tuning (it is necessary to control the optimization from operator’s side). Stability of the machine operation is necessary. From our experience in ~10-15% cases SASE fluctuations were great and the method does not work. Scalability for XFEL needs to be studied. The optimization is model-free.

Ocelot overview Twiss parameters calculation (CPBD module) Particle tracking (CPBD module) Matching module (CPBD module) Orbit correction module (was implemented for Siberia-2 Light Source at 2013 see Tomin et al., proc. IPAC 2013) (CPBD module) Native module for spontaneous radiation calculation SASE calculations using GENESIS Native module for photon ray tracing Python based Open source OCELOT was designed with on-line capability in mind (see Agapov et al., NIM A ) Developed infrastructure for switching between flight simulator/controls mode with binding to DOOCS and EPICS. Already used for on-line beam control at Siberia-2 and for SASE tuning at FLASH and SLAC.

Developing Charge Particle Beam Dynamics (CPBD) module in OCELOT. FLASH, Q = 1 nC added second order matrices. added space charge solver M.Dohlus and I.Zagorodnov)

Cross-checking with Elegant: Tracking including second order matrices

Cross-checking with Elegant: Current profile at the Start point

Cross-checking with Elegant: Current profile at the End point Using second order matrices

at the Start point of FLASH

at the End point of FLASH

Future plans of development CPBD module Add CSR effect in cooperation with DESY Add wakefield effects in cooperation with DESY Testing and further development symplectic tracking Further development of matching module

Extending of empirical tuning by model-depending optimization Creation of realistic model of accelerator  Visualization of changes during Ocelot optimization.  Orbit steering  Algorithm of strategy selection  Online model ?

Visualization of changes during Ocelot optimization X/Y, m S, m Using converter tpi2k() Vogt) can be calculated relative changes in beam trajectory and in optical functions

Visualization of changes during Ocelot optimization X/Y, m S, m Using converter tpi2k() Vogt) can be calculated relative changes in beam trajectory and in optical functions (?) It can give idea that problem was in horizontal direction

Orbit steering Changing orbit in some point of the lattice to maximize SASE level.

Algorithm of strategy selection Data Base of successful optimizations algorithm of strategy selection (statistical analysis) Optimizer corr. 1 – Nc quad. 1 – Nq sext. 1 – Ns bend. 1 – Nb Cavit. 1 - Ncv Undul. SASE det. BLM Online module (orbit steering) BPM 1 – Nb

Online model of accelerator ? Used last optics file (MAD8 and Elegant) Taken the amplitudes and phases of cavities from control system by PyDoocs Taken quadrupoles currents from the control system and using tpi2k we got the strengths And we got these beta functions…

Reading real orbit and fitting beam trajectory Horizontal plane

Reading real orbit and fitting beam trajectory Vertical plane

Reading real orbit and fitting beam trajectory Quadrupole misalignments Number of quads m Creation of realistic and online model is not simple task.

On-line control python tools have been developed Demonstrated automatic SASE tuning at FLASH and SLAC Proposal for further FLASH beamtime to study more advanced tuning methods has been approved and further developments are ongoing Implementation of GUI for FLASH/XFEL in progress (~ ) Planning of further steps wrt. XFEL.EU is underway. The first step of optimization tool implementation can be beam transmission tuning during commissioning. R&D into more complex tuning methods are needed. Even the simplest empirical tuning methods would bring significant advantage for facility availability. Summary