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.HIAtom(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.compute_level_pop(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.11.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.11-py3-none-any.whl (11.5 MB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hylightpy-0.0.11.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.11.tar.gz
Algorithm Hash digest
SHA256 458dc52141469c1095d4f66fde4e577df9812b45f3cd545e7e470a22a8bb3db8
MD5 dcce1f7bab26d48c5b65135ffa0b9cb8
BLAKE2b-256 3848c7f4df16a33da7b9904e4b7fcc7cf93184057e467b4d7419bc8d74299316

See more details on using hashes here.

File details

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

File metadata

  • Download URL: hylightpy-0.0.11-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.11-py3-none-any.whl
Algorithm Hash digest
SHA256 adaa1869a1905d6bb8559fb4b1932b067b767f51fb0fb41c622161f024b4198a
MD5 2aae72ab0945f328d18c514742971bda
BLAKE2b-256 3ff734814d8869af62c0f2050d0c405fce36703b7255644841be34f357d8ae6f

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