Spin Tracking Using the Bmad Software Library David Sagan Cornell Laboratory for Accelerator-Based Sciences and Education.

Slides:



Advertisements
Similar presentations
CLIC TeamMAD-X Day, September 4, 2003 MAD-X for CLIC H. Braun, R. Corsini, T.d’Amico, A. Faus-Golfe, M. Korostelev, S. Redaelli, T. Risselada, D. Schulte,
Advertisements

Beam Delivery Simulation Development & BDS / MDI Applications L. Nevay, S. Boogert, H. Garcia-Morales, S. Gibson, J. Snuverink, L. Deacon Royal Holloway,
Beam Based Survey and Alignment of Ring Magnets David Rubin Cornell Laboratory for Accelerator-Based Sciences and Education.
Overview of ILC Plans D.Rubin April 17, D. Rubin2 ILC R&D Activities and Plans 1.Positron Source 2.Damping Ring 3.Low Emittance Transport - damping.
X-ray optics in the BMAD beam dynamics computer code Joel Brock, Georg Hoffstaetter, Dave Sagan, and Karthik Narayan.
January 15, 2005D. Rubin - Cornell1 CESR-c Status -Operations/Luminosity December/January vs September/October -Machine studies and instrumentation -Simulation.
Low Emittance Program David Rubin Cornell Laboratory for Accelerator-Based Sciences and Education CesrTA.
September 9, 2002David Rubin/ Cornell 1 UCLC Briefing UCLC Briefing to the US LC SG Accelerator Review Committee September 9, 2002 David Rubin Cornell.
July 22, 2005Modeling1 Modeling CESR-c D. Rubin. July 22, 2005Modeling2 Simulation Comparison of simulation results with measurements Simulated Dependence.
BDSIM simulations/results: Synchrotron Radiation and Muons Motivation and History Tracking results Synchrotron Radiation Tracking of Halo Muons News from.
LHeC Test Facility Meeting
Searching for Quantum LOVE at the Australian Synchrotron Light Source Eugene Tan On behalf of Rohan Dowd 120/10/2010Eugene Tan – IWLC 2010, Genega ASLS.
JCE A Java-based Commissioning Environment tool Hiroyuki Sako, JAEA Hiroshi Ikeda, Visible Information Center Inc. SAD Workshop.
Topic Three: Perturbations & Nonlinear Dynamics UW Spring 2008 Accelerator Physics J. J. Bisognano 1 Accelerator Physics Topic III Perturbations and Nonlinear.
27-Nov-2007 SLAC-ILC- AP Meeting Global Design Effort 1 Lucretia Developments PT SLAC.
PTC ½ day – Experience in PS2 and SPS H. Bartosik, Y. Papaphilippou.
Computation of Taylor Maps and Applications to Accelerator Physics Six lectures with emphasis on examples and their computer implementations Etienne Forest.
Ion Polarization Control in MEIC Rings Using Small Magnetic Fields Integrals. PSTP 13 V.S. Morozov et al., Ion Polarization Control in MEIC Rings Using.
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.
8/28/07RTML EDR KOM1 Cornell Plans for RTML EDR Work G. Dugan Cornell LEPP.
Theoretical studies of IBS in the SPS F. Antoniou, H. Bartosik, T. Bohl, Y.Papaphilippou MSWG – LIU meeting, 1/10/2013.
Development of Simulation Environment UAL for Spin Studies in EDM Fanglei Lin December
The european ITM Task Force data structure F. Imbeaux.
Synchrotron radiation at eRHIC Yichao Jing, Oleg Chubar, Vladimir N. Litvinenko.
Project Management Mark Palmer Cornell Laboratory for Accelerator-Based Sciences and Education.
November 14, 2004First ILC Workshop1 CESR-c Wiggler Dynamics D.Rubin -Objectives -Specifications -Modeling and simulation -Machine measurements/ analysis.
FMAP_Workshop - April 1, 2004 Frequency Map Calculation for the Advanced Light Source David Robin Advanced Light Source work done in collaboration with.
Comparison between simulations and measurements in the LHC with heavy ions T. Mertens, R. Bruce, J.M. Jowett, H. Damerau,F. Roncarolo.
Optics considerations for ERL test facilities Bruno Muratori ASTeC Daresbury Laboratory (M. Bowler, C. Gerth, F. Hannon, H. Owen, B. Shepherd, S. Smith,
Nonlinear Dynamic Study of FCC-ee Pavel Piminov, Budker Institute of Nuclear Physics, Novosibirsk, Russia.
PTC-ORBIT code for CERN machines (PSB, PS, SPS) Alexander Molodozhentsev (KEK) Etienne Forest (KEK) Group meeting, CERN June 1, 2011 current status …
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.
Panel Discussion on Single Particle Codes 1.Catalogue of existing codes 2.Transparency of input and output between different codes: what is the status.
Off-momentum DA of RCS 3D_BM & QFF & CC AP meeting / December 8, 2004 Alexander Molodozhentsev Etienne Forest KEK.
Ion effects in low emittance rings Giovanni Rumolo Thanks to R. Nagaoka, A. Oeftiger In CLIC Workshop 3-8 February, 2014, CERN.
PLACET User experiences with PLACET and examples of use for the Drive Beam CLIC Workshop 2008 Erik Adli, CERN/University of Oslo, October 16 th 2008 Lots.
J.C. Sheppard, SLAC Americas Region February 7, ILC Source Systems Work Packages and EDR Discussions ILC GDE Meeting IHEP, Beijing, China J. C.
Simulation of Intrabeam Scattering A. Vivoli*, M. Martini Thanks to : Y. Papaphilippou and F. Antoniou *
Christopher Mayes – September 16, 2015 LCLS-II Dark Current.
Managed by UT-Battelle for the Department of Energy Python ORBIT in a Nutshell Jeff Holmes Oak Ridge National Laboratory Spallation Neutron Source Space.
Polarization Study for CEPC DUAN, Zhe (IHEP) Apr 14th, 2016 Acknowledgements: M. Bai, D. P. Barber, and E. Forest. FCC Week 2016, April 11-15, Rome.
Single particle dynamics in the ThomX ring Jianfeng zhang 12/02/2015 LAL.
MADX tutorial: injection and extraction systems Dr Rob Apsimon Dr Öznur Mete.
Application of Differential Evolution Algorithm in Future Circular Colliders Yuan IHEP, Beijing Demin Zhou, KEK, Ibaraki, Japan.
CESR-c Plans for CESR (or Life Without CLEO) Mark A. Palmer David L. Rubin Second ILC Accelerator Workshop August 18, 2005.
Ultra-low Emittance Coupling, method and results from the Australian Synchrotron Light Source Rohan Dowd Accelerator Physicist Australian Synchrotron.
ESLS Workshop Nov 2015 MAX IV 3 GeV Ring Commissioning Pedro F. Tavares & Åke Andersson, on behalf of the whole MAX IV team.
LEPP, the Cornell University Laboratory for Elementary-Particle Physics, has joined with CHESS to become the Cornell Laboratory for Accelerator-based Sciences.
JLEIC and Electron Cooling: An Introduction Yuhong Zhang JLEIC Discussion Forum, August 3, 2016.
Synrad3D Photon propagation and scattering simulation G. Dugan, D. Sagan CLASSE Cornell University Ithaca, NY USA.
ILC DR Lower Horizontal Emittance, preliminary study
Simulation study of beam polarization for CEPC
Orbit Response Matrix Analysis
Dynamic Aperture Studies with Acceleraticum
Update to ECLOUD Calculations for the
Benchmarking MAD, SAD and PLACET Characterization and performance of the CLIC Beam Delivery System with MAD, SAD and PLACET T. Asaka† and J. Resta López‡
Machine parameters of SuperKEKB
Beam dynamics study for J-PARC Main Ring with PTC-ORBIT
Analysis of Multi-Turn ERLs for X-ray Sources
The Proposed Conversion of CESR to an ILC Damping Ring Test Facility
William Lou Supervisor: Prof. Georg Hoffstaetter
Source Code Repository Restructuring
Statistical Comparison to ERL-06-01
Summary of Washington DOE Review
JLEIC Collaboration meeting Spring 2016 Ion Polarization with Figure-8
SuperB Accelerator Overview
Current Status for Ion Polarization Studies
Yu.N. Filatov, A.M. Kondratenko, M.A. Kondratenko
Progress Update on the Electron Polarization Study in the JLEIC
First results of proton spin tracking in a figure-8 ring
Presentation transcript:

Spin Tracking Using the Bmad Software Library David Sagan Cornell Laboratory for Accelerator-Based Sciences and Education

David SaganMay 5, 2015IPAC’15 2 Overview Bmad is a library toolkit. Written in Fortran. Object oriented from the ground up. Has structure translation code for interfacing with C++. Lattice files use a MAD like syntax. Documented. Open Source:

David SaganMay 5, 2015IPAC’15 3 In the Beginning… Brief History: Born at Cornell in mid 1990’s Started life as modest project: Just wanted to calculate Twiss functions and closed orbit. Initially Bmad used a subset of the MAD lattice syntax. Hence the name: “Baby MAD” or “Bmad” for short. Over the years Bmad had evolved…

David SaganMay 5, 2015IPAC’15 4 And Baby Grows Up... Currently: ~100,000 lines of code ~1,000 routines And it can do much more: X-ray simulations (both coherent and incoherent) Spin tracking Tracking with coherent synchrotron radiation Wakefields and HOMs Beam breakup simulations in ERLs Intra-beam scattering (IBS) simulations Touschek lifetime Frequency map analysis Dark current tracking Etc., etc.

David SaganMay 5, 2015IPAC’15 5 Due to its flexibility, Bmad has been used in a number of programs including: tao General purpose design and simulation. synrad3d 3D tracking of synch photons, including reflections, within the beam chamber. cesrv On-line data taking, simulation, and machine correction for CESR. dark_current_tracker Dark current electron simulation. freq_map Frequency map analysis. ibs_sim Analytic intra-beam scattering (IBS) calculation. touschek_track Tracking of Touschek particles. etc... Bmad Based Programs

David SaganMay 5, 2015IPAC’15 6 Tao with Bmad gives the flexibility of a library with the convenience of a program. Tao: Tool for Accelerator Optics JLab FEL Modeling Problem: Bmad is not a program so it cannot be used “out of the box.” for simple calculations. Solution: Develop Tao - a general purpose simulation & design program with Nonlinear optimization. Twiss and orbit calculations Etc. Additionally: Tao’s object oriented coding makes it relatively easy to extend it. For example: Can add custom commands to interface Tao with a control system.

David SaganMay 5, 2015IPAC’15 7 Bmad Features Bmad has a number of features that over the years have proven useful. Among these are: Superposition – Define overlapping elements Controllers – Elements controlling attributes of other elements Forking – Joining lines together (EG: an injection line) Multipass – Beamlines sharing common elements (EG: ERL) Interface to Etienne Forest’s FPP/PTC code. Element-by-element selection of the tracking method. Custom elements and custom particle tracking.

David SaganMay 5, 2015IPAC’15 8 ler_fork: fork, to_line = ler, to_element = injectio inj: line = (..., ler_fork)! injection line ler: line = (..., injectio,...)! LER ring use, inj Forking Bmad can connect different beam lines together. Can join LINACs to injection lines to storage rings to X-ray beam lines, etc. Example: SuperKEKB LER injection  One lattice can hold the description of the entire accelerator complex. inj ler

David SaganMay 5, 2015IPAC’15 9 Multipass Bmad can simulate beam lines having common elements Example: SuperKEKB IR region: CEBAF SuperKEKB sol: line[multipass] = (esle4000,..., esre4000) pt1_l: patch,...; pt2_l: patch,... pt1_h: patch,...; pt2_h: patch,... mm: marker fid: fiducial, origin_ele = mm ler: line = (pt2_l, mm, sol, pt1_l, ler_arc) her: line = (pt2_h, --sol, fid, pt1_h, her_arc) use, ler, her sol LER ref orbit HER ref orbit Changes to elements in sol get reflected in both HER and LER lines. patch

David SaganMay 5, 2015IPAC’15 10 Etienne Forest’s FPP/PTC Integration with Bmad: Interface routines between Bmad and PTC allow tracking of individual elements via PTC PTC lattices can be constructed for analysis Alexander Molodozhentsev PTC_ORBIT combined code KEK & SNS common activity Etienne Forest’s FPP/PTC simulation toolkit: Can construct Taylor series maps to arbitrary order via symplectic Lee integration through elements. Can track spin. Can do such things as normal form analysis to extract resonance strengths. [Is used in MAD-X & PTC_ORBIT]

David SaganMay 5, 2015IPAC’15 11 SpinEDM bmad_standardThick formulas, fast ✔ symp_lie_ptcSymplectic tracking using PTC ✔ ✔ runge_kuttaTrack through arbitrary fields ✔ ✔ customTracking with custom code ?! ?! taylorTaylor map (generated via PTC) linearLinear tracking etc. Tracking Method Selection Can set how each element is tracked on an element-by-element basis: Advantages: Enables simulation of unique element types Can compare different tracking methods Example: inflector: em_field, tracking_method = runge_kutta, field_calc = custom,...

David SaganMay 5, 2015IPAC’15 12 G-2 Experiment Polarized Muons Dave Rubin at Cornell has been developing a simulation program to simulate the muon g-2 experiment at Fermilab Need to simulate: Injection line into storage ring. Three dimensional field of the injection line. Scattering of muons as they cross the inflector wall Electrostatic quadrupoles Muon decay

David SaganMay 5, 2015IPAC’15 13 G-2 Simulation Bmad provided: Ability to define the geometry of the injection line and storage ring. Ability to define the geometry of the inflector wall Ability to define custom fields for the injection line and electrostatic quadrupoles Runge-Kutta tracking Needed to develop for the program: Tracking of muons through the inflector wall muon decay [will be ported to Bmad]

David SaganMay 5, 2015IPAC’15 14 Conclusion Bmad provides a flexible toolkit for spin simulations