Frank SchmidtICE 5th of December 20121 1) Development of MAD-X with Space Charge and preliminary Application to the Fermilab Booster 2) Benchmarking of.

Slides:



Advertisements
Similar presentations
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,
Advertisements

1 PIC versus Frozen? 5/27/2013 FSOutcome of SC-13 PIC codes are definitely needed when coherent effects are relevant. In our case in presence of strong.
AGS pp Status Feb. 6, 2015 RSC Meeting Haixin Huang.
Beam-beam studies for Super KEKB K. Ohmi & M Tawada (KEK) Super B factories workshop in Hawaii Apr
July 22, 2005Modeling1 Modeling CESR-c D. Rubin. July 22, 2005Modeling2 Simulation Comparison of simulation results with measurements Simulated Dependence.
E. Benedetto SC meeting 19/3/15 Update on the LIU curve emittance vs. intensity.
Introduction Status of SC simulations at CERN
GRD - Collimation Simulation with SIXTRACK - MIB WG - October 2005 LHC COLLIMATION SYSTEM STUDIES USING SIXTRACK Ralph Assmann, Stefano Redaelli, Guillaume.
Loss maps of RHIC Guillaume Robert-Demolaize, BNL CERN-GSI Meeting on Collective Effects, 2-3 October 2007 Beam losses, halo generation, and Collimation.
SciDAC Accelerator Simulation project: FNAL Booster modeling, status and plans Robert D. Ryne, P. Spentzouris.
Proton beams for the East Area The beams and their slow extraction By : Rende Steerenberg PS/OP.
PTC ½ day – Experience in PS2 and SPS H. Bartosik, Y. Papaphilippou.
25-26 June, 2009 CesrTA Workshop CTA09 Electron Cloud Single-Bunch Instability Modeling using CMAD M. Pivi CesrTA CTA09 Workshop June 2009.
Simulation of direct space charge in Booster by using MAD program Y.Alexahin, N.Kazarinov.
Eric Prebys, FNAL.  Let’s look at the Hill’ equation again…  We can write the general solution as a linear combination of a “sine-like” and “cosine-like”
PTC Integration into MAD-X What is PTC? (Etienne’s words) Some Facts about PTC What are the advantages for MAD-X? Magnet Treatment in PTC How will we use.
Particle dynamics in electron FFAG Shinji Machida KEK FFAG04, October 13-16, 2004.
Summary of WG1 K. Kubo, D. Schulte, P. Tenenbaum.
Details of space charge calculations for J-PARC rings.
Status of Space-Charge Simulations with MADX Valery KAPIN ITEP & MEPhI, Moscow GSI, 19-Feb-2009
October 4-5, Electron Lens Beam Physics Overview Yun Luo for RHIC e-lens team October 4-5, 2010 Electron Lens.
Simulation of direct space charge in Booster by using MAD program Y.Alexahin, A.Drozhdin, N.Kazarinov.
1 FFAG Role as Muon Accelerators Shinji Machida ASTeC/STFC/RAL 15 November, /machida/doc/othertalks/machida_ pdf/machida/doc/othertalks/machida_ pdf.
 Advanced Accelerator Simulation Panagiotis Spentzouris Fermilab Computing Division (member of the SciDAC AST project)
November 14, 2004First ILC Workshop1 CESR-c Wiggler Dynamics D.Rubin -Objectives -Specifications -Modeling and simulation -Machine measurements/ analysis.
Double RF system at IUCF Shaoheng Wang 06/15/04. Contents 1.Introduction of Double RF System 2.Phase modulation  Single cavity case  Double cavity case.
Overview of Booster PIP II upgrades and plans C.Y. Tan for Proton Source group PIP II Collaboration Meeting 03 June 2014.
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.
Frank SchmidtSpace Charge # 31 Style of the Meeting I have agreed with Elias that we want meetings without fear to ask any crazy question! Fancy presentations.
Accelerator Simulation in the Computing Division Panagiotis Spentzouris.
4 th Order Resonance at the PS R. WASEF, S. Gilardoni, S. Machida Acknowledgements: A. Huschauer, G. Sterbini SC meeting, 05/03/15.
Midwest Accelerator Physics Meeting. Indiana University, March 15-19, ORBIT Electron Cloud Model Andrei Shishlo, Yoichi Sato, Slava Danilov, Jeff.
1 EMMA Tracking Studies Shinji Machida ASTeC/CCLRC/RAL 4 January, ffag/machida_ ppt & pdf.
Simplified Modeling of Space Charge Losses in Booster at Injection Alexander Valishev June 17, 2015.
Accelerator Simulation in the Computing Division Panagiotis Spentzouris.
PTC-ORBIT code for CERN machines (PSB, PS, SPS) Alexander Molodozhentsev (KEK) Etienne Forest (KEK) Group meeting, CERN June 1, 2011 current status …
MAD-X V3 with Space Charge via Macros (2010) Benchmarking (GSI) with other Codes Implementing Space Charge directly into MADX-SC V5 (2012)  latest version.
Orbits, Optics and Beam Dynamics in PEP-II Yunhai Cai Beam Physics Department SLAC March 6, 2007 ILC damping ring meeting at Frascati, Italy.
Tunes modulation in a space charge dominated beam: The particles behavior in the “necktie” Space charge meeting – CERN - 21/11/2013 Vincenzo Forte Thanks.
The HiLumi LHC Design Study (a sub-system of HL-LHC) is co-funded by the European Commission within the Framework Programme 7 Capacities Specific Programme,
1 IMPACT: Benchmarking Ji Qiang Lawrence Berkeley National Laboratory CERN Space-Charge Collaboration Meeting, May 20-21, 2014.
1 Trip to BNL Goal Installation of newest MAD-X at BNL Setting up space charge for RHIC in frozen mode They do not really want a renormalization of sigma.
Beam-Beam simulation and experiments in RHIC By Vahid Ranjbar and Tanaji Sen FNAL.
2 February 8th - 10th, 2016 TWIICE 2 Workshop Instability studies in the CLIC Damping Rings including radiation damping A.Passarelli, H.Bartosik, O.Boine-Fankenheim,
SC-30 FS1 Communication from SYNERGIA about GSI benchmarking 14/11/2013.
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,
 Accelerator Simulation P. Spentzouris Accelerator activity coordination meeting 03 Aug '04.
BNL trip  Goal of the BNL-FERMILAB- CERN collaboration  The codes  BB tune foot-prints  DA studies.
SC-25 FS1 Code Overview PTC-Orbit Synergia Micromap MAD-X with Frozen Space Charge 8/29/2013.
Fix-lines and stability G. Franchetti and F. Schmidt GSI, CERN AOC-Workshop - CERN 6/2/2015 G. Franchetti and F. Schmidt1.
Eric Prebys.  The primary motivation for nonlinear integrable optics is to reduce the sensitivity to harmonic instabilities and thereby enable stable.
Collective Effect II Giuliano Franchetti, GSI CERN Accelerator – School Prague 11/9/14G. Franchetti1.
Orbit Response Matrix Analysis
People who attended the meeting:
Visit at Fermilab (Aug – Nov 2012)
Multi-Turn Extraction studies and PTC
Sabrina Appel, GSI, Beam physics Space charge workshop 2013, CERN
Jeffrey Eldred, Sasha Valishev
Space Charge Study Group
Multiturn extraction for PS2
Single-bunch instability preliminary studies ongoing.
SC Overview 2013 White & Rouge The Codes in Comparison The Noise Issue
Update on PTC/ORBIT space charge studies in the PSB
Near Future Plans for the Space Charge Team after SC-13
Electron Rings Eduard Pozdeyev.
Physics 417/517 Introduction to Particle Accelerator Physics
JLEIC Ion Integration Goals
Alejandro Castilla CASA/CAS-ODU
Presentation transcript:

Frank SchmidtICE 5th of December ) Development of MAD-X with Space Charge and preliminary Application to the Fermilab Booster 2) Benchmarking of PTC_ORBIT & SYNERGIA with Emphasis on Micro-Scale Stability Visit at Fermilab (Aug – Nov 2012) F.S.

Frank SchmidtICE 5th of December )MAD-X development and applications Valery Kapin. 2)Orbit issues and possible remedies are being pursued together with Leonid Vorobiev. Continuous discussions with Valery Kapin and Giuliano Franchetti from GSI. 3)SYNERGIA installation on my Laptop and getting applications to work Eric Stern. 4)Collaboration with Sasha Valishev to introduce a the exact Hamiltonian into LIFETRAC (not discussed here). Acknowledgements

Frank SchmidtICE 5th of December Development of MAD-X with Space Charge and preliminary Application to the Fermilab Booster References: 1.V. Kapin & Yu.Alexahin, “Space Charge Simulation Using MADX with Account of Synchrotron Oscillations”, Proc. RuPAC-2010, Protvino, Oct 27, 2010, pp V. Kapin, “Space Charge Simulation Using MADX with Account of Longitudinal Motion”, FNAL Beamsdoc ‑ v2, Apr Y.Alexahin et al., “EFFECTS OF SPACE CHARGE AND MAGNET NONLINEARITIES ON BEAM DYNAMICS IN THE FERMILAB BOOSTER”, Proceedings of PAC07, Albuquerque, New Mexico, USA. Task I

Frank SchmidtICE 5th of December MAD-X V3 with Space Charge for debuncher (Valery Kapin 2010) Utilizing the BB elements to create a frozen space charge model but adapting emittances and Twiss parameters for the sigma determination. Using the MAD-X Macro technique for all operations Phase-I: Lattice Preparation Splitting the elements (at least once) and introduce SC kicks in between Making sure that the lattice is stable including SC and proper sigma values (  next slide) Transferring thick lattices into thin ones (symplectic and only way to track in MAD-X) Phase-II: Running (turn-by-turn due to Macro procedures) Time varying fields Emittance and TWISS calculation during run Output (losses, emittances, etc)

Frank SchmidtICE 5th of December Procedure to determine Beam Sizes with large SC Tune Swings TWISS fails for integer and/or half integer tunes  Trick to avoid it: turn on SC tune-shift in small steps and let tunes converge at each step Lines represent Laslett formula Reference: Valery Kapin talk at GSI 2009

Frank SchmidtICE 5th of December Lattice with variable Parameters M.J.Syphers, “Status of Mu2e Operating Scenario”, Feb, 2010 Beams-doc-3556  Mu2e experiment  Accelerator issue: 8 GeV Accumulator and Debuncher storage rings are used  Compact bunches (<200ns,  <0.025) are prepared in Accumulator ring  Bunches are transferred to Debuncher ring and extracted out to the experiment using 3-rd order resonant extraction with spill times ~150ms. A stable, slow spill with a very intense proton beam is a big challenge.

Frank SchmidtICE 5th of December The MACRO technique of MAD-X is working fine but typically one ends up with very complex logic so that even Valery had to work hard to re-understand them after a delay of 2 years!  Therefore quite unpractical for new applications. Macros are inherently slow! Therefore the idea was to reduce the use of Macros as much as possible and to modify the code to do most of the work directly within MAD-X. In detail: Time varying multipoles Time varying phase trombone (Forest/Schmidt: Don’t use them!) Time varying cavity voltage (application for Booster lattice) Include the sigma determination at each turn Allow for stop&go for the MAD-X tracking routine to allow intermediate TWISS calculation at start and the location of the SC elements Input via several TFS tables. Task for MAD-X V5sp for the Booster as a new Application

Frank SchmidtICE 5th of December I have left the MAD-X project 18 months ago. Laurent Deniau at CERN has taken over till then. I have been a manager of the code with limited involvement in the actual code writing other than the PTC part. In particular, the core of the code in C has been written exclusively by Hans Grote. In a state of emergency I had to be ready to fix the code quickly. MAD-X is not well suited for this task I since deferred evaluation does not easily allow to put element parameters back into the database. Various C routines were needed but Hans did not have to help! MAD-X Status

Frank SchmidtICE 5th of December N_macro_surv vs Turn Number for the Debuncher Timing on CERN computer Macro version ~20-24h MADX-5sp ~2-4h

Frank SchmidtICE 5th of December Ex,y_rms vs Turn Number for the Debuncher

Frank SchmidtICE 5th of December Longitudinal Emittance vs Turn Number for the Debuncher

Frank SchmidtICE 5th of December MAD-X clean-up changes of the lattice. A small horizontal non- closure is tolerated for the time being. The cavities had to be replaced by zero-length cavities. The first order edge focusing of Bends has to be simulated with the DIPEDGE elements. The booster has a vertical bump and I had to fix a bug to allow for the vertical DIPEDGE element in MADX-5sp. Phase-I has been passed including the very large SC tuneshift of ~0.4 and a successful crossing of the half integer (0.48). Phase-II has been started and some turns have been tracked. However, it has become clear that for such a large SC tuneshift one has to carefully set the initial parameters like tunes etc. Progress for the Booster

Frank SchmidtICE 5th of December Benchmarking of PTC_ORBIT & SYNERGIA with Emphasis on Micro-Scale Stability References: 1.J.A. Holmes et al., “ORBIT: BEAM DYNAMICS CALCULATIONS FOR HIGH- INTENSITY RINGS”, Proceedings of EPAC 2002, Paris, France. 2.E.Forest, A.Molodozhenstev, A.Shishlo, J.Holmes, “Synopsis of the PTC and ORBIT Integration”, KEK Internal, , November L.G. Vorobiev and K.Hirata, “A symplectic Poisson Solver Based on Fast Fourier Transformation”, KEK Report L.G. Vorobiev, “Space Charge Templates for High-Current Beam Modeling”, FERMILAB-PUB APC. Task II

Frank SchmidtICE 5th of December H-DETUNING GSI SIS18 Giuliano Franchetti Valery Kapin (2008) Shinji Machida Giuliano Benchmark WEB page:

Frank SchmidtICE 5th of December H-DETUNING PTC-ORBIT

Frank SchmidtICE 5th of December Fake Tune Evolution PTC-ORBIT Turns Qx

Frank SchmidtICE 5th of December Amplitude blow-up PTC-ORBIT Turns X [0.13  ] RED: zero Amplitude GREEN: 0.1 sigma Amplitude

Frank SchmidtICE 5th of December Small Amplitude blow-up SYNERGIA Turns X [0.13  ]

Frank SchmidtICE 5th of December SYNERGIA Code Synergia is an accelerator simulation package for combining advanced single-particle optics with computationally-intensive collective effects. Synergia is designed to take advantage of computing resources ranging from desktops to supercomputers.

Frank SchmidtICE 5th of December Synergia Personnel Synergia is developed and maintained by the Computational Physics for Accelerators group in Fermilab's Scientific Computing Division James Amundson, Paul Lebrun, Qiming Lu, Alex Macridin, Leo Michelotti (CHEF), Chong Shik Park, Panagiotis Spentzouris and Eric Stern With development contributions from Tech-X: Steve Goldhaber

Frank SchmidtICE 5th of December Physics Of Synergia Single-particle optics are provided by CHEF  Direct symplectic tracking Magnets, cavities, drifts, etc.  (and/or) arbitrary-order polynomial maps Apertures Collective (single and multiple bunches)  Space charge (3D, 2.5D, semi-analytic, multiple boundary conditions)  Wakefields Can accommodate arbitrary wake functions

Frank SchmidtICE 5th of December Synergia Features Python-driven simulations  Pure C++ simulations are possible  All computationally intensive calculations in C++  One example: arbitrarily complex ramping, including feedback, is straightforward Checkpointing  Simulations can be stopped and restarted arbitrarily Parallel scalability  Has run efficiently on 2^17 = 131,072 cores(!), simulating over 10^10 particles. Can be extended in either Python or C++  User-defined Diagnostics  New collective operators  Etc.

Frank SchmidtICE 5th of December Plans for Synergia More collective effects  Electron cloud  In progress  Beam-beam? Cern related Features  Double RF implementation  Time varying fields  Acceleration  Foils  Observer Particles Parsers for more lattice formats Mad8 finished MadX close to done others as requested Full documentation End-user, API and examples Fixed API Very close

Frank SchmidtICE 5th of December “Unfair” speed comparison between PTC-ORBIT and SYNERGIA I have made a speed comparison of the SIS18, which is just a linear lattice plus space charge. For the same number of space charge kicks, the same grid bins and the same number of macro-particles. I find Synergia ~5 times faster than PTC-ORBIT. To avoid to be “unfair” one has to make a more careful analysis for various cases and with non-linearities. PTC allows a very general treatment of space charge without any need to split elements. This might be inherently inefficient. It also could be that up to now PTC-ORBIT is not yet fully optimized. Presently, we have started an attempt to profile the code to understand where the time is being spent. To identify remedies will take some time.

Frank SchmidtICE 5th of December H-DETUNING SYNERGIA 32 Turns 0.1  Qx

Frank SchmidtICE 5th of December H-DETUNING SYNERGIA 1024 Turns 0.1  Qx

Frank SchmidtICE 5th of December Sudden shift in Tune SYNERGIA Sudden shift in Tune SYNERGIA Turns X[m]

Frank SchmidtICE 5th of December Evolution of Linear Invariant SYNERGIA Courant Snyder Invariant

Frank SchmidtICE 5th of December Analysis of the situation with PIC codes Originally, I had planned to follow the complete benchmarking procedure for PTC- ORBIT as prescribed by Giuliano. In view of a possible upgrade of ORBIT to PTC- ORBIT at Fermilab. Following this surprising results I checked out with Leonid every possible source of error that I might have done. In fact, he repeated the same studies with plain ORBIT and we find the same results. The conclusion is: that for PTC_ORBIT the benchmarking can simply not be done. We then contacted the author Jeff Holmes and his team and let them be the first to be informed about this problem. A couple of weeks later I have received an by Jeff with a confirmation of our finding: “I have been doing a bit of work on the individual particle tracking with space charge. I set up a uniform focusing channel and a KV distribution. I observe the same numerical diffusion behavior seen by you and Leonid. If I symmetrize the distribution in the x-y planes, the diffusion is much slower and delayed, but eventually it does occur (due to roundoff?).” Lastly, Synergia behaves much better but is also suffering from this instability.

Frank SchmidtICE 5th of December Remedies and Discussions During the discussions with Jeff we have agreed to investigate possible remedies within the next 6 months. Independently, Leonid is reviving his decade old very careful “clouds in PIC” analysis and he also has a much improved Poisson solver. The much smoother distribution (see for comparison next 2 slides) did not in itself lead to a substantial improvement. But we still are hopeful that the full replacement of the space charge classes in ORBIT will bring the desired improvement. To a lesser extend SYNERGIA suffers also from this problem and we should be looking into that as well. Leonid also has a radically different approach that is to use the so-called space charge templates (see reference above), i.e. NOT based on PIC. It remains to be seen how this will work out! Following all these findings and the excitement I am happy to invite you to a space charge workshop to be held in April 2013 at CERN where we will discuss these issues in depth and hopefully with a better understanding! For me the crucial question is if PIC codes can be reliably used for 1’ ’000 turns or more despite this micro-scale instability?

Frank SchmidtICE 5th of December Shapes of Distributions (Leonid)

Frank SchmidtICE 5th of December Original ORBIT Density

Frank SchmidtICE 5th of December Reversed Parabolic Density (#3 in Shape Slide)

Frank SchmidtICE 5th of December MADX-5sp is going to be used at CERN as our frozen model tool for space charge studies. Any developments, bugfixes etc will be provided to Fermilab. Most probable Valery Kapin and Yuri Alexahin will use it here and we will certainly help in case of problems and/or further developments. Optimizing the ORBIT code: Leonid Vorobiev has started to replace the space charge classes in ORBIT. Our plan is to continue our collaboration remotely. But there has been discussions with his future employer to invite Leonid for an extended period to CERN to finish this work in the most efficient way. In fact, since we are investigating a possible speed-up of PTC-ORBIT we could at the same time make his implementation compatible with MPI. Planned Collaborations I

Frank SchmidtICE 5th of December ORBIT authors: Leonid and myself have approached Jeff Holmes and his team to present out findings about the unstable particle motion on the micro-scale level. We have agreed with them to find a solution or at least achieving a dramatic improvement within the next 6 months. It could very well be that the MPI version of Leonid’s implementation will be the best that can be done. SYNERGIA: We have prepared in writing a program for a long- term collaboration for a possible use of this code for the LIU (LHC Injector Upgrade) at CERN. Missing code features have been identified and have been discussed with the code developers. Special attractions are the modern structure with a nice PYTHON interface and the high performance compared to other codes. We have also agreed to perform the full benchmarking cycle that has been prepared by Giuliano Franchetti at GSI. Planned Collaborations II

Frank SchmidtICE 5th of December Reserve

Frank SchmidtICE 5th of December Synergia Personnel Synergia is developed and maintained by the Computational Physics for Accelerators group in Fermilab's Scientific Computing Division James Amundson, Paul Lebrun, Qiming Lu, Alex Macridin, Leo Michelotti (CHEF), Chong Shik Park, Panagiotis Spentzouris and Eric Stern With development contributions from Tech-X: Steve Goldhaber

Frank SchmidtICE 5th of December Physics Of Synergia Single-particle optics are provided by CHEF  Direct symplectic tracking Magnets, cavities, drifts, etc.  (and/or) arbitrary-order polynomial maps Apertures Collective (single and multiple bunches)  Space charge (3D, 2.5D, semi-analytic, multiple boundary conditions)  Wakefields Can accommodate arbitrary wake functions

Frank SchmidtICE 5th of December Synergia Code structure A simulation consists of propagating a Bunch (or bunches) through a Lattice. Inputs: machine lattice, initial bunch parameters Outputs: user-selected Diagnostics. 6d means 6d std deviations 6x6 covariance matrix 6x6 correlation matrix Individual particle tracks Dump of all particles Losses with locations in lattice Some available Diagnostics Actions may specify Diagnostics every n steps, every m turns, specified sets of turns or sets of steps, etc. User-defined logic is also possible.

Frank SchmidtICE 5th of December Synergia Features Python-driven simulations  Pure C++ simulations are possible  All computationally intensive calculations in C++  One example: arbitrarily complex ramping, including feedback, is straightforward Checkpointing  Simulations can be saved and restarted arbitrarily Parallel scalability  Has run efficiently on 2^17 = 131,072 cores(!), simulating over 10^10 particles. Can be extended in either Python or C++  User-defined Diagnostics  New collective operators  Etc.

Frank SchmidtICE 5th of December Status of Synergia Synergia is in production use at Fermilab  Main Injector space charge  Mu2e resonant extraction  Booster with SC and wakefields End-user release in near future

Frank SchmidtICE 5th of December Potential with zero Boundary Condition Assumption (Leonid)