Computation of Taylor Maps and Applications to Accelerator Physics Six lectures with emphasis on examples and their computer implementations Etienne Forest.

Slides:



Advertisements
Similar presentations
Agenda Definitions Evolution of Programming Languages and Personal Computers The C Language.
Advertisements

Lecture 2 Jack Tanabe Old Dominion University Hampton, VA January 2011 Mathematical Formulation of the Two Dimensional Magnetic Field.
PID Controller Tuning for Desired Closed-Loop Response for SI/SO System 指導老師 : 曾慶耀 學生 : 詹佳翔.
Accelerator Modeling with PTC What is PTC? Etienne Forest 高エネルギー加速器研究機構 (KEK)
Optimization of thermal processes
Lecture 16 Symbolic Mathematics Symbolic mathematics: algebraezplotcalculus © 2007 Daniel Valentine. All rights reserved. Published by Elsevier.
ECE 530 – Analysis Techniques for Large-Scale Electrical Systems Prof. Hao Zhu Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
Taylor Series (11/12/08) Given a nice smooth function f (x): What is the best constant function to approximate it near 0? Best linear function to approximate.
Ch 7.9: Nonhomogeneous Linear Systems
Introduction to Gröbner Bases for Geometric Modeling Geometric & Solid Modeling 1989 Christoph M. Hoffmann.
1 CS101 Introduction to Computing Lecture 19 Programming Languages.
THE LAPLACE TRANSFORM LEARNING GOALS Definition The transform maps a function of time into a function of a complex variable Two important singularity functions.
Topic Three: Perturbations & Nonlinear Dynamics UW Spring 2008 Accelerator Physics J. J. Bisognano 1 Accelerator Physics Topic III Perturbations and Nonlinear.
C++ Object Oriented 1. Class and Object The main purpose of C++ programming is to add object orientation to the C programming language and classes are.
An innovative learning model for computation in first year mathematics Birgit Loch Department of Mathematics and Computing, USQ Elliot Tonkes CS Energy,
Erin Catto Blizzard Entertainment Numerical Integration.
Lecture 2 How do we approach Perturbation theory with a Tracking Code equipped with a TPSA package? a.Description of our goals b.Concept of a Hierarchical.
/425 Declarative Methods - J. Eisner /425 Declarative Methods Prof. Jason Eisner MWF 3-4pm (sometimes 3-4:15)
Simulation of direct space charge in Booster by using MAD program Y.Alexahin, N.Kazarinov.
STE 6239 Simulering Friday, Week 1: 5. Scientific computing: basic solvers.
PTC Integration into MAD-X What is PTC? (Etienne’s words) Some Facts about PTC What are the advantages for MAD-X? Magnet Treatment in PTC How will we use.
1 EEE 431 Computational Methods in Electrodynamics Lecture 4 By Dr. Rasime Uyguroglu
T. Satogata / Fall 2011 ODU Intro to Accel Physics 1 Introduction to Accelerator Physics Old Dominion University Nonlinear Dynamics Examples in Accelerator.
MA/CS 375 Fall MA/CS 375 Fall 2002 Lecture 31.
Major objective of this course is: Design and analysis of modern algorithms Different variants Accuracy Efficiency Comparing efficiencies Motivation thinking.
OBJECT-ORIENTED PROGRAMMING (OOP) WITH C++ Instructor: Dr. Hany H. Ammar Dept. of Electrical and Computer Engineering, WVU.
IIT-Madras, Momentum Transfer: July 2005-Dec 2005 Perturbation: Background n Algebraic n Differential Equations.
In section 11.9, we were able to find power series representations for a certain restricted class of functions. Here, we investigate more general problems.
Serge Andrianov Theory of Symplectic Formalism for Spin-Orbit Tracking Institute for Nuclear Physics Forschungszentrum Juelich Saint-Petersburg State University,
Intro. to Advanced Lighting, Basic Ray Tracing Glenn G. Chappell U. of Alaska Fairbanks CS 481/681 Lecture Notes Monday, April.
Update Chris Rogers, Analysis PC, 13/07/06. State of the “Accelerator” Simulation Field model now fully implemented in revised MICE scheme Sanity checking.
The Islamic University of Gaza Faculty of Engineering Civil Engineering Department Numerical Analysis ECIV 3306 Introduction Course Outline.
THE LAPLACE TRANSFORM LEARNING GOALS Definition
Texas A&M University, Department of Aerospace Engineering AN EMBEDDED FUNCTION TOOL FOR MODELING AND SIMULATING ESTIMATION PROBLEMS IN AEROSPACE ENGINEERING.
Advanced Engineering Mathematics, 7 th Edition Peter V. O’Neil © 2012 Cengage Learning Engineering. All Rights Reserved. CHAPTER 4 Series Solutions.
By Verena Kain CERN BE-OP. In the next three lectures we will have a look at the different components of a synchrotron. Today: Controlling particle trajectories.
ECE 530 – Analysis Techniques for Large-Scale Electrical Systems Prof. Hao Zhu Dept. of Electrical and Computer Engineering University of Illinois at Urbana-Champaign.
Lecture 4 - E. Wilson - 23 Oct 2014 –- Slide 1 Lecture 4 - Transverse Optics II ACCELERATOR PHYSICS MT 2014 E. J. N. Wilson.
E. Todesco, Milano Bicocca January-February 2016 Appendix A: A digression on mathematical methods in beam optics Ezio Todesco European Organization for.
Lecture 4 - E. Wilson –- Slide 1 Lecture 4 - Transverse Optics II ACCELERATOR PHYSICS MT 2009 E. J. N. Wilson.
SLAC LET Meeting Global Design Effort 1 CHEF: Recent Activity + Observations about Dispersion in Linacs Jean-Francois Ostiguy FNAL.
서울대한양대 ( 안 산 ) 충남대 1년1년 컴퓨터기초 (C) 컴퓨터프로그래밍 (C, Java) 컴퓨터프로그래밍 (C) 2. 봄 프로그래밍 원리 (Scheme, ML) Structure & Interpretation of Computer Programs 프로그래밍 방법론.
Texas A&M University, Department of Aerospace Engineering AUTOMATIC GENERATION AND INTEGRATION OF EQUATIONS OF MOTION BY OPERATOR OVER- LOADING TECHNIQUES.
Paradigms in Physics: Facilitating Cognitive Development in Upper Division Courses Elizabeth Gire Oregon State University This material is based upon work.
The Cockroft Institute
S5.40. Module Structure 30% practical tests / 70% written exam 3h lectures / week (except reading week) 3 x 2h of computer labs (solving problems practicing.
Transfer Functions Convenient representation of a linear, dynamic model. A transfer function (TF) relates one input and one output: The following terminology.
MA Day 62 – April 15, 2013 Section 13.6: Surface integrals.
Orbit Response Matrix Analysis
Lecture 2 How do we approach Perturbation theory with a Tracking Code equipped with a TPSA package? Description of our goals Concept of a Hierarchical.
OSE801 Engineering System Identification Spring 2010
Advanced Numerical Methods (S. A. Sahu) Code: AMC 51151
Symbolic mathematics: algebra ezplot calculus
Principles of Analytical Perturbation Theory
Analysis of Nonlinear Dynamics
Objective of This Course
Prof. Jason Eisner MWF 3-4pm (sometimes 3-4:15)
Victor Edneral Moscow State University Russia
3D Transformation CS380: Computer Graphics Sung-Eui Yoon (윤성의)
Lecture 4 - Transverse Optics II
Lecture 2 Jack Tanabe Old Dominion University Hampton, VA January 2011
Taylor Polynomials – Day 2
Principles of Analytical Perturbation Theory
Lecture 4 - Transverse Optics II
Lecture 2 How do we approach Perturbation theory with a Tracking Code equipped with a TPSA package? Description of our goals Concept of a Hierarchical.
Physics 451/551 Theoretical Mechanics
Chapter 3 Modeling in the Time Domain
CISE-301: Numerical Methods Topic 1: Introduction to Numerical Methods and Taylor Series Lectures 1-4: KFUPM CISE301_Topic1.
THE LAPLACE TRANSFORM LEARNING GOALS Definition
Presentation transcript:

Computation of Taylor Maps and Applications to Accelerator Physics Six lectures with emphasis on examples and their computer implementations Etienne Forest Soken Dai December 2004/January 2005

► What is the original “DA” package? ► What does it do? Why is it useful? ► What is “Operator Overloading”? ► Taylor Polymorphism? ► “Lie/Differential Algebra”? ► Normal Forms? ► What is a integrator based code? ► What is a matrix based code i.e. Cosy-Infinity? ► What is the difference between polymorphism in a compile form (my stuff) and interpreted code (Cosy language)? ► And all these things, can I use in my own code? These are the questions which we will answer in the 6 lectures using examples as much as possible rather than theory! A TPSA Package Computes approximate Taylor maps Makes Taylor Code look ordinary Delays choice between Taylor and Real at execution time Vector fields of the theory: allow perturbation theory Various Canonical (i.e. special) forms of the map useful in periodic systems

Demystifying AD-DA Lecture 1 Automatic Differentiation (AD) is based on a Truncated Power Series Algebra (TPSA) not on a Differential Algebra (DA) DA which involves useful vector fields will be discussed in future lectures.

The Basic Questions of the first lecture: These questions are not hard unless couched in the abstract mathematical lingo Berz loves. Basic Questions for Lecture 1 What is the original TPSA (i.e. DA) package? What does it do? Why is it useful? What is “Operator Overloading”?

How do we cut through the nonsense? 1. Simple: we write a small fully functional toy TPSA package for this class! 2.Only 400 lines of code including the blanks! 3.Fully overloaded and fully automatic 4.Restricted to 2 variables and third order Of course, it is not Berz package and there are a lot of issues about overloading Berz’s package that can be neglected in the small example. The purpose here is to demystify these techniques and not to bother you with ultimately nearly irrelevant technicalities.

Look at TPSA through our toy TPSA Package ► A basic TPSA-package is a tool to expand what you compute on the computer in a Taylor Series in the variable you choose. ► In Optics and Accelerators, it permits the computations of maps for perturbative calculations and also sometimes simulations. ► Operator Overloading brings us closer to Automatic Differentiation rather than Computational Differentiation: the code that computes the Taylor expansion is almost identical to the code that computed the original quantity. Perturbative calculations : Transfer Matrix, Lattice functions (Twiss), tunes, damping, amplitude dependent tune shifts, aberrations in optical systems, resonance driving terms, synchrotron integrals, etc…It is here that differential operators and hence Lie/Differential algebras (DA) will come into play.

Before we start, why do we want Taylor series? Why we want Taylor Series: Example 1, shooting … Or perhaps accelerator physics? 卍 Download Toy TPSA and Gun/FODO cell application main program here! 卍here

One dimensional Quadrupole FODO Cells Example 2: 10 FODO Cells

TPSA-Addition/Subtraction

Multiplication

Inverse : Nilpotency comes in Nilpotency

Functions: Exponential Again one isolates the constant part to create a nilpotent  T

Ignore Nilpotency? Sometimes OK This is used in COSY-Infinity techniques where  T is a vector field acting a polynomial. For this reason, please reflect carefully why this series works! It is implemented as TPSA_EXP in the toy TPSA and N=n_tpsa_exp.

Conclusion ► ► We implemented a Truncated Series Algebra on the Computer. The original “ DA ” package of Berz is only that. ► ► For the mathematically oriented people, this TPS Algebra is simply a ring ( 環 ). ► ► The concept of Differential Algebra does not enter in TPSA. It is of no relevance at this stage.

► Perturbation theory will be discussed from a very geometrical point of view: invariants, Twiss functions and nonlinear distortions. ► The geometrical picture will be translated into an operation derived from the Taylor map. ► My own FPP library will used. In these lectures I will emphasize the “ canned library ” aspect of FPP. We will not go into the mathematical details but just assume that the library does what it advertises. ► We will see that FPP manipulates Vector Fields associated to the Taylor map. These Vector Fields form a differential Lie algebra. But that is not too important: focus on the geometrical aspect please. ► Lecture number 2 will start with some very traditional computations and will end with an introduction to the Geometrical Point of View. ► 注意 Other mathematical objects in Berz ’ s lectures, such as Levi- Civita fields ( 体 ), non Archimedean fields, are interesting (but so is ancient Greek and classical Chinese), but really of virtually no relevance to our work. Do not get distracted. Future Lectures

Problem The function ArcSin(x) or asin(x) cannot be easily separated into a constant part and a nilpotent part. Can you find an algorithm to evaluate asin(x) when x is a polynomial? Program this algorithm using the Toy TPSA routines. Your algorithm should not be explicitly limited to cubic polynomials.