Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hylightpy-0.0.9.tar.gz (11.3 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hylightpy-0.0.9-py3-none-any.whl (11.5 MB view details)

Uploaded Python 3

File details

Details for the file hylightpy-0.0.9.tar.gz.

File metadata

  • Download URL: hylightpy-0.0.9.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

Hashes for hylightpy-0.0.9.tar.gz
Algorithm Hash digest
SHA256 74ad7e5810f9ebb54707e2de676ce709843adb95951c64fc76e6a0ee6663c93a
MD5 0c989072da3ce2f81297855f07d3f515
BLAKE2b-256 4ffd4a5b38c6e50b6b4a7abfd95daa45e331931970d37d170010657fec3f196f

See more details on using hashes here.

File details

Details for the file hylightpy-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: hylightpy-0.0.9-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

Hashes for hylightpy-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 d38ed6931f494b611b3471f1781f8d8fe4a66e97c2e76f67cf0f8d6ada6e8482
MD5 fa831b2ebac29664e553ad7e63a67642
BLAKE2b-256 30f35dbfd4d6e10955aaa03192b0c54a73cba0a88028230e32406bb3d48b9b08

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page