Development of JSPEC for Cooling Simulation

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

IIAA GPMAD A beam dynamics code using Graphics Processing Units GPMAD (GPU Processed Methodical Accelerator Design) utilises Graphics Processing Units.
Simulation Study For MEIC Electron Cooling He Zhang, Yuhong Zhang Thomas Jefferson National Accelerator Facility Abstract Electron cooling of the ion beams.
Benchmark of ACCSIM-ORBIT codes for space charge and e-lens compensation Beam’07, October 2007 Masamitsu AIBA, CERN Thank you to G. Arduini, C. Carli,
Halo calculations in ATF DR Dou Wang (IHEP), Philip Bambade (LAL), Kaoru Yokoya (KEK), Theo Demma (LAL), Jie Gao (IHEP) FJPPL-FKPPL Workshop on ATF2 Accelerator.
A new algorithm for the kinetic analysis of intra-beam scattering in storage rings. P.R.Zenkevich*,O. Boine-Frenkenheim**, A. Ye. Bolshakov* *ITEP, Moscow,
Introduction Status of SC simulations at CERN
Electron Cooling Expected Performance & Construction.
Beamstrahlung and energy acceptance K. Ohmi (KEK) HF2014, Beijing Oct 9-12, 2014 Thanks to Y. Zhang and D. Shatilov.
CSR calculation in ERL merger section Tsukasa Miyajima KEK, High Energy Accelerator Research Organization 8 November, 2010, 13:30 Mini Workshop on CSR.
Copyright, 1996 © Dale Carnegie & Associates, Inc. Intra-beam Scattering -- a RHIC Perspective J. Wei, W. Fischer Collider-Accelerator Department EIC Workshop,
Introduction to MCMC and BUGS. Computational problems More parameters -> even more parameter combinations Exact computation and grid approximation become.
Laslett self-field tune spread calculation with momentum dependence (Application to the PSB at 160 MeV) M. Martini.
Oliver Boine-FrankenheimSIS100-4: High current beam dynamics studies SIS 100 ‘high current’ design challenges o Beam loss in SIS 100 needs to be carefully.
Simulation of direct space charge in Booster by using MAD program Y.Alexahin, N.Kazarinov.
1 Development of models of intrabeam scattering for charged beams in storage rings E. Mikhaylova Joint Institute for Nuclear Research Dubna, Russia The.
MEIC Electron Cooling Simulation He Zhang 03/18/2014, EIC 14 Newport News, VA.
Parallelisation of Random Number Generation in PLACET Approaches of parallelisation in PLACET Martin Blaha University of Vienna AT CERN
Emittance Growth from Elliptical Beams and Offset Collision at LHC and LRBB at RHIC Ji Qiang US LARP Workshop, Berkeley, April 26-28, 2006.
Details of space charge calculations for J-PARC rings.
MEIC Staged Cooling Scheme and Simulation Studies He Zhang MEIC Collaboration Meeting, 10/06/2015.
Oliver Boine-Frankenheim, High Current Beam Physics Group Simulation of space charge and impedance effects Funded through the EU-design study ‘DIRACsecondary.
Parallelization of likelihood functions for data analysis Alfio Lazzaro CERN openlab Forum on Concurrent Programming Models and Frameworks.
M.E. Biagini, M. Boscolo, T. Demma (INFN-LNF) A. Chao, M.T.F. Pivi (SLAC). Status of Multi-particle simulation of INFN.
Comparison between simulations and measurements in the LHC with heavy ions T. Mertens, R. Bruce, J.M. Jowett, H. Damerau,F. Roncarolo.
Oliver Boine-Frankenheim, HE-LHC, Oct , 2010, Malta Simulation of IBS (and cooling) Oliver Boine-Frankenheim, GSI, Darmstadt, Germany 1.
Physics of electron cloud build up Principle of the multi-bunch multipacting. No need to be on resonance, wide ranges of parameters allow for the electron.
Midwest Accelerator Physics Meeting. Indiana University, March 15-19, ORBIT Electron Cloud Model Andrei Shishlo, Yoichi Sato, Slava Danilov, Jeff.
Collective effects in EDM storage ring A.Sidorin, Electron cooling group, JINR, Dubna.
July LEReC Review July 2014 Low Energy RHIC electron Cooling Jorg Kewisch, Dmitri Kayran Electron Beam Transport and System specifications.
P. A. POSOCCO CERN – BE/ABP Intra-Beam stripping at SPL: should we be worried? 5 th SPL Collaboration meeting.
Ion effects in low emittance rings Giovanni Rumolo Thanks to R. Nagaoka, A. Oeftiger In CLIC Workshop 3-8 February, 2014, CERN.
IBS Calculation Using BETACOOL He Zhang 2/26/2013 Jlab MEIC R&D Group Meeting.
RMS Dynamic Simulation for Electron Cooling Using BETACOOL He Zhang Journal Club Talk, 04/01/2013.
Enhancing Simulation Capability for Electron Cooling in MEIC project He Zhang MEIC Collaboration Workshop, 03/31/2015.
BBFP J. Wei’s Fokker-Planck solver for bunched beams November 21 st, 2007 CLIC Beam dynamics meeting Y. Papaphilippou.
Pushing the space charge limit in the CERN LHC injectors H. Bartosik for the CERN space charge team with contributions from S. Gilardoni, A. Huschauer,
Intra-Beam scattering studies for CLIC damping rings A. Vivoli* Thanks to : M. Martini, Y. Papaphilippou *
Simulation of Intrabeam Scattering A. Vivoli*, M. Martini Thanks to : Y. Papaphilippou and F. Antoniou *
Fast Ion Instability Study G. Rumolo and D. Schulte CLIC Workshop 2007, General introduction to the physics of the fast ion instability Fastion.
Numerical Simulations for IOTA Dmitry Shatilov BINP & FNAL IOTA Meeting, FNAL, 23 February 2012.
IBS and Touschek studies for the ion beam at the SPS F. Antoniou, H. Bartosik, Y. Papaphilippou, T. Bohl.
Review of Alignment Tolerances for LCLS-II SC Linac Arun Saini, N. Solyak Fermilab 27 th April 2016, LCLS-II Accelerator Physics Meeting.
Toward Gear-Change and Beam-Beam Simulations with GHOST
R. Bruce, M. Blaskiewicz, W. Fischer, J.M. Jowett, T. Mertens
Orbit Response Matrix Analysis
402.5 MHz Debunching in the Ring
HIAF Electron Cooling System &
Simulation of Luminosity Variation
Electron Cooling Simulation For JLEIC
Multi-Turn Extraction studies and PTC
Longitudinal Effects in Space Charge Dominated Cooled Bunched Beams
Modelling and measurements of bunch profiles at the LHC FB
Intra-Beam Scattering modeling for SuperB and CLIC
Experimental Overview
CASA Collider Design Review Retreat Other Electron-Ion Colliders: eRHIC, ENC & LHeC Yuhong Zhang February 24, 2010.
Beam-Beam Interaction in Linac-Ring Colliders
Progress report on PIC simulations of a neutralized electron beam
Summary of Beam Cooling Parallel Session
JLEIC ELECTRON COOLING SIMULATION
Yuhong Zhang MEIC Collaboration Meeting March 30 & 31, 2015
Yuri Nosochkov Yunhai Cai, Fanglei Lin, Vasiliy Morozov
He Zhang MEIC R&D Meeting, 07/09/2015
Update on ERL Cooler Design Studies
JLEIC Ion Integration Goals
Electron Cooling Work Plan for New Strong Cooling Baseline
Beam-beam Studies, Tool Development and Tests
Simulation of the bunching effect:
Updates on the beam-beam effect in JLEIC
Optimization of JLEIC Integrated Luminosity Without On-Energy Cooling*
Presentation transcript:

Development of JSPEC for Cooling Simulation He Zhang Computational Accelerator Physicist CASA JLEIC Collaboration Meeting April 1-3, 2019

Overview Three categories of program on electron cooling simulation: Theoretical formula to calculate the friction force, the evolution of the macroscopic parameters of the ion beam, eg. emittance, momentum spread, bunch length, etc. (BETACOOL, JSPEC) Multi-particle simulation, one or a few ions’ motion inside the electron beam, friction force calculation and benchmarking. (Tech-X) Multi-particle simulation based on the first principle, collision and motion of the electron beam and the ion beam. (Prof. Erdelyi, NIU)

JSPEC: JLab Simulation Package for Electron Cooling Developed at JLab for JLEIC Calculate the IBS rate and electron cooling rate Simulate the IBS and/or electron cooling process C++, open source https://github.com/zhanghe9704/electroncooling Benchmarked with BETACOOL Text-based user interface (UI) Online version by Radiasoft LLC https://beta.sirepo.com/#/jspec

IBS expansion rate Currently two formulas have been implemented: Martini model [1] Bjorken-Mtingwa model [2] using Nagaitsev’s formula [3] Limits: Both assume the disappearance of the vertical dispersion. [1] Martini, M. Intrabeam scattering in the ACOL-AA machines. No. CERN-PS-84-9-AA. SCAN-0009244, 1984. [2] Bjorken, James D., and Sekazi K. Mtingwa. "Intrabeam scattering." Part. Accel. 13, no. FERMILAB-PUB-82-47-THY (1982): 115-143. [3] Nagaitsev, Sergei. "Intrabeam scattering formulas for fast numerical evaluation." Physical Review Special Topics-Accelerators and Beams 8, no. 6 (2005): 064403.

Cooling rate Monte Carlo model : sample the ion beam with particles of Gaussian distribution Sample the ions w.r.t the emittance, bunch length, momentum spread. Calculate the electron charge density around each ion Convert into beam frame Calculate the friction force on each ion (Parkhomchuk formula) Convert back to lab frame Each ion feels a kick as 𝑑𝒑=𝑭⋅𝑑𝑡. Emittace is calculated statistically as Calculate the cooling rate (the change of emittance in a unit time)

Cooling process simulation Three models: RMS dynamic model (Gaussian distribution) Particle model Turn-by-turn model Four-step procedure: Create sample ions Calculate the expansion rate under the IBS and/or electron cooling effect Update the beam parameters and the sample ions, and Repeat till the end.

RMS dynamic method in the four-step procedure: Create sample ions w.r.t. the given emittance Calculate the expansion rate under the IBS and/or electron cooling effect Update the beam parameters using 𝜀 𝑛𝑒𝑤 = 𝜀 𝑜𝑙𝑑 ⋅ 𝑒 𝑑𝑡/𝜏 , create new sample ions w.r.t. the new emittance, and repeat till the end time

Particle model in the four-step procedure: Create sample ions with the given initial distribution Calculate the IBS rate and/or the friction force. Apply the IBS kick on each particle as 𝜃 2 = 𝜀 𝛽 ⊥ 𝑑𝑡 𝜏 𝐼𝐵𝑆 , Δ𝜃= 𝜃 2 ⋅𝜉, Gaussian random number 𝜉, 𝜎 𝜉 =1; apply the electron cooling kick as 𝑑𝒑=𝑭⋅𝑑𝑡⋅𝑓⋅ 𝑡 𝑐𝑜𝑜𝑙𝑒𝑟 ⋅ 𝑁 𝑐𝑜𝑜𝑙𝑒𝑟 ; apply a random phase advance for each particle; calculate new emittance and expansion rate; and 4. repeat till the end time.

Turn-by-turn model: The particle model can be easily modified to a manner of turn-by-turn tracking. Replace the time step with the period of the circular motion of the ion. Replace the random phase advance with a one-turn map. Turn-by-turn model honestly models the betatron and synchrotron motion of the ion beam. Slow, not suitable for long time cooling/IBS simulation. Used to benchmark the other tow models.

Benchmark RMS dynamic model with turn-by-turn model: Simulate 10,000 or 1000,000 protons for one second and 10 seconds using the turn-by-turn model. Compare with the RMS dynamic model with step size of one second or ten seconds. Estimate the maximum accumulated error for one hour. Max Error of Emit. For One Step Size N=10,000 N=100,000 Δt=1s 1.54×10-5 2.42×10-6 Δt=10s 3.06×10-4 1.04×10-4 The smaller the time step is, the smaller the error we get. The larger the number of particles is, the smaller the error we get. If we use step size no more than one second, and number of particles no less than 100,000, the simulation results should be accurate enough (at least for now). Note that we assume the proton beam still has Gaussian distribution. Max Accu. Error of Emit. in One Hour N=10,000 N=100,000 Δt=1s 5.70% 0.88% Δt=10s 11.65% 3.81%

Benchmark particle model with turn-by-turn model: Simulate the cooling on the proton beam for 10 seconds with particle model using different step sizes to compare with the turn-by-turn model. Cooling is enhanced by 100 times to observe detour from the Gaussian distribution. Electron beam size is smaller than the proton beam size. dt = 0.1 s, results are almost identical. dt = 0.5 s, the deviation starts to show, but not large. dt = 1 s, the deviation becomes larger. Taking a step size between 0.1 s – 0.5 s is acceptable.

Model of the electron beam Electron beam with regular shape: DC beam with uniform distribution and round cross section. DC beam with uniform distribution and elliptical cross section. DC hollow beam with uniform distribution and round cross section. Bunched beam with uniform distribution and round cross section. Bunched beam with uniform distribution and elliptical cross section. Bunched hollow beam with uniform distribution and round cross section. Bunched beam with Gaussian distribution.

Electron beam with arbitrary shape: The electron bunch is defined by sample particles with 6D coordinates (x, y, z, vx, vy, vz) saved in a asci/binary file. (x, y, z) is the position of a sample particle in the lab frame. (vx, vy, vz) is the velocity of the a sample particle in the beam frame. A tree-based algorithm is used to calculate the local charge density and temperature for a given ion. The tree only needs to be constructed once if the electron bunch is assumed not changing during the cooling.

𝑁 𝑒 = 10 6 ,𝑆=200 gives the best result. Compare the cooling rate of a perfect Gaussian bunch with one that is represented by sample particles. Rx (1/s) Ry (1/s) Rz (1/s) Perfect Gaussian -0.000156628 -0.000204170 -0.000274953 𝑁 𝑒 = 10 6 , 𝑆=50 -0.000167931 -0.000219561 -0.000307613 𝑁 𝑒 = 10 6 , 𝑆=100 -0.000160644 -0.000210011 -0.000288947 𝑁 𝑒 = 10 6 , 𝑆=200 -0.000156659 -0.000203634 -0.000276979 𝑁 𝑒 = 10 6 , 𝑆=300 -0.000155772 -0.000202327 -0.000275269 𝑁 𝑒 = 10 6 , 𝑆=400 -0.000155078 -0.000201428 -0.000273384 𝑁 𝑒 = 10 6 ,𝑆=200 gives the best result. Good to see the results is not very sensitive to the change of 𝑆, which means even if 𝑆 deviates from the optimal value a little, the result will not be too bad.

Benchmark with BETACOOL IBS of coasting ion beam IBS of bunched ion beam

DC cooling only with particle model DC cooling only with RMS model

Bunched beam cooling only with particle model Bunched beam cooling only with RMS model

DC cooling & IBS with particle model Bunched beam cooling & IBS with RMS model DC cooling & IBS with particle model

Parallelization Parallelization for shared memory structure: GPU, Intel Xeon Phi, or just a multi-core PC. Parallelization is based on thrust, a parallel algorithm library that supports CUDA, TBB (Threading Building Blocks) and OpenMP. IBS rate calculation, 100x100x100 grid: NVidia GTX 660 ti GPU: 7.76 s CPU AMD Phenom™ II X4 840T Processor 2.9GHz: 62 s Electron cooing rate calculation: 200,000 samples: GPU 0.03 s CPU 0.151 s 40,000 samples: GPU 0.024 s CPU 0.023 s Efficiency is NOT the bottleneck of this program.

UI UI of JSPEC Inspired by ELEGANT An input file is composed of a few sections and should be ended by the section_run Three kinds of sections The only section that allows you to define some variables, do some simple calculation with them, and use them in the following sections. Like your scratch paper. You can have multipole scratch sections and put them anywhere you like. Calculations and simulations are carried out. Run JSPEC in command line: > jspec.exe input_file_name

Use of the scratch section User can define variables and perform calculations on the variables. These variables can be used in the following sections Reserved variables are used to save the calculation/simulation results and can be used in the following calculation/simulations. Use of the operation section Create objectives, eg. ion beam, electron beams, ring, cooler, etc. Perform calculation/simulation. Use of the defination sections Define the objectives. Set up calculation/simulation parameters.

Anything follows a “#” is a comment. A list of the key words for all the sections can be found in the user manual on Github.

Continue …

Online version by Radiasoft LLC https://beta.sirepo.com/#/jspec

Summary JSPEC is developed at JLab for JLEIC but we also try to make it a general tool for electron cooling simulation. JSPEC calculates the IBS expansion rate and the electron cooling rate, and it simulates the evolution of the ion beam during electron cooling process (w. IBS). JSPEC provides a group of predefined electron beam model and it also supports an arbitrary electron beam represented by particles (provided by the user). JSPEC has been benchmarked with BETACOOL. JSEPC has a text-based UI. An online version of JSPEC is provided by Radiasoft LLC, which makes it easier to visualize your result and share your simulation. We actively use JSPEC in the electron cooling simulations for JLEIC. We keep updating JSPEC. JSPEC is open source, available through https://github.com/zhanghe9704/electroncooling