Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/davidmstraub/rundec-python
Python wrapper around CRunDec
https://github.com/davidmstraub/rundec-python
hep high-energy-physics particle-physics qcd
Last synced: 2 days ago
JSON representation
Python wrapper around CRunDec
- Host: GitHub
- URL: https://github.com/davidmstraub/rundec-python
- Owner: DavidMStraub
- License: mit
- Created: 2017-11-28T14:19:50.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2024-09-03T21:31:00.000Z (2 months ago)
- Last Synced: 2024-09-15T16:12:31.347Z (2 months ago)
- Topics: hep, high-energy-physics, particle-physics, qcd
- Language: C++
- Size: 271 KB
- Stars: 4
- Watchers: 5
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rundec-python
`CRunDec` is "a C++ program for the running and decoupling of the strong coupling constant and quark masses", developed by Florian Herren and Matthias Steinhauser. Relevant references:
- "Version 3 of RunDec and CRunDec",
Florian Herren, Matthias Steinhauser
[arXiv:1703.03751](https://arxiv.org/abs/1703.03751)
- "CRunDec: a C++ package for running and decoupling of the strong coupling and quark masses",
Barbara Schmidt, Matthias Steinhauser
[arXiv:1201.6149](https://arxiv.org/abs/1201.6149)
- "RunDec: A Mathematica package for running and decoupling of the strong coupling and quark masses",
K.G. Chetyrkin, Johann H. Kühn, M. Steinhauser
[arXiv:hep-ph/0004189](https://arxiv.org/abs/hep-ph/0004189)[Source code of CRunDec 3.1](https://www.ttp.kit.edu/preprints/2017/ttp17-011)
`rundec-python` is a Python package providing a thin wrapper around `CRunDec`.
## Installation
```bash
pip install rundec
```## Usage
The API is analogous to `CRunDec`, see [the documentation](https://arxiv.org/abs/1703.03751).
```python
import rundeccrd = rundec.CRunDec()
# compute alpha_s at the b quark mass scale with 3-loop accuracy
crd.AlphasExact(0.1185, 91.1876, 4.18, 5, 3)# compute the b quark pole mass using the 4-loop conversion from the MSbar mass without charm mass effects
crd.mMS2mOS(4.18, None, 0.26, 4.18, 5, 4)# compute the b quark pole mass using the 4-loop conversion from the MSbar mass with finite charm mass effects
mq = rundec.RunDecPairArray(4)
mcMS = rundec.RunDecPair()
mcMS.first = 0.993
mcMS.second = 3.
mq[0] = mcMS
crd.mMS2mOS(4.18, mq, 0.26, 4.18, 5, 4)# compute the b quark kinetic mass using the 3-loop conversion from the MSbar mass
mcMS = rundec.RunDecPair()
mcMS.first = 0.993
mcMS.second = 3.
crd.mMS2mKIN(4.163, mcMS, 0.225, 4.163, 1, 3, 1)
```## Technical details
The wrapper was generated with [SWIG](http://www.swig.org/).
Binary wheels are provided via [PyPI](https://pypi.python.org/pypi/rundec) for Linux, macOS, and Windows (built with [GitHub Actions](https://github.com/features/actions)).
The Windows wheels require Python 3.5+, on Linux and macOS Python 2.7+ is sufficient.