coolpy
The software coolpy is a Python package for muon beam cooling studies, with a particular focus on solenoid matching and ionization cooling lattices.
The package combines high-level Python workflows with performance-critical components written in C++ to accelerate optimization and beam dynamics calculations.
About
CoolPy provides numerical tools for realistic modeling and optimization of solenoid-based ionization cooling channels. It is designed for research and prototyping in low accelerator and muon beam physics, rather than as a turnkey simulation code.
Key features include:
- Realistic solenoid magnetic field calculations based on a semi-analytic current sheet model
- Evaluation of elliptical integrals for off-axis field components, with optimized analytic expressions on the solenoid axis
- Optimization routines based on the Nelder–Mead algorithm, implemented in C++ for ultra fast performance
- Solution of the transverse beam envelope equation using a fourth-order Runge–Kutta integrator, implemented in C++ for accelerating computation
The code is intended to complement existing accelerator simulation tools by providing lightweight, flexible, and transparent matching and optimization routines.
Installation
CoolPy supports Python 3.10 – 3.13.
Install coolpy from PyPI using:
pip install coolpy
Metadata
Release files for coolpy 0.0.87
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| coolpy-0.0.87.tar.gz | 27.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| coolpy-0.0.87-cp310-cp310-macosx_11_0_x86_64.whl | CPython 3.10 | CPython 3.10 | macOS 11.0+ x86-64 | Details |
Total release size: 144.0 kB
Release files / coolpy-0.0.87.tar.gz
| Download URL | coolpy-0.0.87.tar.gz |
|---|---|
| Size | 27.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2f564070f255443ace9aec5a40bc7c04c7405c0d36e638c5abf068b069402a00
|
|
BLAKE2b-256 checksum How to use checksums |
2c06353f0c7f2dfab6a3a9e0a6c58d34a3db65fac779b37bac1b8ddf9d98a9c8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.20
|
Release files / coolpy-0.0.87-cp310-cp310-macosx_11_0_x86_64.whl
| Download URL | coolpy-0.0.87-cp310-cp310-macosx_11_0_x86_64.whl |
|---|---|
| Size | 116.4 kB |
| Tags | CPython 3.10 macOS 11.0+ x86-64 |
|
SHA-256 checksum How to use checksums |
223395e1fec74633447444089d493c72937a21eb914adbe412d1c92fcfa726c7
|
|
BLAKE2b-256 checksum How to use checksums |
fb93ce6cff09b5f8894fb5d5b27ee9987f89a80cc398b97f2a42883b54bf39f7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.10.20
|