Atomic model for hydrogen recombination lines.
Project description
HyLight
HyLight (HYdrogen recombination LIne emission from ionized Gas in varying tHermal condiTions) calculates the level population of the excited states in atomic hydrogen and hence the typical recombination line emissivity. The results are accurate under typical photoionised nebular conditions.
Installation
The package can be installed via
pip install hylightpy
Example usage
To import the package, type
import hylightpy
Then initialise the class using
HI = hylightpy.HILevelPopulations(nmax = 10, verbose=True, caseB=True,
recom=True, coll=False,
cache_path='./cache/')
where the user specify the number of levels in the hydrogen atom, the Case, and whether to include radiative processes and collisional processes. The user also have the freedom to specify the cache folder path, which will be storing cascade matrix elements.
Then call the function above to compute the level popualtion density. We use 3p state as an example (n = 3, l = 1):
HI.ComputeLevelPop(ne=1e2, nHI=1e-5, nHII=1e2, LogT=4., n=3, l=1)
Here, the user has to provide electron, HI and HII densities as well as the temperature.
More examples can be found in the examples/ folder.
Method
The method is described in Liu et al. 2025.
License
This package is released under the permissive MIT license.
How to cite?
If you use this code in your work, we kindly ask you to cite Liu et al. 2025.
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 hylightpy-0.0.8.tar.gz.
File metadata
- Download URL: hylightpy-0.0.8.tar.gz
- Upload date:
- Size: 11.3 MB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c99beb83df19beb911ac4bef73548d88d6b186de3711f2c0e15f740076b4de46
|
|
| MD5 |
2b4cd00b867a8b50b99cd90190a32d9e
|
|
| BLAKE2b-256 |
6ee16d4a8450a1608743d3fd55118780e6a746a19f9b4791a027bcb465f31601
|
File details
Details for the file hylightpy-0.0.8-py3-none-any.whl.
File metadata
- Download URL: hylightpy-0.0.8-py3-none-any.whl
- Upload date:
- Size: 11.5 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b045bc5ca83538caa2b0c27871f98dddf1e836c1dab543f4a728c87f1820b2a4
|
|
| MD5 |
64529a4e5bd54dc467950d4352a8868e
|
|
| BLAKE2b-256 |
1cc7198270b3278764c0d682c8990132c6fdaa05e90f0e3ddf46b57169774a2d
|