Skip to main content

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

Project description

mbtrack2

GitLab Release PyPI - Version PyPI - License Read the Docs

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 *

Using docker

A docker image is available:

docker pull gitlab-registry.synchrotron-soleil.fr/pa/collective-effects/mbtrack2

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.7.0.tar.gz (114.0 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.7.0-py3-none-any.whl (127.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for mbtrack2-0.7.0.tar.gz
Algorithm Hash digest
SHA256 af33ed499818deae37b0d8a6c7562ae20d4c29281e472fe3ede6f7c19acd7641
MD5 0ea75873f8d53a91694a4694c0f039b4
BLAKE2b-256 e08e6e859e5b154672a73833453fb870af5e0520d86642e8fc04db0abad7dadc

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for mbtrack2-0.7.0-py3-none-any.whl
Algorithm Hash digest
SHA256 18969e5afd3de79f1b64f52f50186470342695c9bf237bee65b5313e1faf9e0c
MD5 d1a9f3eec2ab458dad9d0b2b4d238a39
BLAKE2b-256 c774bf4a09ed559277869977e91dc5a8f530a91b3e68d12e6f2642f7fcc31025

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