Skip to main content

A coherent object-oriented framework to work on collective effects in synchrotrons.

Project description

mbtrack2

mbtrack2 is a coherent object-oriented framework written in python to work on collective effects in synchrotrons.

mbtrack2 is composed of different modules allowing to easily write scripts for single bunch or multi-bunch tracking using MPI parallelization in a transparent way. The base of the tracking model of mbtrack2 is inspired by mbtrack, a C multi-bunch tracking code initially developed at SOLEIL.

Examples

Jupyter notebooks demonstrating mbtrack2 features are available in the example folder and can be opened online using google colab:

  • mbtrack2 base features Open In Colab
  • dealing with RF cavities and longitudinal beam dynamics Open In Colab
  • collective effects Open In Colab
  • bunch by bunch feedback Open In Colab
  • RF loops and feedbacks Open In Colab

Installation

Using pip

Run:

pip install mbtrack2

To test your installation run:

from mbtrack2 import *

Using conda

Clone the mbtrack2 repo and enter the repo:

git clone https://gitlab.synchrotron-soleil.fr/PA/collective-effects/mbtrack2.git
cd mbtrack2

To create a new conda environment for mbtrack2 run:

conda env create -f mbtrack2.yml
conda activate mbtrack2

Or to update your current conda environment to be able to run mbtrack2:

conda env update --file mbtrack2.yml

To test your installation run:

from mbtrack2 import *

References

If used in a publication, please cite mbtrack2 paper and the zenodo archive for the corresponding code version (and any other paper in this list for more specific features).

DOI

mbtrack2 general features

A. Gamelin, W. Foosang, and R. Nagaoka, “mbtrack2, a Collective Effect Library in Python”, presented at the 12th Int. Particle Accelerator Conf. (IPAC'21), Campinas, Brazil, May 2021, paper MOPAB070.

RF cavities with beam loading and RF feedbacks

Yamamoto, Naoto, Alexis Gamelin, and Ryutaro Nagaoka. "Investigation of Longitudinal Beam Dynamics With Harmonic Cavities by Using the Code Mbtrack." Proc. 10th International Partile Accelerator Conference (IPAC’19), Melbourne, Australia, 19-24 May 2019. 2019.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mbtrack2-0.6.0.tar.gz (100.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mbtrack2-0.6.0-py3-none-any.whl (111.9 kB view details)

Uploaded Python 3

File details

Details for the file mbtrack2-0.6.0.tar.gz.

File metadata

  • Download URL: mbtrack2-0.6.0.tar.gz
  • Upload date:
  • Size: 100.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.6 Linux/6.5.0-26-generic

File hashes

Hashes for mbtrack2-0.6.0.tar.gz
Algorithm Hash digest
SHA256 35fd0623d41d5d4ad60b0da247945a00ef7b79210ab90d5c01f09f78aedb48c0
MD5 a59701ebe7d1f8de7a16ec55148f4456
BLAKE2b-256 8beb0a5c5cd490b9deacdcad0dedc8be55d726c02ea550da6124084fd5eaa5d6

See more details on using hashes here.

File details

Details for the file mbtrack2-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: mbtrack2-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 111.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.8.2 CPython/3.11.6 Linux/6.5.0-26-generic

File hashes

Hashes for mbtrack2-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8dd551d42483df07be6abaf1aa022464464ad069d9ae6ff1992936142fa74cee
MD5 e6e45a4d01a8c2409d7df77d5fa68145
BLAKE2b-256 3654cff0a7a3449c7e0c7f1bfe5d478f97ff7d143c9c6005d0b504e4d22d04ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page