ptc tracking - progress report (the first month experience) valery kapin d.sc., kyoto univ. itep,...
TRANSCRIPT
PTC tracking - progress report
(the first month experience)Valery KAPIND.Sc., Kyoto Univ.
ITEP, Moscow
Relevant background:
a) Fortran-77/90 programming (1980-present), no “C”- language;
b) Beam dynamics coding for RFQ & DTL linacs (1982-2004);
c) Beginning user for MAD-8 (2002-2003, NIRS, Japan);
Program for Work Package 2.2a“Thick Lattice Tracking”
• Requirements:
1) This module should have the same functionality as the thin tracking module in MAD-X (trrun.F => “makethin”) ;
2) It is based on PTC which treats all thick elements with symplectic integrators.
Steps for a code with thick lens tracking (Feb-Jun.2005)
• Prepare C-part (database) by FRS.
• Duplicate thin-lens code (trrun.F) and prepare tracking using PTC
• Debugging, examples and testing
• Documentation
Present status and nearest tasks
• Entering many particles (line-by-line)
• Put data into tables like “trrun.F” (the same output subroutines)
• Plotting phase-space diagrams for many particles
• Now - tracking over one turn
• Soon – tracking element-by-element with many observation points (“observe”)
Input for MADX and MADX-PTC• track, dump,onepass;• start, x=1e-3, px=0, y=1e-3, py=0;• start, x=1e-3, px=0, y=1e-3, py=0;• start, x=2e-3, px=0, y=2e-3, py=0;• start, x=3e-3, px=0, y=3e-3, py=0;• start, x=4e-3, px=0, y=4e-3, py=0;• start, x=5e-3, px=0, y=5e-3, py=0;• start, x=6e-3, px=0, y=6e-3, py=0;• start, x=7e-3, px=0, y=7e-3, py=0;• run, turns=1000, ffile=1;• plot, file="apr07ktr", table=track,
haxis=x, vaxis=px, particle=1,2,3,4,5,6,7, colour=100, multiple, symbol=3;
• plot, file="apr07ktr", table=track, haxis=y, vaxis=py,
• particle=1,2,3,4,5,6,7, colour=100, multiple, symbol=3;
• endtrack;
• ptc_create_universe;• ptc_create_layout,
model=2, method=6, nst=10,exact;• ptc_start, x=1e-3, px=0,
y=1e-3, py=0;• ptc_start, x=2e-3, px=0, y=2e-3, py=0;• ptc_start, x=3e-3, px=0, y=3e-3, py=0;• ptc_start, x=4e-3, px=0, y=4e-3, py=0;• ptc_start, x=5e-3, px=0, y=5e-3, py=0;• ptc_start, x=6e-3, px=0, y=6e-3, py=0;• ptc_start, x=7e-3, px=0, y=7e-3, py=0;• ptc_track,icase=4,closed_orbit,dump,• turns=1000,ffile=1;• plot, file="apr07ktrptc", table=track,
haxis=x,vaxis=px,• particle=1,2,3,4,5,6,7,
colour=1000, multiple, symbol=3;• plot, file="apr07ktrptc", table=track,
haxis=y,vaxis=py,• particle=1,2,3,4,5,6,7,
colour=1000, multiple, symbol=3;• ptc_end;
MADX: Thin-lens tracking (file apr07ktr)
MADX-PTC: Thin-lens tracking (file apr07ktrptc-1)
MADX-PTC: Thick-lens tracking (file apr07ktrptc-tk_121)
ptc_create_layout, model=1,method=2,nst=1;
MADX-PTC: Thick-lens tracking (file apr07ktrptc-tk_3610e)
ptc_create_layout, model=2,method=6,nst=10,exact
Future plans (Workpackage III)
• Implementation of the following items (after completing the element-by-element tracking):
1) Synchrotron radiation & quantum excitation (emittance evolution, special model by F.Z.);
2) Beam-beam element;
3) ....................................................4) Direct Space-charge (like “AccSym-Orbit” codes);
5) Effects from electron cooler