Simulation codes for high brightness electron beam experiments Luca Giannessi ENEA, C.R. Frascati.

Slides:



Advertisements
Similar presentations
Two-dimensional Effects on the CSR Interaction Forces for an Energy-Chirped Bunch Rui Li, J. Bisognano, R. Legg, and R. Bosch.
Advertisements

Paul Emma SLAC January 14, 2002 BERLIN CSR Benchmark Test-Case Results CSR Workshop.
ILC Accelerator School Kyungpook National University
1 Bates XFEL Linac and Bunch Compressor Dynamics 1. Linac Layout and General Beam Parameter 2. Bunch Compressor –System Details (RF, Magnet Chicane) –Linear.
Linear Collider Bunch Compressors Andy Wolski Lawrence Berkeley National Laboratory USPAS Santa Barbara, June 2003.
SPACE CHARGE EFFECTS IN PHOTO-INJECTORS Massimo Ferrario INFN-LNF Madison, June 28 - July 2.
Performance Analysis Using Genesis 1.3 Sven Reiche LCLS Undulator Parameter Workshop Argonne National Laboratory 10/24/03.
RF EFFECTS IN PHOTO-INJECTORS Massimo Ferrario INFN-LNF Madison, June 28 - July 2.
2 Lasers: Centimeters instead of Kilometers ? If we take a Petawatt laser pulse, I=10 21 W/cm 2 then the electric field is as high as E=10 14 eV/m=100.
CSR calculation in ERL merger section Tsukasa Miyajima KEK, High Energy Accelerator Research Organization 8 November, 2010, 13:30 Mini Workshop on CSR.
Magnetic Compression of High Brightness Beams: Survey of Experimental Results Scott G. Anderson ICFA Sardinia July 2002.
Results from measurement and simulation methods (LW, PIC, Astra) and setup About LW & Astra Simulations of The Pitz Gun comparison LW  Astra more analysis.
Modelling shot noise and coherent spontaneous emission in the FEL Brian McNeil*, Mike Poole & Gordon Robb* CCLRC Daresbury Laboratory, UK *Department.
FEL simulation code FAST Free-Electron Laser at the TESLA Test Facility Generic name FAST stands for a set of codes for ``full physics'' analysis of FEL.
1nC 10ps square pulse, 1 mm uniform transverse laser pulse No Thermal emittance 110MV/m Solenoid kG 1nC 10ps square pulse, 1 mm uniform transverse.
IRPSS: A Green’s Function Approach to Modeling Photoinjectors Mark Hess Indiana University Cyclotron Facility & Physics Department *Supported by NSF and.
Velocity Bunching: experiment at Neptune Photoinjector P. Musumeci UCLA Dept. of Physics and Astronomy.
S2E in LCLS Linac M. Borland, Lyncean Technologies, P. Emma, C. Limborg, SLAC.
Free Electron Lasers (I)
Two Longitudinal Space Charge Amplifiers and a Poisson Solver for Periodic Micro Structures Longitudinal Space Charge Amplifier 1: Longitudinal Space Charge.
Simulation of Microbunching Instability in LCLS with Laser-Heater Linac Coherent Light Source Stanford Synchrotron Radiation Laboratory.
Beam Modulation due to Longitudinal Space Charge Zhirong Huang, SLAC Berlin S2E Workshop 8/18/2003.
FCC electron cloud study plan K. Ohmi (KEK) Mar FCC electron cloud study meeting CERN.
Beam Dynamics and FEL Simulations for FLASH Igor Zagorodnov and Martin Dohlus Beam Dynamics Meeting, DESY.
A bunch compressor design and several X-band FELs Yipeng Sun, ARD/SLAC , LCLS-II meeting.
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.
Max Cornacchia, SLAC LCLS Project Overview BESAC, Feb , 2001 LCLS Project Overview What is the LCLS ? Transition from 3 rd generation light sources.
X-Ray FEL Simulation: Beam Modeling William M. Fawley Center For Beam Physics Lawrence Berkeley National Laboratory ICFA 2003 Workshop.
Beam breakup and emittance growth in CLIC drive beam TW buncher Hamed Shaker School of Particles and Accelerators, IPM.
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.
DEVELOPMENT OF A STEADY STATE SIMULATION CODE FOR KLYSTRONS
3D codes: TraFiC4 and CSRtrack Torsten Limberg DESY Zeuthen 2003.
Change in Program Tuesday Morning Review of 2002 CSR Workshop (T. Limberg, 20 min) CSR calculation Models (M. Dohlus, 40 min) The 3D Codes TraFiC4 and.
NON-WIGGLER-AVERAGED START-TO-END SIMULATIONS OF HIGH-GAIN FREE- ELECTRON LASERS H.P. Freund Science Applications International Corp. McLean, Virginia.
Coupler Short-Range Wakefield Kicks Karl Bane and Igor Zagorodnov Wake Fest 07, 11 December 2007 Thanks to M. Dohlus; and to Z. Li, and other participants.
An overview of TREDI & CSR test cases L. Giannessi – M. Quattromini Presented at “Coherent Synchrotron and its impact on the beam dynamics of high brightness.
July LEReC Review July 2014 Low Energy RHIC electron Cooling Jorg Kewisch, Dmitri Kayran Electron Beam Transport and System specifications.
S2E (start-to-end) Simulations at DESY T. Limberg TESLA Collaboration Meeting in Frascati, May 2003.
Genesis /ALICE Benchmarking Igor Zagorodnov Beam Dynamics Group Meeting
Computational Needs for the XFEL Martin Dohlus DESY, Hamburg.
1 Short Electron Pulses from RF Photoinjectors Massimo Ferrario INFN - LNF.
J. Corlett. June 16, 2006 A Future Light Source for LBNL Facility Vision and R&D plan John Corlett ALS Scientific Advisory Committee Meeting June 16, 2006.
T. Atkinson*, A. Matveenko, A. Bondarenko, Y. Petenev Helmholtz-Zentrum Berlin für Materialien und Energie The Femto-Science Factory: A Multi-turn ERL.
Ultra-short electron bunches by Velocity Bunching as required for Plasma Wave Acceleration Alberto Bacci (Sparc Group, infn Milano) EAAC2013, 3-7 June,
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.
WIR SCHAFFEN WISSEN – HEUTE FÜR MORGEN Pendulum Equations and Low Gain Regime Sven Reiche :: SwissFEL Beam Dynamics Group :: Paul Scherrer Institute CERN.
WIR SCHAFFEN WISSEN – HEUTE FÜR MORGEN Motion in an Undulator Sven Reiche :: SwissFEL Beam Dynamics Group :: Paul Scherrer Institute CERN Accelerator School.
Production of coherent X-rays with a free electron laser based on optical wiggler A.Bacci, M.Ferrario*, C. Maroli, V.Petrillo, L.Serafini Università e.
Beam dynamics for an X-band LINAC driving a 1 keV FEL
Accelerator Physics Topic VIII Coherent Synchrotron Radiation
T. Agoh (KEK) Introduction CSR emitted in wiggler
402.5 MHz Debunching in the Ring
Tunable Electron Bunch Train Generation at Tsinghua University
Sven Reiche UCLA ICFA-Workshop - Sardinia 07/02
Where Do We Stand With Start-End Simulations
Review Lecture Jeffrey Eldred Classical Mechanics and Electromagnetism
Parallel 3D Finite Element Particle-In-Cell Simulations with Pic3P*
Review of Application to SASE-FELs
F. Villa Laboratori Nazionali di Frascati - LNF On behalf of Sparc_lab
L. Giannessi – M. Quattromini
What did we learn from TTF1 FEL?
Beam-Beam Interaction in Linac-Ring Colliders
Superconducting High Brightness RF Photoinjector Design
Status of FEL Physics Research Worldwide  Claudio Pellegrini, UCLA April 23, 2002 Review of Basic FEL physical properties and definition of important.
LCLS Tracking Studies CSR micro-bunching in compressors
Gain Computation Sven Reiche, UCLA April 24, 2002
LCLS FEL Parameters Heinz-Dieter Nuhn, SLAC / SSRL April 23, 2002
Accelerator Physics Synchrotron Radiation
Introduction to Free Electron Lasers Zhirong Huang
Presentation transcript:

Simulation codes for high brightness electron beam experiments Luca Giannessi ENEA, C.R. Frascati

Outline Effects of macroparticles based models Particle In Cells limits Injector –PIC codes –“Quasi static” codes –Point to point –Homdyn Compressor –Point to point relativistic codes –Line charge method FEL –SVEA Approximation –Lorentz equation in FEL’s –Quiet start –Harmonics –Time dependent simulations Conclusions

Maxwell’s equations & Lorentz force INJECTIONFEL SASE TRANSPORT COMPRESSION SELF CONSISTENT DYNAMICS General multibody problem in classical electrodynamics with  bodies !

Only a reduced number of particles can be included in a simulation N=10 6 is already a very large number to be handled numerically In Fourier Space Charge density Example: We assume a normal distribution for x j …. in the limit N  we have i.e. the FT of a Gaussian with rms = 

Noisy region EFFECT OF A REDUCED NUMBER OF PARTICLES ON THE ELECTRON DISTRIBUTION SPECTRUM The effects of noise must be suppressed in the bandwidth of self consistency Noise in the distribution Noise in the fields Self consistency

Specific solution for different problems 10 5 particles “Real” beam particles FEL GUN COMPRESSOR 10 2 particles

PDE METHODS Given charges and currents distributions Calculate new charge & current distributions with the known fields solve Maxwell’s Equations with a PDE Solver (e.g. LeapFrog)

The fields are evaluated on a mesh with spacing (  x,  y,  z ) Accuracy –The highest k vector supported by the mesh is given by –The highest frequency is given by Higher frequencies are “seen” as low frequency components (noise) Stability (Courant condition) Conditions

TIME / SPACE decoherence A LeapFrog algorithm induces decoherence: Magnetic and Electric Fields are not known in the same place at the same time n-1nn+1 m-1 m m+1 B n,m E n+1/2,m+1/2 x y At large  the Lorentz force equation is sensitive to relative errors between E and B components. Cancellation  1/  2 is not correctly reproduced. The requirements on the mesh becomes more strict at large 

Practical cases INJECTORCOMPRESSORFEL Transverse mesh size 10 cm1 cm1 mm Slippage length3 cm10 cm 1  m Cut off wavelength 100  m10  m 1Å1Å # of Mesh vertices (3D) # of Mesh vertices (2D) Integration time16 ps60 ps330 ps Maximum step length 0.3 ps0.03 ps s # of time steps

Specialize the problem INJECTION Space charge FEL Radiation COMPRESSION Space charge/radiation LOW FREQUENCY LOW ENERGY WIDE BAND LOW/MID FREQUENCY HIGH ENERGY WIDE BAND HIGH FREQUENCY HIGH ENERGY NARROW BAND NARROW k

INJECTOR External forces – RF – Solenoids Collective Self Fields Boundary conditions (cathode – walls) High gradient Short pulse  t <<T RF The beam becomes relativistic in the first half cell Transition from laminar to emittance dominaded motion typical  =1/I=100 A/ RF  10 cm/  th  0.3 mm-mrad the simulation length is  4 m (more with vel. bunching) “High Resolution” required to recover  th after acceleration RF-GUN LINAC SOLENOID

INJECTOR 2D PIC Codes: ITACA – Spiffe – etc. Point to point/Point to grid (retarded times): TREDI, Atrap Relax on boundary conditions which are“easily” treated only for flat, perfectly conducting walls (cathode). RF  bunch,  1 Point to point/Point to grid (quasi static): Parmela – GPT – ASTRA etc. + relax on velocity spread  /  <<1 no accel. fields Semi – analitic: HOMDYN + relax: Paraxial approximation  ’<<1 Small slice energy spread   <<1 Uniform bunch distribution & no wave breaking

Maxwell Eq. in 2D (Itaca, Spiffe …) Scalar potential formalism in a 2D axi-symmetric environment A closed sub-set of Maxwell equations, where the field propagation (driven by the source [ ,J] ) can be fully described in terms of a scalar pseudo-potential Wave equation for  calculate E r,E z,H  from  Scalar wave equation + ODE for electric field

SELF FIELDS & Retarded Potentials R(t’) Target Source Trajectories are stored and the fields evaluation requires bracketing of the retarded condition. Cpu – memory consuming Non trivial field reglarization by grid assignement (Parmela mode) “extended particles” requires careful treatment of ret. condition (TREDI, Trafic4, R.Li program for CSR)

Evaluation of fields in “Quasi Static” approx. (Parmela, GPT …) A space-charge mesh centered on a reference particle moves at the  of the particle. Particle coordinates and momenta of are transformed to the frame of this mesh and are assumed at rest. We have indeed The charge is assigned to mesh cells. The electrostatic field at the particles coordinates are given by the sum of Green functions of a charged ring (2D scheff) for each mesh node Apply kicks The coordinates and momenta of the new particle coordinates are transformed back to the lab frame.

Suppression of noise Frequency cut-off with Filter functon Unfiltered Filtered In configuration space where with  x 1  k A charge distribution extended in space reduces high frequency components 3Dim: Gaussian charges (Tredi) – Uniform charges (GPT) 2Dim: ITACA: Rician distribution - Uniform Rings: Parmela – GPT (& CSR codes: 2D Gaussian in R. Li CSR code – “pencil” Gaussian in Trafic4)

HOMDYN (M. Ferrario) multi-envelope model: time dependent space charge of a uniform charged bunch Paraxial approximation  ’<<1 Small energy spread   <<1 Uniform bunch distribution, no wave breaking

Sensitivity to number of  beam s 2D simulation 40 – 300  beam 10 meters on a 2GHz P-IV - execution in << 1’ LNF-00 / 004 (P) M. Ferrario, J. E. Clendenin, D. T. Palmer, J. B. Rosenzweig, L. Serafini “Homdyn Study for the LCLS RF Photo-Injector” - 3 marzo 2000 Courtesy of M. Ferrario

Sparc Injector – Parmela/Homdyn Final emittance: Parmela 0.38 mm-mrad – Homdyn 0.28 mm-mrad (courtesy of M. Ferrario - C. Ronsivalle) SIMULATION 1 nC, 10 psec, r=1 mm, Eth=0 1.6 cell rf-gun. 140 MeV/m 1.5 m drift 2 TW linac 25 MeV/m PARMELA: Np=10000,step=0.1° (GUN)step=1° (elsewhere). Mesh Nr=20,Nz=400. Uniform distribution

Comparison Itaca – Parmela - Homdyne sigr (mm) emitnx (mm.mrad) Z (mm) ITACA PARMELA HOMDYNE Courtesy of L. Serafini

SPARC run with TREDI/Homdyn Homdyn Tredi Tredi z m +2cm Tredi z m +1cm WG1: M. Quattromini – Today 11:00

COMPRESSION R  bb WIDE BAND FEEDBACK Review of S. Anderson Complicate structure of phase space  Sensitive to number of macroparticles Longitudinal & transverse nonlinear forces. Low energy – Space charge High energy - Radiation HIGH FREQUENCY microbunching amplification & uncorrelated Emittance Growth LOW FREQUENCY Correlated energy spread & emittance growth

CSR Simulation Point to point/point to mesh: TRAFIC4, TREDI, R.Li Code … Cartesian geometry in 2D or 3D to correctly evaluate ret. times Extended charges to reduce the noise Effect of shielding included via image charge (TRAFIC4) Line charge method: Elegant, CSR_CALC (Emma), M. Dohlus 1D prog… CSR via line charge treatment (Saldin et. Al. - Extended by Stupakov, Emma EPAC 2002 to include the post-dipole region.) In a dipole: where (s) is the charge density vs long. coordinate in the bunch

Line charge method: Elegant (Borland), CSR_CALC (Emma), M. Dohlus 1D prog. … Neglect transverse beam size No transverse internal forces Neglect Coulomb repulsion Before compression After compression Assume 1D beam for CSR long. field calculation (projected beam) Neglect deformation of the line charge distribution due to ret. evaluation of fields (overestimation of longitudinal fields / underestimation of transverse fields) FAST! particles – < 1 hour (CSR CALC - EMMA) SIMULATION of MICROBUNCHING

ICFA Beam Dynamics mini workshop Coherent Synchrotron Radiation and its impact on the dynamics of high brightness electron beams January 14-18, 2002 at DESY-Zeuthen (Berlin, GERMANY) 3D EE EE  TRAFIC TREDI DProgram by R.LI DElegant CSR_CALC (P. Emma) Program by M. Dohlus

FEL Narrow bandwidth resonant process Paraxial approximation (k=k z ) Slowly Varying Envelope Approximation The slowly varing field equation may be solved with a PDE solver (as in TDA3D – GENESIS – GINGER …) Or by projection on Gauss or Laguerre modes: SDE* expansion (as e.g. in MEDUSA) * P.Sprangle, A. Ting, C.M. Tang Phys. Rev A 36 (1987)

Tapering/magnetic errors have “low frequencies” in z Scale length of e-beam variations is large, e.g. large betatron wavelength Small wiggle amplitude Lorentz force equation KMR assumption (FRED, GINGER, PROMETEO): “external parameters” change adiabatically Many time steps per period required for integration of particles dynamics (MEDUSA)  Pendulum equation (TDA3D - GENESIS)

Quiet Start BANDWIDTH SHOT NOISE: 1 nC -  t=200 fs sn  0.01 SHOT NOISE SIMULATED BY

Noise at saturation Nyquist theorem: we need at least 2 equally spaced electrons per wavelength to suppress the relative frequency component. In principle 2*h to simulate the n th hrmonic. FEL dynamics “moves” particles – bunching brakes the symmetry and many more particles are needed to simulate correctly the evolution at saturation The number of particles depends on the local energy spread, the emittances and on the number of space dimensions for the simulation. Typically 10 3 particles per wavelength for the fundamental harmonic. More particles for higher order harmonics

FEL Codes Comparison S.G. Biedron et al. NIM A445 (2000) p.110 MEDUSA appears more sensitive to UM gaps LEUTL parameters

Harmonics Emission on high order harmonics represents a consistent resource to extend the wavelength tunability of a free electron laser. S.G. Biedron et al. NIM A p.101 MEDUSA PROMETEO GINGER S.G. Biedron et al. NIM A p.94

Harmonics and electron dynamics Sparc 13.5 nm K=4.8  = with Perseo:

Time dependent simulations The beam is sliced longitudinally Each slice has input and output fields Slippage is applied at discrete time steps, by translating electrons over radiation (GINGER) Slices simulation can be done “almost” independently starting from the bunch tail and passing fields up to the bunch head (GENESIS) Easily parallelized (large grain problem) “Quasi” independent simulations Slippage length  Slippage as a function of z:

Time dependent simulation with Perseo (1D – in MathCad) Slice length 0 Slices 1524 = 2/  Slippage applied every period zend = N 0

Start to end simulation (Sparc phase space) Projected beam at The UM entrance (Sparc)

Start to end II SLICE TWISS PARAMETERS

SASE simulation “DESIDERATA” Startup from shot noise Gain and exponential growth Transverse effects: emittances detuning - gain focusing Longitudinal effects: pulse propagation – spectrum Saturation Power Linewidth Harmonics (power & linewidth) Sensitivity to input parameters “Realistic” input electron beam phase space “Realistic” beam dynamics in the undulator (wakes, ISR) Reasonable integration time We are close !

Conclusions We limited the analysis to Injector - Compression - FEL families of codes In these three families we found –“First principles” codes including most of the physical aspects of the problem. This completness is usually paid in terms of CPU time. –Semi-analytic codes based on some “smart” theory, which hiding some physics allows fast relaxation of the usually large number of parameters involved. These are not necessarily less physically insightful. Both classes of codes are required. The modellization aspects have been privileged, but several other features of the codes have great importance –Interface (SDDS – HDF5 – XML … other) –“Ease of use” –LAST BUT NOT LEAST: availability & sources availability (peer review)

S. Biedron, J. Billen, R. Bartolini, M. Borland, G. Dattoli, M. Dohlus, P. Emma, B. Faatz, W. B. Fawley, M. Ferrario, H. P. Freund, A. Kabel, J.W. Lewellen, R.Li, T. Limberg, L. Mezi, S. Milton, M. Quattromini, S. Reiche, C. Ronsivalle, L. Serafini Thanks

TIME / SPACE Decoherence II Emittance growth produced by unphysical head tail correlation (Gaussian bunch with  t =  z /10  = 4 - courtesy of L. Serafini)

Courtesy of M. Dohlus, Presented at ICFA Workshop Jan.2002 CSR effect on longitudinal Phase space