21
Zgoubi day 2009 David Kelliher ASTeC/RAL/STFC UKNF WP1 09/12/09

Zgoubi day 2009 David Kelliher ASTeC/RAL/STFC UKNF WP1 09/12/09

Embed Size (px)

Citation preview

Page 1: Zgoubi day 2009 David Kelliher ASTeC/RAL/STFC UKNF WP1 09/12/09

Zgoubi day 2009

David KelliherASTeC/RAL/STFC

UKNF WP1 09/12/09

Page 2: Zgoubi day 2009 David Kelliher ASTeC/RAL/STFC UKNF WP1 09/12/09

Acknowledgment

• Thanks to François Méot for providing the presentations and thanks to the presenters

Page 3: Zgoubi day 2009 David Kelliher ASTeC/RAL/STFC UKNF WP1 09/12/09
Page 4: Zgoubi day 2009 David Kelliher ASTeC/RAL/STFC UKNF WP1 09/12/09

EMMA

Page 5: Zgoubi day 2009 David Kelliher ASTeC/RAL/STFC UKNF WP1 09/12/09

Zgoubi and EMMA

• Zgoubi chosen to serve as a Virtual accelerator in the online model of EMMA

Why Zgoubi?

Handles a wide variety of magnets (analytic models and field maps)

Doesn’t assume a reference orbit (unlike MAD)

Python interface has increased user-friendliness of code

Author is available to help and has modelled EMMA

Growing skillbase in UK

Page 6: Zgoubi day 2009 David Kelliher ASTeC/RAL/STFC UKNF WP1 09/12/09

Zgoubi PTC GPT Scott Shinji FFEMMAG MMCA MAD-X Kiril's scripttracking trajectory yes yes yes yes yes yes yes yes

map tracking no yes yes yes no yes yes yesacceleration yes yes yes maybe yes maybe maybe nogeometry / eff. Length yes yes yes yes yes yes maybe noerrors - strength yes yes check yes yes maybe maybe yeserrors - missalignements yes yes check maybe h & v maybe maybe yesapertures magnet no check check maybe yes maybe maybe yes

collimators yes check check maybe yes maybe maybe yeselt. desc. - magnets fringe yes no maybe no yes maybe maybe no

hard edge yes yes no yes no yes maybe nofield map yes maybe yes no maybe yes maybe no

elt. desc. - cavities kick yes yes no maybe yes no maybe yesfield map no maybe yes no no maybe maybe nofocusing check check yes maybe no maybe maybe no

space charge no no yes no yes no no noinjection full septum maybe maybe maybe no no no no no yes

kicker maybe no maybe maybe maybe maybe no no yesline yes yes yes yes yes no yes yes no

extraction full septum maybe maybe maybe no no no no no yeskicker maybe no maybe maybe maybe maybe no no yesline yes yes yes yes yes no yes yes no

interface friendly maybe no yes no no no no yesepics check no check no no no yes no

correction schemes svd or equiv. no no check no no no yes yesmatching yes no yes yes maybe no yes yesbpm errors maybe maybe check maybe maybe maybe maybe yes

customisable by us no no yes yes yes yes maybe nocode author availability yes yes yes yes yes yes yes noskill base 4 1 3 1 1 2 5documentation yes no yes no no no maybe yesspeed maybe fast fast fast fast fast slow fastexecutable yes no yes no yes yes yes yescost no no yes no no no yes no

Code Comparison B. Muratori

Page 7: Zgoubi day 2009 David Kelliher ASTeC/RAL/STFC UKNF WP1 09/12/09

7

S. Machida

Page 8: Zgoubi day 2009 David Kelliher ASTeC/RAL/STFC UKNF WP1 09/12/09

S. Machida

Page 9: Zgoubi day 2009 David Kelliher ASTeC/RAL/STFC UKNF WP1 09/12/09

EpicsZgoubi – Implementation

EpicsZgoubi – C++ Windows Console Application

Zgoubi

pyZgoubi

EPICS Channel Access

EPICS R3.14.10 Portable CAS

Virtual Accelerator (Python Script)

Input File Output File

XML Configuration

FileEPICS Clients

Defines Process Variables exposed by the interface

Location to write PV data into the output file

Location to read PV data from the input file

Which application to run when output data changes

Coded into the core applicationCoded into the core application, but configurable via XMLExternal and configurable via XML

G. Cox

Page 10: Zgoubi day 2009 David Kelliher ASTeC/RAL/STFC UKNF WP1 09/12/09

Y. Giboudot

Page 11: Zgoubi day 2009 David Kelliher ASTeC/RAL/STFC UKNF WP1 09/12/09

Tune calculation using DA mapY. Giboudot

Page 12: Zgoubi day 2009 David Kelliher ASTeC/RAL/STFC UKNF WP1 09/12/09

3D field tracking Why 3D tracking ?

(1) Field coupling between BF and BD is non-linear

(2) Fringing field is major part in a thin magnet

(3) Field distribution is not that of ideal quadrupole (especially in outer region)

QD QF

Magnet center

A B C DA B

CD

**Fields are calculated with OPERA/3D

T. Yokoi

Page 13: Zgoubi day 2009 David Kelliher ASTeC/RAL/STFC UKNF WP1 09/12/09

Pyzgoubi

Page 14: Zgoubi day 2009 David Kelliher ASTeC/RAL/STFC UKNF WP1 09/12/09

S. Tygier

Page 15: Zgoubi day 2009 David Kelliher ASTeC/RAL/STFC UKNF WP1 09/12/09

S. Tygier

Page 16: Zgoubi day 2009 David Kelliher ASTeC/RAL/STFC UKNF WP1 09/12/09

E. Keil – Lessons of Zgoubi day

Page 17: Zgoubi day 2009 David Kelliher ASTeC/RAL/STFC UKNF WP1 09/12/09

Code development

Page 18: Zgoubi day 2009 David Kelliher ASTeC/RAL/STFC UKNF WP1 09/12/09

S. Sheehy

Page 19: Zgoubi day 2009 David Kelliher ASTeC/RAL/STFC UKNF WP1 09/12/09

D. Kelliher – DIPOLEC

Page 20: Zgoubi day 2009 David Kelliher ASTeC/RAL/STFC UKNF WP1 09/12/09

H. Witte

Page 21: Zgoubi day 2009 David Kelliher ASTeC/RAL/STFC UKNF WP1 09/12/09

Zgoubi/Pyzgoubi plans

• Readable output file will be output by Zgoubi• Pyzgoubi will take SI units rather than

“Zgoubi” units• Upgrade of Pyzgoubi to allow lattice subsets to

be put together as needed• Double-helix coil field map being implemented