Giter VIP home page Giter VIP logo

crab_cavity_simulations's Introduction

Crab Cavity Failure Simulation README

This repository contains the files to simulate a crab cavity failure for HL-LHC using SixTrack.

The aim of SixTrack is to track two nearby particles taking into account the full six–dimensional phase space including synchrotron oscillations in a symplectic manner. It allows to predict the long–term dynamic aperture which is defined as the border between regular and chaotic motion. This border can be found by studying the evolution of the distance in phase space of two initially nearby particles. Parameters of interest like nonlinear detuning and smear are determined via a post–processing of the tracking data.

SixTrack Program

To download the latest version:

svn co http://svn.cern.ch/guest/SixTrack

This will download something similar to the SixTrack folder of this repository. To create the executable you will have to go to SixTrack/trunk/Sixtrack and compile the source code sixtrack.s with the command:

./make_six gfortran collimat

Check the official website for more information.

SixTrack with Simulations of Crab Cavities

There is a modified version of SixTrack, which includes a block to simulate crab cavities. The changes with respect to the original SixTrack code are:

  • A new line describing the new element in the fort.2 lattice file.

  • A new block in the fort.3 input file. Check it out here.

  • A new database.

Find the source code in this repository (sixtrack.s_CC_block_vlineal_2), and the executable in run_lsf_template/bin.

SixTrack without Collimation

Find a special version of SixTrack without the collimation block in the folder run_bpm_template. This version comes in handy to study the behaviour of the crab cavities, since without the collimation block the program is much faster. There's a special marker (BPM) to see the trajectory at a certain point.

alt text

Other executables

Find other executables complementary to SixTrack for collimation studies (namely BeamLossPattern and CleanInelastic) and their description in run_lsf_template/bin.

How does SixTrack work

To run SixTrack you will need several input files:

Generate the input with MAD-X

A converter has been developed which is directly linked to MAD-X. It produces the geometry file # 2 (fort.2); an appendix to the parameter file # 3 (fort.3) which defines which of the multipole errors are switched on; the error file # 16 and the file # 8 which holds the transverse misalignments and the tilt of the nonlinear kick elements. It also produce a file (unit 34) with linear lattice functions, phase advances and multipole strengths needed for resonance calculations for the program SODD.

MAD-X can help you generate your accelerator lattice, and store it in the geometry file "fort.2". The parameter file "fort.3" can be written by hand.

To see the MAD-X program that generates SixTrack input please check the folder madx.

Execute SixTrack in LSF

Check out how to send SixTrack jobs to LSF here run_lsf_template.

Execute SixTrack locally

There is an example of the needed files to run SixTrack locally in run_local_template. Modify fort.3 and CC_dataf, and run SixTrack:

./SixTrack_coll_fvlineal2

It is recommended to only run locally for a few jobs. SixTrack output can sometimes be very heavy and can easily fill your free disk space.

Python Scripts

You can find some handy python scripts in python_modules.

crab_cavity_simulations's People

Contributors

ansantam avatar

Watchers

James Cloos avatar Giovanna Campogiani avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.