ps2 space-charge simulationslarpdocs.fnal.gov/larp/docdb/0009/000973/001/ps2_napa... ·...

13
PS2 space-charge simulations Robert Ryne, Ji Qiang, LBNL Jim Amundson, Panagiotis Spentzouris, FNAL LARP Collaboration Meeting April 7, 2009

Upload: others

Post on 12-Aug-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: PS2 space-charge simulationslarpdocs.fnal.gov/LARP/DocDB/0009/000973/001/PS2_napa... · 2009-05-13 · CCA PETSc Numpy Matplotlib PyTables Scientific Computing Infrastructure ATLAS

PS2 space-charge simulations

Robert Ryne, Ji Qiang, LBNLJim Amundson, Panagiotis Spentzouris, FNAL

LARP Collaboration MeetingApril 7, 2009

Page 2: PS2 space-charge simulationslarpdocs.fnal.gov/LARP/DocDB/0009/000973/001/PS2_napa... · 2009-05-13 · CCA PETSc Numpy Matplotlib PyTables Scientific Computing Infrastructure ATLAS

2

BackgroundBackground

• Initial studies carried out under the SciDAC ComPASSproject—ComPASS=Community Petascale project for

Accelerator Science and Simulation• Using 3 codes:

—IMPACT-Z—Synergia—MaryLie/IMPACT

• Codes have much in common but also have individualstrengths—All are parallel particle-in-cell codes w/ 3D space

charge

Page 3: PS2 space-charge simulationslarpdocs.fnal.gov/LARP/DocDB/0009/000973/001/PS2_napa... · 2009-05-13 · CCA PETSc Numpy Matplotlib PyTables Scientific Computing Infrastructure ATLAS

3

IMPACT code suiteIMPACT code suite

• IMPACT-Z: parallel PIC code (z-code)• IMPACT-T: parallel PIC code (t-code)• Envelope code, pre- and post-processors,…• Optimized for parallel processing• Applied to many projects: SNS, JPARC, RIA, FRIB, PS2, future light

sources, advanced streak cameras,…• Has been used to study photoinjectors for BNL e-cooling project, Cornell

ERL, FNAL/A0, LBNL/APEX, ANL, JLAB, SLAC/LCLS

J. Qiang, A. Zholents, LBNL

One Billion MacroparticleSimulation of an FEL Linac(~2 hrs on 512 processors)

Page 4: PS2 space-charge simulationslarpdocs.fnal.gov/LARP/DocDB/0009/000973/001/PS2_napa... · 2009-05-13 · CCA PETSc Numpy Matplotlib PyTables Scientific Computing Infrastructure ATLAS

CCA PETSc MatplotlibNumpy PyTables

Scientific Computing Infrastructure

ATLAS GSL

LAPACK FFTW HDF5Numerical Computing Infrastructure

Python Boost

Flex Bison

Generic Computing Infrastructure

Synergia2

NonlinearOptics

SpaceCharge

Impedance/Wakefields

ElectronCloud

Beam-beam

IMPACT Sphyraena

Sphyraena

S2Imp S2Electronika BeamBeam3D

TxPhysics

CHEF

SynergiaSynergia

• Development aided by both internally and externallydeveloped state-of-the-art packages. New physicsmodules are currently under development.

• Applied to FNAL booster, FNAL Mu2e experiment,CERN PS2

Page 5: PS2 space-charge simulationslarpdocs.fnal.gov/LARP/DocDB/0009/000973/001/PS2_napa... · 2009-05-13 · CCA PETSc Numpy Matplotlib PyTables Scientific Computing Infrastructure ATLAS

5

MaryLie/IMPACT MaryLie/IMPACT (ML/I)(ML/I)• Combines capabilities of MaryLie code (A. Dragt, U Md)

with IMPACT code (J. Qiang, R. Ryne, LBNL) + new features• Multiple capabilities in a single unified environment:

— Map generation— Map analysis— Particle tracking w/ 3D space charge— Envelope tracking— Fitting and optimization

• Recent applications: ERL for e-cooling @ RHIC; CERN PS2

• Parallel• 5th order optics• 3D space charge• 5th order rf cavity model• 3D integrated Green func• Photoinjector modeling• “Automatic” commands• MAD-style input• Test suite• Contributions from LBNL, UMd,

Tech-X, LANL,…

Alex Dragt, U. Md.

Error in E-field computed w/ different algorithms applied to a2D Gaussian elliptical distribution w/ 500:1 aspect ratio

Integrated Green Function on 64x64 grid is more accuratethan Hockney on 64x2048, 64x4096, 64x8192.

Map computationfrom surface data

Page 6: PS2 space-charge simulationslarpdocs.fnal.gov/LARP/DocDB/0009/000973/001/PS2_napa... · 2009-05-13 · CCA PETSc Numpy Matplotlib PyTables Scientific Computing Infrastructure ATLAS

6

Initial studiesInitial studies

• Able to read MAD description (except for SEQUENCE)• ML/I and Synergia produced linear lattice functions in agreement w/

previous CERN results

Page 7: PS2 space-charge simulationslarpdocs.fnal.gov/LARP/DocDB/0009/000973/001/PS2_napa... · 2009-05-13 · CCA PETSc Numpy Matplotlib PyTables Scientific Computing Infrastructure ATLAS

7

IMPACT and ML/I agreed on single-IMPACT and ML/I agreed on single-particle trajectoriesparticle trajectories

Page 8: PS2 space-charge simulationslarpdocs.fnal.gov/LARP/DocDB/0009/000973/001/PS2_napa... · 2009-05-13 · CCA PETSc Numpy Matplotlib PyTables Scientific Computing Infrastructure ATLAS

8

IMPACT and ML/I agreed on single-IMPACT and ML/I agreed on single-particle trajectoriesparticle trajectories

Page 9: PS2 space-charge simulationslarpdocs.fnal.gov/LARP/DocDB/0009/000973/001/PS2_napa... · 2009-05-13 · CCA PETSc Numpy Matplotlib PyTables Scientific Computing Infrastructure ATLAS

9

Tune spread due to space chargeTune spread due to space charge

A. Macridin and P. Spentzouris, FNAL

2D simulationbased onBasseti-Erskin

Page 10: PS2 space-charge simulationslarpdocs.fnal.gov/LARP/DocDB/0009/000973/001/PS2_napa... · 2009-05-13 · CCA PETSc Numpy Matplotlib PyTables Scientific Computing Infrastructure ATLAS

10

• Zero current match found using MaryLie normal form capabilities:• Normalize 1-turn map: M=A-1NA

A is the normalizing mapN is the normal form which causes only rotations in phase space

• Consider a function g((x2+px2),(y2+py

2),(t2+pt2))

• Then f(ζ)=g(A (x2+px2),(y2+py

2),(t2+pt2)) is a matched beam.

Proof: The distribution after one turn is given byf(M-1ζ)=g(AN A-1. A (x2+px

2),(y2+py2),(t2+pt

2)) =g(AN (x2+px

2),(y2+py2),(t2+pt

2))=g(A (x2+px

2),(y2+py2),(t2+pt

2))

Zero current matched beamZero current matched beam

• We generated a distribution of 1M particles using this approach;then performed element-by-element tracking for ~few hundred turns

Page 11: PS2 space-charge simulationslarpdocs.fnal.gov/LARP/DocDB/0009/000973/001/PS2_napa... · 2009-05-13 · CCA PETSc Numpy Matplotlib PyTables Scientific Computing Infrastructure ATLAS

11

Parameters using for IMPACT simulationsParameters using for IMPACT simulations

RF voltage: 1.5 MVRF frequency: 40 MHzInitial Parameters:

kinetic energy = 4 GeVrms x = 1.4 mmrms y = 0.93 mmrms emittance x = 3.0 mm-mradrms emittance y = 3.0 mm-mradrms z = 1 nsrms energy spread = 9.4 MeV6D Waterbag distribution

Space Charge Model:60 SC kicks per turn

Aperture size:round pipe with 8 cm radius

Page 12: PS2 space-charge simulationslarpdocs.fnal.gov/LARP/DocDB/0009/000973/001/PS2_napa... · 2009-05-13 · CCA PETSc Numpy Matplotlib PyTables Scientific Computing Infrastructure ATLAS

12

Preliminary IMPACT-Z results with/withoutPreliminary IMPACT-Z results with/withoutspace chargespace charge

Page 13: PS2 space-charge simulationslarpdocs.fnal.gov/LARP/DocDB/0009/000973/001/PS2_napa... · 2009-05-13 · CCA PETSc Numpy Matplotlib PyTables Scientific Computing Infrastructure ATLAS

13

Future plansFuture plans

• Finish zero current studies including nonlinear effects• Make code modifications, as needed, to model 3D space

charge effects in rings• Perform space-charge studies w/out acceleration• Turn on ramping, perform space-charge studies• More detailed modeling of injection into PS2