Symplectic integration. Yichao Jing

Similar documents
Chapter 1 Symplectic Integrator and Beam Dynamics Simulations

Nonlinear Single-Particle Dynamics in High Energy Accelerators

Non-linear dynamics! in particle accelerators!

Symplectic Maps for General Hamiltonians

Numerical Algorithms as Dynamical Systems

Geometric methods for orbit integration. PiTP 2009 Scott Tremaine

Hamiltonian flow in phase space and Liouville s theorem (Lecture 5)

Caltech Ph106 Fall 2001

Bernhard Holzer, CERN-LHC

Geometric Numerical Integration

1 Ordinary differential equations

High performance computing and numerical modeling

Physics 106b: Lecture 7 25 January, 2018

The Accelerator Hamiltonian in a Straight Coordinate System

Physics 115/242 The leapfrog method and other symplectic algorithms for integrating Newton s laws of motion

Treecodes for Cosmology Thomas Quinn University of Washington N-Body Shop

Hamiltonian Dynamics

Lecture IV: Time Discretization

Review Higher Order methods Multistep methods Summary HIGHER ORDER METHODS. P.V. Johnson. School of Mathematics. Semester

Introduction to Hamiltonian Monte Carlo Method

Backward error analysis

The kinetic equation (Lecture 11)

Poisson Brackets and Lie Operators

Draft TAYLOR SERIES METHOD FOR SYSTEM OF PARTICLES INTERACTING VIA LENNARD-JONES POTENTIAL. Nikolai Shegunov, Ivan Hristov

Runga-Kutta Schemes. Exact evolution over a small time step: Expand both sides in a small time increment: d(δt) F (x(t + δt),t+ δt) Ft + FF x ( t)

Lecture Notes to Accompany. Scientific Computing An Introductory Survey. by Michael T. Heath. Chapter 9

Nonlinear Single-Particle Dynamics in High Energy Accelerators

Scientific Computing: An Introductory Survey

Three Loose Ends: Edge Focusing; Chromaticity; Beam Rigidity.

Assignment 8. [η j, η k ] = J jk

Initial value problems for ordinary differential equations

Introduction to Accelerator Physics Old Dominion University. Nonlinear Dynamics Examples in Accelerator Physics

S2E: Solenoidal Focusing

S2E: Solenoidal Focusing

Xiaobiao Huang Accelerator Physics August 28, The Dipole Passmethod for Accelerator Toolbox

Chaotic motion. Phys 750 Lecture 9

Scientific Computing with Case Studies SIAM Press, Lecture Notes for Unit V Solution of

Calculating Accurate Waveforms for LIGO and LISA Data Analysis

Langevin Methods. Burkhard Dünweg Max Planck Institute for Polymer Research Ackermannweg 10 D Mainz Germany

Physics 127b: Statistical Mechanics. Renormalization Group: 1d Ising Model. Perturbation expansion

Particle Accelerators: Transverse Beam Dynamics

Math 692A: Geometric Numerical Integration

Estimating Accuracy in Classical Molecular Simulation

Emittance preserving staging optics for PWFA and LWFA

Nonlinear dynamics. Yichao Jing

HAMILTON S PRINCIPLE

CS 450 Numerical Analysis. Chapter 9: Initial Value Problems for Ordinary Differential Equations

Nonlinear Single-Particle Dynamics in High Energy Accelerators

The Spinor Representation

Modified Equations for Variational Integrators

Magnetic wells in dimension three

Equations of motion in an accelerator (Lecture 7)

Nonlinear Dynamics - Methods and Tools. and a Contemporary ( ) framework. to treat Linear and Nonlinear Beam Dynamics PART 3

New constructions of Hamiltonian-minimal Lagrangian submanifolds

The Geometry of Euler s equation. Introduction

Lecture V: The game-engine loop & Time Integration

Ordinary Differential Equations II

Hamiltonian Systems of Negative Curvature are Hyperbolic

2 Canonical quantization

Status of the MAGIX Spectrometer Design. Julian Müller MAGIX collaboration meeting 2017

The Toda Lattice. Chris Elliott. April 9 th, 2014

arxiv: v1 [physics.plasm-ph] 15 Sep 2013

Physics 115/242 The leapfrog method and other symplectic algorithms for integrating Newton s laws of motion

Chaotic motion. Phys 420/580 Lecture 10

THE Hamilton equations of motion constitute a system

SYMPLECTIC MANIFOLDS, GEOMETRIC QUANTIZATION, AND UNITARY REPRESENTATIONS OF LIE GROUPS. 1. Introduction

Ordinary Differential Equations

TWISS FUNCTIONS. Lecture 1 January P.J. Bryant. JUAS18_01- P.J. Bryant - Lecture 1 Twiss functions

On the numerical integration of variational equations

A Survey of Computational High Frequency Wave Propagation II. Olof Runborg NADA, KTH

Numerical Methods for ODEs. Lectures for PSU Summer Programs Xiantao Li

NUMERICAL SOLUTION OF ODE IVPs. Overview

Symplectic Runge-Kutta methods satisfying effective order conditions

Recent Progress in the Integration of Poisson Systems via the Mid Point Rule and Runge Kutta Algorithm

Analysis of Nonlinear Dynamics by Square Matrix Method

Hamiltonian Dynamics In The Theory of Abstraction

An Introduction to Differential Algebra

On explicit integration of two non-holonomic problems

EXAMPLE OF ONE-STEP METHOD

04.sup Equations of Motion and Applied Fields *

Numerical integration of variational equations

Lecture 3: Modeling Accelerators Fringe fields and Insertion devices. X. Huang USPAS, January 2015 Hampton, Virginia

arxiv: v1 [physics.acc-ph] 21 Oct 2014

28344 Bremen, Germany. hdullin or

Chapter VI. Symplectic Integration of Hamiltonian Systems

Quantum Theory and Group Representations

Lecture 5. Alexey Boyarsky. October 21, Legendre transformation and the Hamilton equations of motion

Analysis of KEK-ATF Optics and Coupling Using Orbit Response Matrix Analysis 1

On the Hamilton-Jacobi Variational Formulation of the Vlasov Equation

ECE 422/522 Power System Operations & Planning/Power Systems Analysis II : 7 - Transient Stability

PH.D. PRELIMINARY EXAMINATION MATHEMATICS

Logistic Map, Euler & Runge-Kutta Method and Lotka-Volterra Equations

Consistency and Convergence

Low Emittance Machines

Calculus for the Life Sciences

Runge-Kutta methods. With orders of Taylor methods yet without derivatives of f (t, y(t))

Ideas for a sextupole-free final focus system

Time-Dependent Statistical Mechanics 5. The classical atomic fluid, classical mechanics, and classical equilibrium statistical mechanics

Accelerator Physics Homework #3 P470 (Problems: 1-5)

Physics 115/242 Comparison of methods for integrating the simple harmonic oscillator.

Transcription:

Yichao Jing

Hamiltonian & symplecticness Outline Numerical integrator and symplectic integration Application to accelerator beam dynamics Accuracy and integration order

Hamiltonian dynamics In accelerator, particles motion is predicted by Hamilton s equations dq dt H p, dp dt H q or it can be written in a compact form or q p H(p,q), p q H(p, q) z J z H(z) z (p, q) J 0 I I 0 The solution is a transformation mapping (flow) p, q A t,h (p 0, q 0 ) or for simplicity z A(z 0 ) in matrix representation, the map A is a 2n by 2n matrix.

Symplecticness A. Hamilton s equations predict the evolution of phase space. B. Canonical transformation A preserves the form of Hamilton s equations. C. Transformation A is canonical if and only if it satisfies the relation A T JA J and we call this transformation A symplectic det A 1 Proof. Hamilton s equation can be expressed as if we have transformation H y AJA T y J H y y y(x) if i.e. symplectic A T JA J x J H x

Preservation of area Symplecticness is equivalent to the preservation of area. In a 2d(d=1) space, the area of a parallelogram is defined as the magnitude of the wedge product While for a transformation we have dp p p 0 dp 0 p q 0 dq 0, dp dq p p 0 dp dq z A(z 0 ) q dp 0 dq 0 p q 0 q 0 dq q p 0 dp 0 q q 0 dq 0 q p 0 dq 0 dp 0 wedge products are anticommutative dp dq dq dp dp dq p p 0 q dp 0 dq 0 p q 0 q 0 q p 0 dp 0 dq 0 det A * dp 0 dq 0 dp 0 dq 0

Preservation of area The area of a parallelogram (with sides η and ξ) is given by η T Jξ. The area of a transformed parallelogram (with sides Aη and Aξ) is η T A T JAξ=η T Jξ, if and only if A is symplectic A T JA J The symplecticness for a more general case (with d>1) can be written as dp 1 dq 1 dp d dq d dp 1 0 dq 1 0 dp d d Conservation of volumn (Liouville s theorem) 0 dq 0

Numerical integrators A system with differential equations x f (t, x) x (p, q) can usually be solved using integration method with infinitesimal integration steps t=h in each iteration. For Hamilton s equations, Euler(nonsymplectic) Euler(symplectic, 1 st ) x n 1 x n hj H(x n ), x n 1 x n hj H(x n 1 ) explicit implicit p n 1 p n h q H(p n, q n 1 ), q n 1 q n h q H(p n,q n 1 ) Implicit midpoint(symplectic, 2 nd ) x n 1 x n hj H( x n 1 x n 2 )

Numerical integrators Störmer-Verlet(symplectic,2 nd ) p n 1 2 p n h 2 q H(p n 1 2, q n ) q n 1 q n h 2 H(p p q n 2, 1 n ) p H(p p n 1 p n 1 2 h 2 q H(p n 1 2, q n 1 ) It is simply the symmetric composition (2 nd order) of the two symplectic Euler methods with step size h/2. n 1 2, q n 1 ) For a 2 nd order differential equation q U(q), H(p, q) 1 2 pt p U(q) It can be simplified as q n 1 2q n q n 1 h 2 U(q n ), p n q n 1 q n 1 2h

s-stage Runge-Kutta Runge-Kutta methods s c i a ij, where. For a case where j 1 s b i 1 i 1 k i f (t c i h, x n h a ij k j ), i 1,, s x n 1 x n h b i k i s i 1 s j 1 s 4, c 1 0, c 2 c 3 1 2, c 4 1, a 21 a 32 1 2, a 43 1 b 1 b 4 1 6, b 2 b 3 2 6 it simplifies to the famous 4 th order Runge-Kutta integrator.

Runge-Kutta methods Runge-Kutta method is usually non-symplectic. However, we can prove that when the coefficients satifsy b i a ij b j a ji b i b j for all i, j 1,, s it is symplectic.

Symplectic mapping In accelerator, we usually use transfer map to calculate lattice properties. For example, matrix for a quadrupole is k K What a simulation code does is it slices the element into pieces and apply the kicks.

Symplectic mapping(cont d) Thus the transfer matrix becomes And then Taylor expansion gives Truncation is required and up to 1 st order While the determinant of it is not unity not symplectic.

Symplectic mapping(cont d) One trick to make the determinant 1 is to artificially add in one 2 nd order term Which makes the transfer map not as accurate as if we simply keep it up to 2 nd order Which is not symplectic! Symplecticity is not equal to accuracy!!

Symplectic mapping(cont d) 1. Tracking Classical of single theories quadrupole of numerical shows integration the difference give information about how well different methods approximate the trajectories for fixed times as step sizes tend to zero. Dynamical systems theory asks questions about asymptotic, i.e. infinite time, behavior. 2. Geometric integrators are methods that exactly conserve qualitative properties associated to the solutions of the dynamical system under study. 3. The difference between symplectic integrators and other methods become most evident when performing long time integrations (or large step size). 4. Symplectic integrators do not usually preserve energy either, but From the left fluctuations to right are in H exact from mapping, its original non-simplectic value remain mapping small. and symplectic mapping. Although keeping up to 2 nd order simulates the shape more accurately but it diverges. 1 st order symplecity has a poor performance in preserving the shape.

Symplectic mapping(cont d) One way of thinking is to use thin lens approximation, divide the quadrupole into drifts and thin lens which all have transfer matrices with unity determinant. Transfer matrices for drift and sudden kick With a quadrupole at length L

Symplectic mapping(cont d) So we have various ways of dividing the quadrupole which result into different order of symplicticity.

Symplectic mapping(cont d) After splitting the magnets, we need to solve for the parameters(symplicticity is automatically preserved). Take the 2 nd on the right as an example. Total transfer map is Comparing with

Symplectic mapping(cont d) Keeping them equal up to 4 th order then gives Last one arises from geometry condition. Unfortunately, this does not have a solution symplicticify failure. But the 3 rd one on the right has a solution

Symplectic mapping(cont d) Notice that both β and δ are negative. This means we need to go through 7 steps for the symplectic integration shown as follows. This results in a 4 th order symplectic integration.

Symplectic mapping(cont d) Higher order of symplectic integration can be achieved simply by dividing the magnet into more pieces and solving much more complicated set of equations. A 6 th order integration is done in 19 steps.

Accuracy vs order Order does bring up complicity but does it provide higher accuracy? Considering the amplitude of phase space given by With initial A to be normalized to 1. Exact tracking should always A while if we use symplectic mapping it s not the case.

Accuracy vs order(cont d) Comparison of 2 nd order and 4 th order of symplectic integration is given as With the top one as 2 nd order and bottom one the 4 th. Stability is always preserved but the accuracy is greatly improved by using higher order integration. Notice that the deviation from 1 tells us the deviation from a pure circle distortion. Higher order also improves the shape distortion introduced by this symplecticify process.

Accuracy vs order(cont d) A list shown all the integrators from 2 nd order to 5 th order is shown here with the error information and the model needed to achieve it. Notice that simple repetition doesn t improve order. Have to change way of slicing.

4 th order Runge-Kutta is not symplectic Considering DE, with given initial x & x. A 4 th order Runge-Kutta solves it at x=l With

4 th order Runge-Kutta is not For a quadrupole, it gives symplectic with sextupole, it becomes

4 th order Runge-Kutta is not For quadrupole, the determinant is symplectic For sextupole, the determinant is Both of them are not 1 not symplectic!!