ptc tracking - progress report (the first month experience) valery kapin d.sc., kyoto univ. itep,...

10
PTC tracking - progress report (the first month experience) Valery KAPIN D.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);

Upload: todd-walsh

Post on 19-Jan-2016

218 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: PTC tracking - progress report (the first month experience) Valery KAPIN D.Sc., Kyoto Univ. ITEP, Moscow Relevant background: a) Fortran-77/90 programming

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);

Page 2: PTC tracking - progress report (the first month experience) Valery KAPIN D.Sc., Kyoto Univ. ITEP, Moscow Relevant background: a) Fortran-77/90 programming

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.

Page 3: PTC tracking - progress report (the first month experience) Valery KAPIN D.Sc., Kyoto Univ. ITEP, Moscow Relevant background: a) Fortran-77/90 programming

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

Page 4: PTC tracking - progress report (the first month experience) Valery KAPIN D.Sc., Kyoto Univ. ITEP, Moscow Relevant background: a) Fortran-77/90 programming

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”)

Page 5: PTC tracking - progress report (the first month experience) Valery KAPIN D.Sc., Kyoto Univ. ITEP, Moscow Relevant background: a) Fortran-77/90 programming

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;

Page 6: PTC tracking - progress report (the first month experience) Valery KAPIN D.Sc., Kyoto Univ. ITEP, Moscow Relevant background: a) Fortran-77/90 programming

MADX: Thin-lens tracking (file apr07ktr)

Page 7: PTC tracking - progress report (the first month experience) Valery KAPIN D.Sc., Kyoto Univ. ITEP, Moscow Relevant background: a) Fortran-77/90 programming

MADX-PTC: Thin-lens tracking (file apr07ktrptc-1)

Page 8: PTC tracking - progress report (the first month experience) Valery KAPIN D.Sc., Kyoto Univ. ITEP, Moscow Relevant background: a) Fortran-77/90 programming

MADX-PTC: Thick-lens tracking (file apr07ktrptc-tk_121)

ptc_create_layout, model=1,method=2,nst=1;

Page 9: PTC tracking - progress report (the first month experience) Valery KAPIN D.Sc., Kyoto Univ. ITEP, Moscow Relevant background: a) Fortran-77/90 programming

MADX-PTC: Thick-lens tracking (file apr07ktrptc-tk_3610e)

ptc_create_layout, model=2,method=6,nst=10,exact

Page 10: PTC tracking - progress report (the first month experience) Valery KAPIN D.Sc., Kyoto Univ. ITEP, Moscow Relevant background: a) Fortran-77/90 programming

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