1 Bunched-Beam Envelope Simulation with Space Charge within the SAD Environment Christopher K. Allen Los Alamos National Laboratory.

Slides:



Advertisements
Similar presentations
Time averages and ensemble averages
Advertisements

Two-dimensional Effects on the CSR Interaction Forces for an Energy-Chirped Bunch Rui Li, J. Bisognano, R. Legg, and R. Bosch.
IIAA GPMAD A beam dynamics code using Graphics Processing Units GPMAD (GPU Processed Methodical Accelerator Design) utilises Graphics Processing Units.
Integrals over Operators
5/3/2015J-PARC1 Transverse Matching Using Transverse Profiles and Longitudinal Beam arrival Times.
J. Rudolph, Helmholtz-Zentrum Berlin EuCARD 2nd ANNUAL MEETING Slice emittance measurements at the ELBE superconducting RF photoinjector.
1 ILC Bunch compressor Damping ring ILC Summer School August Eun-San Kim KNU.
Computer science is a field of study that deals with solving a variety of problems by using computers. To solve a given problem by using computers, you.
Some Ideas Behind Finite Element Analysis
Evan Walsh Mentors: Ivan Bazarov and David Sagan August 13, 2010.
Transverse optics 2: Hill’s equation Phase Space Emittance & Acceptance Matrix formalism Rende Steerenberg (BE/OP) 17 January 2012 Rende Steerenberg (BE/OP)
Bars and Beams FEM Linear Static Analysis
Chapter 1 Introduction The solutions of engineering problems can be obtained using analytical methods or numerical methods. Analytical differentiation.
Review of Matrix Algebra
Lattice calculations: Lattices Tune Calculations Dispersion Momentum Compaction Chromaticity Sextupoles Rende Steerenberg (BE/OP) 17 January 2012 Rende.
Introduction to Longitudinal Phase Space Tomography Duncan Scott.
Differential Equations
Introduction Status of SC simulations at CERN
Magnetic Compression of High Brightness Beams: Survey of Experimental Results Scott G. Anderson ICFA Sardinia July 2002.
Quadrupole Transverse Beam Optics Chris Rogers 2 June 05.
Laslett self-field tune spread calculation with momentum dependence (Application to the PSB at 160 MeV) M. Martini.
Simulation of direct space charge in Booster by using MAD program Y.Alexahin, N.Kazarinov.
R. Kass/W03P416/Lecture 7 1 Lecture 7 Some Advanced Topics using Propagation of Errors and Least Squares Fitting Error on the mean (review from Lecture.
Ch 9 pages Lecture 23 – The Hydrogen Atom.
An introduction to the finite element method using MATLAB
1 Bunched-Beam RMS Envelope Simulation with Space Charge Christopher K. Allen Los Alamos National Laboratory.
Incoherent pair background processes with full polarizations at the ILC Anthony Hartin JAI, Oxford University Physics, Denys Wilkinson Building, Keble.
CHRISTOPHER K. ALLEN, ORNL HIROYUKI SAKO, JAEA MASANORI IKEGAMI, KEK GUOBAO SHEN, JAEA HIROSHI IKEDA, VIC TOMOHIRO OHKAWA, JAEA AKIRA UENO, JAEA XAL Online.
Development of Simulation Environment UAL for Spin Studies in EDM Fanglei Lin December
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.
Transition from isotropic to anisotropic beam profiles in a uniform linear focusing channel Wilson Simeoni Jr In space-charge dominated beams the nonlinear.
Progress in identification of damping: Energy-based method with incomplete and noisy data Marco Prandina University of Liverpool.
Statistical Description of Charged Particle Beams and Emittance Measurements Jürgen Struckmeier HICforFAIR Workshop.
Simulation of direct space charge in Booster by using MAD program Y.Alexahin, A.Drozhdin, N.Kazarinov.
Serge Andrianov Theory of Symplectic Formalism for Spin-Orbit Tracking Institute for Nuclear Physics Forschungszentrum Juelich Saint-Petersburg State University,
Illustration of FE algorithm on the example of 1D problem Problem: Stress and displacement analysis of a one-dimensional bar, loaded only by its own weight,
Stephan I. Tzenov STFC Daresbury Laboratory,
J-PARC Trace3D Upgrades Christopher K. Allen Los Alamos National Laboratory.
Comparison between simulations and measurements in the LHC with heavy ions T. Mertens, R. Bruce, J.M. Jowett, H. Damerau,F. Roncarolo.
Optics considerations for ERL test facilities Bruno Muratori ASTeC Daresbury Laboratory (M. Bowler, C. Gerth, F. Hannon, H. Owen, B. Shepherd, S. Smith,
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.
S. Molloy, P. Emma, J. Frisch, R. Iverson, M. Ross, D. McCormick, M. Woods, SLAC, CA, USA S. Walston, Lawrence Livermore National Laboratory, CA, USA V.
CHAP 3 WEIGHTED RESIDUAL AND ENERGY METHOD FOR 1D PROBLEMS
Collimator wakefields - G.Kurevlev Manchester 1 Collimator wake-fields Wake fields in collimators General information Types of wake potentials.
Midwest Accelerator Physics Meeting. Indiana University, March 15-19, ORBIT Electron Cloud Model Andrei Shishlo, Yoichi Sato, Slava Danilov, Jeff.
Tuesday, 02 September 2008FFAG08, Manchester Stephan I. Tzenov1 Modeling the EMMA Lattice Stephan I. Tzenov and Bruno D. Muratori STFC Daresbury Laboratory,
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.
SubtopicLearning objectives Before After Length and time Use and describe the use of rules and measuring cylinders to calculate a length or a volume Use.
Modelling and Simulation of Passive Optical Devices João Geraldo P. T. dos Reis and Henrique J. A. da Silva Introduction Integrated Optics is a field of.
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.
Lecture 4 - E. Wilson - 23 Oct 2014 –- Slide 1 Lecture 4 - Transverse Optics II ACCELERATOR PHYSICS MT 2014 E. J. N. Wilson.
RMS Dynamic Simulation for Electron Cooling Using BETACOOL He Zhang Journal Club Talk, 04/01/2013.
BBFP J. Wei’s Fokker-Planck solver for bunched beams November 21 st, 2007 CLIC Beam dynamics meeting Y. Papaphilippou.
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.
Intra-Beam scattering studies for CLIC damping rings A. Vivoli* Thanks to : M. Martini, Y. Papaphilippou *
Lecture 4 - E. Wilson –- Slide 1 Lecture 4 - Transverse Optics II ACCELERATOR PHYSICS MT 2009 E. J. N. Wilson.
Prebunching electron beam and its smearing due to ISR-induced energy diffusion Nikolai Yampolsky Los Alamos National Laboratory Fermilab; February 24,
Warm linac simulations (DTL) and errors analysis M. Comunian F. Grespan.
CORRELATION-REGULATION ANALYSIS Томский политехнический университет.
Numerical Simulations for IOTA Dmitry Shatilov BINP & FNAL IOTA Meeting, FNAL, 23 February 2012.
Hanyang University Antennas & RF Devices Lab. ANTENNA THEORY ANALYSIS AND DESIGN Prof. Jaehoon Choi Dept. of Electronics and Computer Engineering
OPERATED BY STANFORD UNIVERSITY FOR THE U.S. DEPT. OF ENERGY 1 Alexander Novokhatski April 13, 2016 Beam Heating due to Coherent Synchrotron Radiation.
402.5 MHz Debunching in the Ring
Electron Cooling Simulation For JLEIC
Lecture 4 - Transverse Optics II
Lecture 4 - Transverse Optics II
Christopher K. Allen Los Alamos National Laboratory
Accelerator Physics Statistical Effects
Presentation transcript:

1 Bunched-Beam Envelope Simulation with Space Charge within the SAD Environment Christopher K. Allen Los Alamos National Laboratory

Dec, 2005 C.K. Allen 2 Abstract The capability for simulating the envelopes of three-dimensional (bunched) beams has been implemented in the SAD accelerator modeling environment. The simulation technique itself is similar to that of other common envelope codes, such as Trace3D, TRANSPORT, and the XAL online model. Specifically, we follow the second-order statistics of the beam distribution rather than tracking individual particles. If we assume that the beam maintains ellipsoidal symmetry in phase space, we can include the first order effects due to space charge using a semi-analytic model. This is the attractive characteristic of envelope codes, since it greatly reduces computational time. This new feature of SAD is implemented primarily in the SADScript interpreted language, with only a small portion appearing as compiled code. As such, the simulation does run slower than other compiled envelope codes such as TRACE3D or XAL, however, as interpreted code it does have the benefit of being easily modified. We demonstrate use of the new feature and present example simulations of the J-PARC linear accelerator section.

Dec, 2005 C.K. Allen 3 Outline 1. Overview 1. Motivation 2. Basic Approach 2. Envelope Dynamics Review 3. SADScript Implementation 4. (Field Calculations) 5. Simulation Results 6. Issues and Conclusions

Dec, 2005 C.K. Allen 4 1. Overview Motivation To have envelope simulation capability for three-dimensional (bunched) beams, including space-charge, within the SAD environment. Such an engine is useful for\ Model reference (Fast) Low energy electron simulation Proton simulation Longitudinal effects

Dec, 2005 C.K. Allen 5 1. Overview (cont.) RMS Envelope – Approach Used Within SAD Environment The simulation principle is that same as that used by Trace3D and TRANSPORT. Specifically, it is an extension of linear beam optics to the second-order moment dynamics. For a beam optics model we require a matrix  sc to account for the linear part of the space-charge force, it is accurate only over short distances  s. In the SAD environment we are given the full transfer matrix  n for each element n. We must take the N th root of each  n where N = L n /  s is the number of space charge “kicks” to be applied within the element. The space charge matrix  sc depends upon the second moments, however, by the dynamics equations the second moments  depend upon  sc. Thus, we have self-consistency issues and must employ a propagation algorithm that maintains a certain level of consistency.

Dec, 2005 C.K. Allen 6 2. Envelope Dynamics Review RMS envelope simulation is based on the following: Phase space coordinates z = (x x’ y y’ z dp) T Linear beam optics - transfer matrices z n+1 =  n z n Moment operator ,  g    g(z)f(z)d 6 z Moment matrix  =  zz T  Propagation of moment matrix  n+1 =  n  n  n T

Dec, 2005 C.K. Allen 7 2. Envelope Dynamics Review (cont.)  The moment matrices {  n } propagate down the beamline according to  n+1 =  n  n  n T where the {  n } are transfer matrices for each lattice elements  To include space charge effects we must determine the self forces (from  ) then augment the dynamics  n+1 =  n  n  n T accordingly.  The quantity    6  6 is the matrix of second-order moments of the beam distribution given by

Dec, 2005 C.K. Allen 8 3. SADScript Implementation Overview Register the beamline with the SAD environment using GetMAIN[latticeFile] where latticeFile is the input deck describing the machine Acquire the set of transfer matrices {  n } and lengths {L n } for all beamline elements from the SAD environment Take the N th root of each transfer matrix where N is the number of space charge “kicks” to be applied within the element. This is done using the matrix logarithm function. Propagate moment matrix  through each element using above transfer matrix and the space charge matrix  sc computed for each step  s

Dec, 2005 C.K. Allen 9 3. SADScript Implementation (cont.) Initialization  We can obtain {  n } and {L n }, the lengths of the elements, from calls to the SAD environment {  n } = TransferMatrices/.Emittance[Matrix->True]; {L n } = LINE[“LENGTH”];  The initial moment matrix  0 is built from the initial Twiss parameters  0 = CorrelationMatrix6D[{ , ,  } x, { , ,  } y, { , ,  } z ]

Dec, 2005 C.K. Allen SADScript Implementation (cont.) Sub-Dividing Beamline Elements (the N th root of  n )  The transfer matrix  n for an element n has the form  n = exp(L n F n ) where L n is the length of the element and F n is the generator matrix which represents the external forces of element n.  To sub-divide element n, we require the matrix F n, given by F n = log(  n )/L n  The “sub-transfer matrix”  n (  s) for element n can then be computed as  n (  s)= exp(  sF n )

Dec, 2005 C.K. Allen SADScript Implementation (cont.) Transfer Matrices with Space Charge  Whether using the equations of motion or Hamiltonian formalism, within a section  s of a element n we can write the first-order continuous dynamics as z’(s) = F n z(s) + F sc (  )z(s) where the matrix F n represents the external force of element n and F sc (  ) is the matrix of space charge forces.  For F sc (  ) constant, the solution is z(s) = exp[s(F n + F sc )]z 0.  Thus, the full transfer matrix including space charge should be  n = exp[  s(F n +F sc )]

Dec, 2005 C.K. Allen SADScript Implementation (cont.) Numerical Efficiency  For a step size of  s, rather than computing the “exact” transfer matrix  n (  s) = exp[  s(F n +F sc )], we compute a transfer matrix which is second-order accurate in  s.  Note that  n (  s) =  sc (  s/2)  n (  s)  sc (  s/2) + O(  s 3 ) where  n (  s) = exp(  sF n ) (computed once per element)  sc (  s/2) = exp(  s/2F sc ) = I +  s/2F sc (by idempotency, F sc 2 = 0) We have reduced a matrix exponentiation at each step s to one matrix addition and two matrix multiplications

Dec, 2005 C.K. Allen SADScript Implementation SADScript Modules and Some Notable Functions  oldsad/Packages/Scheff.n  {{s n },{  n },{  n }} = ScheffSimulate[K 0,  0,  s:0.01]  {{s n },{  n },{  n }} = GetBeamLineElementData[]  SaveBeamMatrixData[file, {s n }, {  n }, {  n }]  oldsad/Packages/Trace3dToSad.n  K = ComputePerveance[f, E r, W, Q]  { , ,  } SAD = TraceToSadTransTwiss[{ , ,  } T3D ]  { , ,  } SAD = TraceToSadLongTwiss[f, E r, W, { , ,  } T3D ]  oldsad/Packages/TwissUtility.n   = CorrelationMatrix6D[{ , ,  } x, { , ,  } y, { , ,  } z ]  oldsad/Packages/MatrixFunctions.n  F = MatrixLog[  ]   = MatrixExp[F]

Dec, 2005 C.K. Allen Field Calculations  Space charge effects are included by assuming the beam has ellipsoidal symmetry with dimensions corresponding to the statistics in . f(z) = f(z T   1 z)  Analytic field expressions for such a bunch distributions are available where a, b, c, are the semi-axes of the ellipsoid (depends upon  ) and (x,y,z) are the coordinates along the semi-axes

Dec, 2005 C.K. Allen Field Calculations (cont.) Coordinate Transformations  To apply the previous formula for  we must rotate to the coordinates of the beam ellipsoid semi-axes using a transformation R  SO(3)  SO(6).  Moreover, we require a transformation G = diag(1,1,1,1, ,1/  ) to convert longitudinal coordinates from (z,dp) to (z,z’) (momentum to primed)  The complete transformation is  = R T G T  GR where the  xy ,  xz ,  yz  elements of  are zero It is important that this transform is numerically accurate!

Dec, 2005 C.K. Allen Field Calculations (cont.) Take the Linear Part of the Electric Fields To each electric self-field component E x, E y, E z is expanded in the form E x = a 1 x + a 2 y + a 3 z(e.g., for x plane) Multiplying the above equation by the functions {x,y,z} then taking moments if  xy  =  xz  =  yz  (transform GR) we have This is the weighted, least-squares, linear approximation for the self fields

4. Field Calculations (cont.) Field Moments For ellipsoidal beams having a density distribution f, the self-field moments can be calculated from  and are given by the following: where  (f) is almost constant (F. Sacherer) and R D is the elliptic integral

Dec, 2005 C.K. Allen Field Calculations (cont.) Space Charge Generator Matrix Thus, the full space charge generator matrix F sc (  ) is given by where

5. Simulation Results J-PARC BT Line Simulation  Show SADScript envelope simulation of the J-PARC BT line for several cases  Zero current  30 mA  130 mA  Compare the SADScript envelope simulation to simulations provided by Trace3D Notable differences  Trace3D does not impose symplectic condition  Trace3D can simulate emittance growth thru RF Gaps (removed)

5. J-PARC Simulation 0 mA Horizontal  x (s)Vertical  y (s) Longitudinal  z (s)

5. J-PARC Simulation 30 mA Horizontal  x (s)Vertical  y (s) Longitudinal  z (s)

5. J-PARC Simulation 130 mA Horizontal  x (s) Vertical  y (s) Longitudinal  z (s)

Dec, 2005 C.K. Allen Issues  Computation of the matrix logarithm log(  n ) is expensive. Current procedure uses an iterative technique which computes a matrix exponential exp(F n ) at each step The procedure works for  n close to the identity matrix I  It is not robust, but it should suffice for symplectic matrices  Computation of the matrix exponential exp(F n ) is also non-trivial Use a Taylor expansion with scaling and squaring.

Dec, 2005 C.K. Allen Issues (cont.)  Currently only a simple stepping procedure is employed. The step size  s remains constant throughout simulation By implementing an adaptive stepping algorithm we can obtain significant speedup and maintain a specified level of accuracy in the solution (see “Bunched Beam Envelope Simulation with Space Charge”, KEK, Jan 20, 2005.)  The longitudinal space charge force seems to be slightly stronger in all SAD simulations as compared to Trace3D. I have debugged the SAD code extensively and have not found any errors in the theory or implementation. I believe this condition is simply a result of the difference in simulation architecture, but I may be wrong.

Dec, 2005 C.K. Allen Conclusions  A major issue is computational speed For the J-PARC simulation Trace3D runs on the order of 0.5 seconds SAD ScheffSimulate runs on the order of 0.5 minutes By implementing the adaptive stepping and/or implementing the computationally expensive functions as compiled code we should see significant speedup. Only the elliptic integral function R D (x,y,z) in implemented in compiled code. Implementing MatrixExp() as compile code would be the most cost-effective  The small difference in longitudinal dynamics between SAD and Trace3D may be an artifact of the different approaches. However, I am not sure.

Dec, 2005 C.K. Allen SADScript Implementation  Initialization Load the beamline information from the target “input deck” We acquire all the transfer matrices {  n } and all the element lengths {L n }  Space Charge Compute the partial transfer matrix  n (  s) where  s = L n /N Compute space charge transfer matrix  sc for a distance  s. Combine  n (  s) and  sc for full transfer matrix  n,sc (  s)  Propagation Propagate  n through element using  i+1 =  n,sc (  s)  i  n,sc (  s) T recomputing  n,sc (  s) as necessary Propagate {  n } through beamline using above procedure for each element n.

Dec, 2005 C.K. Allen SADScript Implementation (cont.) Beam Dynamics with Space Charge To include space charge effects we must determine the self forces then augment the dynamics  n+1 =  n  n  n T to include them. To propagate the moment matrix  n through an element we must compute a transfer matrix  n,sc that includes space charge. Such a transfer matrix can only be computed accurately for a short distance  s < Ln We must divide each beamline element into sub-elements of length  s having the appropriate transfer matrix N  n We apply the dynamics  n+1 = N  n  n N  n T many times, recomputing We use a “kick-like” approach - correcting the beam state at regular intervals through each element We divide each beamline element into sub-elements of length  s We represent the self force through  s as a transfer matrix  sc Because the self forces depend upon the beam shape, the matrix self force transfer matrix  sc depends upon the moment matrix 