Upload
valentine-jordan
View
220
Download
6
Embed Size (px)
Citation preview
Zgoubi day 2009
David KelliherASTeC/RAL/STFC
UKNF WP1 09/12/09
Acknowledgment
• Thanks to François Méot for providing the presentations and thanks to the presenters
EMMA
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
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
7
S. Machida
S. Machida
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
Y. Giboudot
Tune calculation using DA mapY. Giboudot
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
Pyzgoubi
S. Tygier
S. Tygier
E. Keil – Lessons of Zgoubi day
Code development
S. Sheehy
D. Kelliher – DIPOLEC
H. Witte
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