A Python package for Synchrotron Radiation calculations
Project description
barc4sr
BARC library for Synchrotron Radiation
This library was created for facilitating the use of SRW for a few routine calculations such as:
- undulator emission spectra - on axis or through a slit;
- power (density) through a slit;
- undulator radiation spectral and spatial distribution;
All calculations take either an ideal magnetic field or a tabulated measurement. In the case of a tabulated measurement, a Monte-Carlo sampling of the electron-beam phase space is necessary for a few calculations and recommended for others.
This module is inspired by xoppy, but but with the "multi-electron" calculations and parallelisation of a few routines.
installation
bar4sr is on PyPi! So it can be installed as pip install barc4sr hooray!!! Otherwise,
clone the project, fix the (many bugs) and help improve it...
TODO:
Ideally, I want to add the same functionalities to bending-magnets and wigglers through SRW. I am also considering interfacing SPECTRA, but only if there is the need for that.
Examples:
Check the examples! You can learn a lot from them.
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file barc4sr-2024.12.4.tar.gz.
File metadata
- Download URL: barc4sr-2024.12.4.tar.gz
- Upload date:
- Size: 59.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8ec593464b68fe96e60c32582abe88dfc2b1a5c37cd14d9380b66ca69a65cbed
|
|
| MD5 |
fa38bbf63f657a75404ed8d88c28fd72
|
|
| BLAKE2b-256 |
60eefd4799487bd8328e2f094763ed98240126eb6e19ade0f04ebeb25ecc9131
|
File details
Details for the file barc4sr-2024.12.4-py3-none-any.whl.
File metadata
- Download URL: barc4sr-2024.12.4-py3-none-any.whl
- Upload date:
- Size: 64.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.8.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d49efc1c81d99cceb1a52ff088891b7a657e86c14d1ebf3612eae401a391b0b
|
|
| MD5 |
e70a43e1e62612983028a1d143175563
|
|
| BLAKE2b-256 |
80e28bc3c60da73fe3043f829cbf74164ab657477ebdd0c3103b29473e00559b
|