J. Snuverink and J. Pfingstner LinSim LinSim Linear Accelerator Simulation Framework with PLACET an GUINEA-PIG Jochem Snuverink Jürgen Pfingstner 16 th.

Slides:



Advertisements
Similar presentations
A Workflow Engine with Multi-Level Parallelism Supports Qifeng Huang and Yan Huang School of Computer Science Cardiff University
Advertisements

05/11/2001 CPT week Natalia Ratnikova, FNAL 1 Software Distribution in CMS Distribution unitFormContent Version of SCRAM managed project.
Usage of the memoQ web service API by LSP – a case study
Ted Hesselroth USCMS T3 Meeting Abhishek Singh Rana and Frank Wuerthwein UC San Diego Ted Hesselroth STAF/STAX OSG Storage Demo of.
Key-word Driven Automation Framework Shiva Kumar Soumya Dalvi May 25, 2007.
Automatic Installation System on USB Memory Instructor: Hai Vortman Students: Leeor Langer Eyal Koren.
July 11 th, 2005 Software Engineering with Reusable Components RiSE’s Seminars Sametinger’s book :: Chapters 16, 17 and 18 Fred Durão.
Chapter 3 Planning Your Solution
Luminosity Stability and Stabilisation Hardware D. Schulte for the CLIC team Special thanks to J. Pfingstner and J. Snuverink 1CLIC-ACE, February 2nd,
Workflow API and workflow services A case study of biodiversity analysis using Windows Workflow Foundation Boris Milašinović Faculty of Electrical Engineering.
IHP Im Technologiepark Frankfurt (Oder) Germany IHP Im Technologiepark Frankfurt (Oder) Germany ©
Introduction Status of SC simulations at CERN
JCE A Java-based Commissioning Environment tool Hiroyuki Sako, JAEA Hiroshi Ikeda, Visible Information Center Inc. SAD Workshop.
SCRAM Software Configuration, Release And Management Background SCRAM has been developed to enable large, geographically dispersed and autonomous groups.
CERN, BE-ABP (Accelerators and Beam Physics group) J. Pfingstner Beam jitter studies at ATF and ATF2 Jürgen Pfingstner Hector Garcia Morales 25 th of January.
Ground Motion + Vibration Transfer Function for Final QD0/SD0 Cryomodule System at ILC Glen White, SLAC ALCPG11, Eugene March 21, 2011.
Nightly Releases and Testing Alexander Undrus Atlas SW week, May
The Pipeline Processing Framework LSST Applications Meeting IPAC Feb. 19, 2008 Raymond Plante National Center for Supercomputing Applications.
Stefan Hild (University of Birmingham) + A.Freise, M.Mantovani, A.Perreca Advanced Virgo telecon, June 2008 Why use FinesseTools for Advanced Virgo simulations,
BLU-ICE and the Distributed Control System Constraints for Software Development Strategies Timothy M. McPhillips Stanford Synchrotron Radiation Laboratory.
CERN, BE-ABP (Accelerators and Beam Physics group) Jürgen Pfingstner Orbit feedback design for the CLIC ML and BDS Orbit feedback design for the CLIC ML.
Reusability and Effective Test Automation in Telecommunication System Testing Mikael Mattas Supervisor: Professor Sven-Gustav Häggman Instructor: B.Sc.
Programming Concepts Chapter 3.
Parallelisation of Random Number Generation in PLACET Approaches of parallelisation in PLACET Martin Blaha University of Vienna AT CERN
® IBM Software Group © 2008 IBM Corporation Setting up Build Forge demo projects for ALM Windows only May – work in progress Stuart Poulin
Technical Board ATF2 GM FF progress report A.Jeremie ATF2 GM System team: K.Artoos, C.Charrondière, A.Jeremie, J.Pfingstner (a lot of figures from him),
ILC Start-End Simulations Glen White, SLAC May 13, 2014 AWLC14, Fermilab.
Computer Emergency Notification System (CENS)
Enabling Grids for E-sciencE EGEE-III INFSO-RI Using DIANE for astrophysics applications Ladislav Hluchy, Viet Tran Institute of Informatics Slovak.
CERN, BE-ABP-CC3 Jürgen Pfingstner Verification of the Design of the Beam-based Controller Jürgen Pfingstner 2. June 2009.
Version 5. ¿What is PAF? PAF is a tool to easily and quickly implement… …distributed analysis over ROOT trees. …by hiding as much as possible the inherent.
Michael Borland Advanced Photon Source Using SDDS for Accelerator Commissioning and Operation Michael Borland Operations Analysis Group Advanced Photon.
CASE (Computer-Aided Software Engineering) Tools Software that is used to support software process activities. Provides software process support by:- –
Beam Dynamics WG Summary N.Solyak, K.Kubo, A.Latina LCWS 2014 – Oct 6-10, 2014 – Belgrade, Serbia.
Thomas Kern | The system documentation as binding agent for and in between internal and external customers April 24th, 2009 | Page 1 The system documentation.
G.Govi CERN/IT-DB 1 September 26, 2003 POOL Integration, Testing and Release Procedure Integration  Packages structure  External dependencies  Configuration.
J. Pfingstner Imperfections tolerances for on-line DFS Improved imperfection tolerances for an on-line dispersion free steering algorithm Jürgen Pfingstner.
Improving the Generation of Random Numbers in PLACET Comparision of RNG replacements Martin Blaha University of Vienna AT CERN
CERN, BE-ABP (Accelerators and Beam Physics group) Jürgen Pfingstner Adaptive control scheme for the main linac of CLIC Jürgen Pfingstner 21 th of October.
Single Seed Run of PLACET in the CLIC FFS Code From Jochem Snuverink Ryan Bodenstein FONT Meeting 2015/08/21.
… Work in progress at CTF3 … Davide Gamba 01 July 2013 Study and Implementation of L INEAR F EEDBACK T OOLS for machine study and operation.
TRIUMF HLA Development High Level Applications Perform tasks of accelerator and beam control at control- room level, directly interfacing with operators.
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.
GUINEA-PIG: Beam-beam interaction simulation status M. Alabau, P. Bambade, O. Dadoun, G. Le Meur, C. Rimbault, F. Touze LAL - Orsay D. Schulte CERN - Genève.
Vacuum specifications in Linacs J-B. Jeanneret, G. Rumolo, D. Schulte in CLIC Workshop 09, 15 October 2009 Fast Ion Instability in Linacs and the simulation.
LHC RT feedback(s) CO Viewpoint Kris Kostro, AB/CO/FC.
A. Latina LCWS11 – September 26-30, 2011 – Granada, Spain 1 New features in PLACET Andrea Latina (CERN) Slides prepared with the help of J. Snuverink (CERN)
Progress in CLIC DFS studies Juergen Pfingstner University of Oslo CLIC Workshop January.
Use of SVN as lattice repository Andrea Latina Common paths for CLIC and ILC BDS – Friday, 30 August 2013 – CERN.
1 Updated comparison of feedback implementation for e + e - and e - e - modes of operation with realistic errors in the BDS M. Alabau Pons, P. Bambade,
The Cockroft Institute
Effects of Accelerating Cavities on On-Line Dispersion Free Steering in the Main Linac of CLIC Effects of Accelerating Cavities on On-Line Dispersion Free.
Advanced Higher Computing Science
FACET Tests Update A. Latina, J. Pfingstner, D. Schulte,
Speaker: Andrea Latina
Orbit Response Matrix Analysis
Virtualisation for NA49/NA61
In collaboration with P. N. Burrows, A. Latina and D. Schulte
Wake field limitations in a low gradient main linac of CLIC
Virtualisation for NA49/NA61
Accelerate define.xml using defineReady - Saravanan June 17, 2015.
PreOpenSeesPost: a Generic Interface for OpenSees
Maintenance module Martin Heigl CTO
Software Metrics “How do we measure the software?”
A Whirlwind (but not a black hole) at CERN
1.2 System Design Basics.
Towards a ground motion orbit feed-forward at ATF2
SUSE Linux Enterprise Desktop Administration
Experience with the process automation at SORS
What's New in eCognition 9
Presentation transcript:

J. Snuverink and J. Pfingstner LinSim LinSim Linear Accelerator Simulation Framework with PLACET an GUINEA-PIG Jochem Snuverink Jürgen Pfingstner 16 th of July 2014

J. Snuverink and J. Pfingstner LinSim Content 1.Introduction 2.LinSim 3.Examples 4.Conclusions

J. Snuverink and J. Pfingstner LinSim 1. INTRODUCTION

J. Snuverink and J. Pfingstner LinSim Motivation Very good tools (PLACET, GUINEA-PIG) and lattice repositories are used in the section for simulations on CLIC and other linacs. However, several things are not automatized and are repeated by everybody: –Lattice and beam setup –Implementing simulations, which all have very similar structure –Debugging of code –Parallelization of simulations on lxbatch –Data storage and analysis –Backup and version control (if performed) of complex simulations This causes that -Several versions of very similar code exist -Many versions are not up to date anymore after interface changes -Similar tasks are repeated by many people -Newcomers and external people have a hard time to get started

J. Snuverink and J. Pfingstner LinSim Advantages of a general simulation framework Layer on top of the simulation tools that eases complex simulations. Lattice and beam setup is automatized. Most code only has to be written once (e.g. imperfections). Well debugged code. Features can be implemented that are too much effort for a single simulation (e.g. backup including versioning system) Data storage, parallel computing and analysis can be largely unified by providing tools. Increase in productivity

J. Snuverink and J. Pfingstner LinSim 2. LINSIM

J. Snuverink and J. Pfingstner LinSim Features Lattice and beam setup for: CLIC, ILC, FACET, ATF2. Flexible simulation structure to implement most simulation scenarios efficiently. Many imperfections, feedbacks, steering algorithms are provided. Scripts for Parallel computing on lxbatch Data analysis tasks in Python and Octave Documentation (nearly complete). Consistency checks for settings and settings saving to reproduce results. Version control via svn Automated nightly testing (to be implemented).

J. Snuverink and J. Pfingstner LinSim Internal structure LinSim interfaces PLACET and GUINEA-PIG via Tcl (mainly setup) and Octave (rest) scripts. Also external data are used: lattice files, ground motion models, reference orbit, … Input files control the behavior of the LinSim fully.

J. Snuverink and J. Pfingstner LinSim Simulation structure 1/2 Simulations are structures into four parts: 1.Initial setup: Lattice and beam creation, settings loading 2.Short-term loop: pulse-to-pulse simulations 3.Long-term loop: simulations on longer time scales 4.Seed loop: For statistical averaging many “machines” Simulation consists of two parts 1.LinSim base code 2.Two test files that control and extend the simulation: Settings file (in Tcl) User code file (in Octave)

J. Snuverink and J. Pfingstner LinSim Simulation structure 2/2

J. Snuverink and J. Pfingstner LinSim Variable definition Universal variable names are used in LinSim To be able to port code between accelerators Quickly writing simulations Example: BPM readings (bpm_readings) Element indices (index_qd0) Beamline names (“electron”, “positron”) … Complete list in the manual (very soon)

J. Snuverink and J. Pfingstner LinSim 3. EXAMPLES

J. Snuverink and J. Pfingstner LinSim Example 1: QD0 roll scan (CLIC) 1/2 qd0_rollscan_settings.tcl qd0_rollscan_code.m

J. Snuverink and J. Pfingstner LinSim Example 1: QD0 offset scan (CLIC) 2/2 Start simulations in PLACET: placet run.tcl tests/qd0_rollscan_settings.tcl Data analysis in Python: python import TrackingAnalysis a=TrackingAnalysis.MeasurementStation(director y="../QD0_rollscan/”) a.lumiScanPlot(-100,100,25,label='QD0 Roll scan [$\mu$rad]',plotname='QD0Roll’) Result of analysis:

J. Snuverink and J. Pfingstner LinSim Example 2: Response matrix calc. with ground motion influence (FACET) 1/3 facet_response_matrix_settings.tcl Studies the influence of ATL motion on the measurement of the response matrix after one hour. During the measurement ground motion of model B10 is used. Initial normal distributed misalignments are applied.

J. Snuverink and J. Pfingstner LinSim Example 2: Response matrix calc. with ground motion influence (FACET) 2/3 facet_response_matrix_code.m

J. Snuverink and J. Pfingstner LinSim Example 2: Response matrix calc. with ground motion influence (FACET) 3/3 First response matrix: Start simulations in PLACET: placet run.tcl tests/facet_response_matrix_settings.tcl 3 Example of seed scan on lxbatch (on AFS): cd jobs./submit_jobs_seed_scan.sh tests/facet_response_matrix_settings.tcl 8nh 1 20

J. Snuverink and J. Pfingstner LinSim How to get LinSim? PLACET and GUINEA-PIG (if beam-beam is calculated) need to be installed. LinSim is included in a larger svn repository. It is easiest to check out the full CLIC directory with svn co LinSim is located in CLIC/Frameworks/LinSim. If also other accelerators are simulated also the according directories have to be checked out. But not all files are necessary (see the documentation). Documentation is located in CLIC/Frameworks/LinSim/doc/Framework_doc.pdf.

J. Snuverink and J. Pfingstner LinSim 4. Conclusions A framework for linear accelerator simulations was presented An layer on top of PLACET and GUINEA-PIG It provides scripts and algorithms for complex simulation tasks Especially useful for newcomers Not something complete! Everybody is welcome to suggest and implement. For any help/questions, please contact us!

J. Snuverink and J. Pfingstner LinSim THANK YOU FOR YOUR ATTENTION!