CERN code for simulating longitudinal beam dynamics in synchrotrons.
Project description
Copyright 2016 CERN. This software is distributed under the terms of the GNU General Public Licence version 3 (GPL Version 3), copied verbatim in the file LICENCE.txt. In applying this licence, CERN does not waive the privileges and immunities granted to it by virtue of its status as an Intergovernmental Organization or submit itself to any jurisdiction.
CODE NAME
BLonD (Beam Longitudinal Dynamics)
DESCRIPTION
CERN code for the simulation of longitudinal beam dynamics in synchrotrons.
LINKS
Repository: https://github.com/dquartul/BLonD
Documentation: http://blond-admin.github.io/BLonD/
Project website: http://blond.web.cern.ch
INSTALL
Requirements
A gcc compiler with C++11 support (version greater than 4.8.4).
An Anaconda distribution (Python 3 recommended).
That’s all!
Install Steps
- The easy way:
$ pip install blond
If this fails try this:
Clone the repository from github or download and extract the zip from here.
Navigate to the downloaded BLonD directory and run:
$ python setup.py install
If it still fails, navigate to the BLonD directory and run:
$ python setup.py compile
Then you have to use the PYTHONPATH variable or some other mechanism to point to the BLonD installation.
In the extremely rare occassion that it continues to fail, you can submit an issue and we will handle it ASAP.
Confirm proper installation
- Run the unittests with pytest (may need to be installed first with pip install pytest):
$ pytest -v unittests
- Try to run some of the main files found in the examples:
$ python __EXAMPLES/main_files/EX_01_Acceleration.py $ python __EXAMPLES/main_files/EX_02_Main_long_ps_booster.py $ etc..
Use the FFTW3 library for the FFTs
So far only the rfft(), irfft() and fftfreq() routines are supported. fft_convolve() to be added soon.
Windows:
Download and unzip the pre-compiled FFTW3 library. Link: ftp://ftp.fftw.org/pub/fftw/fftw-3.3.5-dll64.zip
Copy the libfftw3-3.dll under your python’s distribution directory.
Run the blond/compile.py with the flag --with-fftw.
If the FFTW3 library is not installed in one of the default directories, use the --with-fftw-lib and --with-fftw-header to point to the directories where the shared library and header files are stored.
- To use the supported routines, you need to call the function use_fftw() from bmath.py:
from blond.utils import bmath as bm bm.use_fftw() ... bm.rfft(...) bm.irfft(...) bm.rfftfreq(...)
Linux:
Download and compile the FFTW3 library. Link: http://www.fftw.org/fftw-3.3.8.tar.gz
Run the blond/compile.py with the flag: --with-fftw.
If the FFTW3 library is not installed in one of the default directories, use the --with-fftw-lib and --with-fftw-header to point to the directories where the shared library and header files are stored.
Optionally, you can enable one of the flags --with-fftw-omp or --with-fftw-threads to use the multithreaded FFTs.
- To use the supported routines, you need to call the function use_fftw() from bmath.py:
from blond.utils import bmath as bm bm.use_fftw() ... bm.rfft(...) bm.irfft(...) bm.rfftfreq(...)
CURRENT DEVELOPERS
Simon Albright (simon.albright (at) cern.ch)
Theodoros Argyropoulos (theodoros.argyropoulos (at) cern.ch)
Konstantinos Iliakis (konstantinos.iliakis (at) cern.ch)
Ivan Karpov (ivan.karpov (at) cern.ch)
Alexandre Lasheen (alexandre.lasheen (at) cern.ch)
Danilo Quartullo (danilo.quartullo (at) cern.ch)
Joel Repond (joel.repond (at) cern.ch)
Helga Timko (Helga.Timko (at) cern.ch)
PREVIOUS DEVELOPERS
Juan Esteban Muller
STRUCTURE
the folder __TEST_CASES contains several main files which show how to use the principal features of the code;
the __doc folder contains the source files for the documentation on-line;
the various packages which constitute the code;
setup_cpp.py is needed to compile all the C++ files present in the project; this file should be run once before launching any simulation. The compiler C++ GCC (at least version 4.8) is necessary.
WARNINGS.txt contains useful information related to code usage.
VERSION CONTENTS
2017-03-28 v1.19.0 - Several files have been rearranged and simplified
2017-02-10 v1.18.0 - Fixed an important bug in linear_interp_kick.cpp: before the acceleration kick was not applied if rf_kick_interp==TRUE in RingAndRFSection
v1.17.0 - Numerical synchrotron frequency distribution added (TC12) - Possibility to compute multi-turn wake with acceleration (inimpedance.py) - fixed a bug in the periodicity routine (in tracker.py)
2016-10-24 v1.16.0 - MuSiC algorithm introduced, TC11 added, minor bugs fixed
2016-07-29 v1.15.1 - several upgrades and bug fixes
2016-06-23 v1.14.5 - RF modulation file added in llrf folder - documentation on-line for PSB phase loop added - setup_cython.py removed because not used
2016-06-21 v1.14.4 -
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file blond-2.0.10.tar.gz
.
File metadata
- Download URL: blond-2.0.10.tar.gz
- Upload date:
- Size: 168.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: Python-urllib/3.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 682adbbe4a25cea779f5aac1ce7e5d5729a3feba1106288531c2f6ffe21e276b |
|
MD5 | 2433f0ccd8c0a8b56ae18dce7f97ed47 |
|
BLAKE2b-256 | b50e57b782390b4a766a01b955b023821eec8f9121eb7e0ebbfc500fb82f3285 |