Skip to main content

Python package to implement an ions scheme in the D-region to model the dynamics of ions and electrons during solar flares. This is currently a private repository while I develop it, but will be made public later on when it's ready

Project description

Coverage Status pre-commit Code style: black

Important

This model is available for academic purposes only. If you require any assistance, please contact us directly.

D-region ion scheme

This is the LIR-ACheM (Lower Ionosphere Region - Absorption & Chemistry Modelling) scheme.

This code works in three steps (more details are in the documentation):

  • The initialisation of the ionosphere
  • The modelling of the ionosphere from a varying forcing source
  • The computation of the HF absorption

This ion scheme is adapted from the six ions scheme from Mitra & Rowe, 1972.

Its main advantages compared to other more complex chemsistry schemes are:

  • It is much simpler and numerically efficient
  • It has been created for D-region dynamics during solar flares
  • All reaction rates are known since the actual species are specified (with the exception of cluster ions and light negative ions)

Please refer to the documentation for information on the scheme and the code used to implement it.

Documentation

The full documentation is found here.

Testing

To test the entire package, you can run

pytest

This is the minimal version to check that all tests are passed. If, however, you're developping your own branch of the repository, or if you want the coverage report, run:

pytest --cov=lir_achem --cov-report=xml:reports/coverage/coverage.xml
coverage html
genbadge coverage -o reports/coverage/coverage-badge.svg

This will create a full coverage report and a badge to display the new coverage

NOTE: Don't do this if you don't need this. It does take a few minutes to run all the tests.

History

Written by P. Teysseyre and C. Briand (LIRA, Observatoire de Paris, Université PSL, Sorbonne Université, Université Paris Cité, CY Cergy Paris Université, CNRS, Meudon, France) in October 2025 - February 2026

The associated paper is accepted for publication (Teysseyre & Briand, 2026, Atmospheres)

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

lir_achem-1.3.1.tar.gz (34.9 kB view details)

Uploaded Source

Built Distribution

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

lir_achem-1.3.1-py3-none-any.whl (36.0 kB view details)

Uploaded Python 3

File details

Details for the file lir_achem-1.3.1.tar.gz.

File metadata

  • Download URL: lir_achem-1.3.1.tar.gz
  • Upload date:
  • Size: 34.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for lir_achem-1.3.1.tar.gz
Algorithm Hash digest
SHA256 6ea489abf28587b04c1a216d74d0860e730fd17668d88f34b5c8a2a68626d831
MD5 27eb02bae4145bccb930ba11c4ca09dd
BLAKE2b-256 9541526319336a958cbe66410479021f3a0f39ad3c9e58183eefdbc3f67242de

See more details on using hashes here.

File details

Details for the file lir_achem-1.3.1-py3-none-any.whl.

File metadata

  • Download URL: lir_achem-1.3.1-py3-none-any.whl
  • Upload date:
  • Size: 36.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.0

File hashes

Hashes for lir_achem-1.3.1-py3-none-any.whl
Algorithm Hash digest
SHA256 deca92896d85c3d687d5a2279d778f0837c7153f79615db2056572e2167f1192
MD5 3d118b98831070b25fd038c0e4cab82c
BLAKE2b-256 5b4485860c314e01a47592a6575b785b2c9cab0a671d0d0b5dbddfa9d88ac005

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