GlueTrack interpreter for S2E beam dynamic simulations. Igor Zagorodnov BDGM, DESY 23.01.06



Similar documents
THINK OPEN, THINK FUTURE

Exploring Algorithms with Python

Introduction to Python

Postprocessing with Python

Programming in Python. Basic information. Teaching. Administration Organisation Contents of the Course. Jarkko Toivonen. Overview of Python

Scientific Programming in Python

A Python Tour: Just a Brief Introduction CS 303e: Elements of Computers and Programming

High Level Design Distributed Network Traffic Controller

Analysis Programs DPDAK and DAWN

Introduction Our choice Example Problem Final slide :-) Python + FEM. Introduction to SFE. Robert Cimrman

Damping Wigglers in PETRA III

Chapter 13: Program Development and Programming Languages

Main Bullet #1 Main Bullet #2 Main Bullet #3

Statistical Analysis on Curriculum of the National Model School of Software Engineering

MayaVi: A free tool for CFD data visualization

CS101 Lecture 24: Thinking in Python: Input and Output Variables and Arithmetic. Aaron Stevens 28 March Overview/Questions

Python for Chemistry in 21 days

MIB Explorer Feature Matrix

Improved metrics collection and correlation for the CERN cloud storage test framework

Computational Mathematics with Python

Project Proposal: Monitoring and Processing Stock Market Data In Real Time Using the Cyclone V FPGA

Cambridge International AS and A Level Computer Science

CSC230 Getting Starting in C. Tyler Bletsch

Audit TM. The Security Auditing Component of. Out-of-the-Box

applicomio Profibus-DP

RoverPal - A Mobile Payment Application

USE OF PYTHON AS A SATELLITE OPERATIONS AND TESTING AUTOMATION LANGUAGE

Parallels Plesk Panel

11th International Computational Accelerator Physics Conference (ICAP) August 19 24, 2012, Rostock-Warnemünde (Germany)

Jonathan Worthington Scarborough Linux User Group

Computational Mathematics with Python

LabStats 5 System Requirements

Computational Mathematics with Python

Advanced Topics: Biopython

Example of Standard API

CE 504 Computational Hydrology Computational Environments and Tools Fritz R. Fiedler

AIR FORCE ASSOCIATION S CYBERPATRIOT NATIONAL YOUTH CYBER EDUCATION PROGRAM UNIT THREE. Computer Basics and Virtual Machines.

Using Python for OpenVMS Web Development

Running a Program on an AVD

RemoteTM LAN Server User Guide

Automatic Script Generation Based on User-System Interactions

RemoteTM Web Server User Guide. Copyright Maxprograms

Parallel Processing using the LOTUS cluster

Kernel Types System Calls. Operating Systems. Autumn 2013 CS4023

Reminders. Lab opens from today. Many students want to use the extra I/O pins on

Real time vehicle tracking and driver behaviour monitoring using cellular handset based accelerometer and GPS data

Software. Programming Language. Software. Instructor Özgür ZEYDAN. Bülent Ecevit University Department of Environmental Engineering

Outline. hardware components programming environments. installing Python executing Python code. decimal and binary notations running Sage

Agile High-Performance Software Development

CHAD TILBURY.

Introduction to Python

Last Class: OS and Computer Architecture. Last Class: OS and Computer Architecture

A Survey of Open Source Solutions In the CIM Environment. 11 October 2007

Modelling cellular processes with Python and Scipy

NaviCell Data Visualization Python API

Open Source Backup with Amanda

CRASH COURSE PYTHON. Het begint met een idee

Synapse s SNAP Network Operating System

User s Manual. Management Software for Inverter

Fahim Uddin 1. Java SDK

2! Multimedia Programming with! Python and SDL

Last Class: OS and Computer Architecture. Last Class: OS and Computer Architecture

A hypervisor approach with real-time support to the MIPS M5150 processor

Interactive Applications in Teaching with the MATLAB Web Server. 1 Aim and structure of the MATLAB Web Server

Introduction to Apache Pig Indexing and Search

Python Programming: An Introduction to Computer Science

Fundamentals of Computer Science (FCPS) CTY Course Syllabus

PLATO Learning Environment System and Configuration Requirements for workstations. October 27th, 2008

Operating System Structures

Advanced analytics at your hands

Gothenburg Mainframe and Continuous Integration. Jan Marek com. CA Technologies. Session S610

Chapter 3 Operating-System Structures

Cloud Computing. Chapter Hadoop

x86 ISA Modifications to support Virtual Machines

Practical Programming, 2nd Edition

The Medical Physicist as Computer Geek: Custom Software in the Clinic

Netbeans 6.0. José Maria Silveira Neto. Sun Campus Ambassador

Tutorial for Assignment 2.0

How To Test A Web Server

ANSA and μeta as a CAE Software Development Platform

Python and Cython. a dynamic language. installing Cython factorization again. working with numpy

01. Introduction of Android

Capture and analysis of wireless traffic

SMock A Test Platform for the Evaluation of Monitoring Tools

Introduction to MSI* for PubH 8403

CS 3530 Operating Systems. L02 OS Intro Part 1 Dr. Ken Hoganson

Integrating NLTK with the Hadoop Map Reduce Framework Human Language Technology Project

To ensure you have the appropriate equipment and settings please review the following: Software and Hardware Recommendations.

4m. MONITORING OF ETHERNET/IP NETWORK TRAFFIC.

MDSplus Automated Build and Distribution System

Continuous Integration and Automatic Testing for the FLUKA release using Jenkins (and Docker)

System Requirements G E N E R A L S Y S T E M R E C O M M E N D A T I O N S

BogDan Vatra and Andy Gryc. Qt on Android: Is it right for you?

Axivion Bauhaus Suite Technical Factsheet

Transcription:

GlueTrack interpreter for S2E beam dynamic simulations Igor Zagorodnov BDGM, DESY 23.01.06

M.Dohlus TTF2 s2e E 127 MeV R 56 180 mm R56 E 380 MeV 100 mm E 450 MeV for λ 30nm ASTRA CSRtrack (1d model) GENESIS + W TM + 2 W + 2 W + W L TM W = wake of one TTF module W L = wake of LOLA structure TM = transverse matching to design optic We want to glue all components, transformations and conversions in one script.

Scripting language? Python (Guido van Rossum) Open Source (OSI Certified) copyrighted but use not restricted Mature (13 years old) Supportive user community plenty of good books, too Simple design, easy to learn reads like pseudo-code Suitable as first language Suitable as last language :-)

Why Python? Extremely portable Unix/Linux, Windows, Mac, PalmOS, WindowsCE, RiscOS, VxWorks, QNX, OS/2, OS/390, AS/400, PlayStation, Sharp Zaurus, BeOS, VMS Compiles to interpreted byte code compilation is implicit and automatic Memory management automatic Safe : no core dumps due to your bugs Extensible (add new modules) C/C++/Fortran/whatever Java (through Jython)

Who is using Python? Google (various projects) NASA (several projects) NYSE (one of only three languages "on the floor") Industrial Light & Magic (everything) Yahoo! (Yahoo mail & groups) RealNetworks (function and load testing) RedHat (Linux installation tools) LLNL, Fermilab (steering scientific applications) Zope Corporation (content management) ObjectDomain (embedded Jython in UML tool) Alice project at CMU (accessible 3D graphics) J.Amundson et al. Synergia: An accelerator modeling tool with 3-D space charge, Journal of Comp.Phys., 211 (2006)

input.txt (tasks, actions, parameters) mains2e.py (configuration and start) wakes.py (wake function definitions) Codes (Astra, CSRtrack, Genesis) Input files for the codes S2E_tools.py (parsing, interpretation, analysis) particle_tools.py (conversions, matching, transformations) Python, Scipy, Pylab report.html figures distributions

input.txt (actions, tasks, parameters)! input file for Start-to-End simulation of TTF2 #00 ASTRA -> CSRtrack action=processor task=read sort_len=true in_file=ttf2.1359.001 format=astra task=add_wake wake_delta=0 m_interv=[-0.005, 0.005] sigmai=0.0001 wake=wake0 task=center centerx=true centery=true centerxs=true centerys=true innterv=[-0.002, 0.002] task=matching interv=[-0.002, 0.002] xpar=[4.619, 20.174,1.0] ypar=[-0.012, 2.809,1.0] task=write out_file=bc1_in.fmt1 format=fmt1 #01 BC1 (CSRtrack) action=csrtrack task=run work_dir=n1_bc1 command=./src_11 #02 CSRTrack -> ASTRA action=processor task=read in_file=n1_bc1/out/bc1_out.fmt1 format=fmt1 task=center centerz=true task=define_ref_part task=drift length=-1 task=write z0=24.854 out_file=n2_bc_to_bc/bc1_out.ini format=astra #03 BC1 to BC2 (ASTRA) action=astra task=run command=./astra, bc_to_bc100.in work_dir=n2_bc_to_bc task=run command=./astra, bc_to_bc300.in work_dir=n2_bc_to_bc

input.txt (actions, tasks, parameters) processor read write add_wake matching drift drift_to define_ref_part center extract_slice_centr mix analysis read write slice_analysis m_current m_emmitance m_momentum m_rms_momentum m_hor_offset m_hor_slope m_twissx m_twissy m_topview ASTRA, CSRTrack run os

from S2E_tools import * mains2e.py #configuration runtype='restart'; #'restart','new' fig_dir='./figures/'; report_file=fig_dir+'report.html'; inputfile='input.txt' outputfile='output.txt' # main code if runtype=='new': html=open(report_file,'w'); html.write('<html><body BGCOLOR="white">\n') start,stop,indfig=0,1000,0 if runtype=='restart': html=open(report_file,'a+'); start,stop,indfig=findrestartparameters(html) from scipy import * wakes.py def waketm(s): return -1e12*(344*exp(- sqrt(s/0.00174))) def wakelola(s): return -1e12*(257.6*exp(- sqrt(s/0.00396))+1.16*cos(1760*s**0.72)/(sqrt(s)+ 1600*s**1.23+1e-20)) def wake0(s): return waketm(s) wake0_delta=0 def wake1(s): return 2*wakeTM(s) wake1_delta=0 def wake2(s): return 2*wakeTM(s)+wakeLOLA(s) wake2_delta=-0.036e12*20/22.44 actions=readtask(inputfile); indfig=runtask(actions,fig_dir,html,start=start,stop=stop,i ndfig=indfig) html.write('</body></html>\n'); html.close()

E 127 MeV R 56 180 mm R56 E 380 MeV 100 mm E 450 MeV for λ 30nm ASTRA CSRtrack (1d model) GENESIS + W TM + 2 W + 2 W + W L TM ACC1 output BC2 Input BC2 output ACC2 input ACC3 output BC3 Input BC3 output ACC4 input LOLA output dogleg input dogleg output ASTRA input ASTRA output 0 0.4e-7 0.1e-3 0.2e-3 0.09 0.09 0.5 4 6 7 3 3 5 relative error[%] error = MD GT aij aij max 100% j MD max a i ij

I [ ka] 1.5 ΔI[ ka] 4 x 10-3 2 1 0 0.5-2 -4 0 350 400 450 z[ μm] -6 350 400 450 z[ μm] Δ = MD GT I I I

Martin Dohlus GlueTrack

Genesis input file difference? #? VERSION = 1.0? SIZE = 319? COLUMNS ZPOS GAMMA0 DELGAM EMITX EMITY RXBEAM RYBEAM CURPEAK error MD GT aij aij = max 100% = 1.5% j MD max a i ij

Next 1. Parameter scans 2. XFEL simulations Aknowledgements to Martin Dohlus for guidance and MathCAD scripts