Skip to main content

Solar Radiative Transfer non-LTE forward-modeling code.

Project description

SolRaT

Documentation Homepage License PyPi Version Language Supported Platforms Coverage Status

SolRaT (Solar Radiative Transfer) is a flexible forward modeling code for non-LTE transfer of radiation in stellar atmospheres.

The code provides a three-level framework for modeling radiative transfer:

  1. Public API allows to run built-in RT models. Currently, SolRaT ships the non-LTE multi-term atom model (LL04) with multiple constant-slab atmosphere stratification.
  2. Modeling API allows to extend existing models or create completely new ones.
  3. SolRaT Engine introduces a meta-language that allows the user to write a human-readable code that directly resembles the underlying mathematical equations. The user does not need to focus on code optimization, as it is handled under the hood.

Key Features:

  • Physics: Solves non-LTE radiative transfer for multi-term atoms.
  • Magnetic Fields: Handles arbitrary magnetic field strengths (Zeeman, Hanle, Paschen-Back effects).
  • Atmosphere: Supports multi-slab atmospheres for height stratification under anisotropic illumination (ATL08, HAZEL2).
  • Flexibility: Provides a high-level meta-language allowing for writing code that directly resembles the underlying mathematical equations.
  • Accessibility: SolRaT is free, open-source, and platform-independent.
  • Performance: SolRaT uses high-performance libraries that leverage SIMD instruction sets.
  • Extensibility: A clear Modeling API allows for quick prototyping and model adjustments for specific contexts.

How to run:

  1. Install SolRaT from PyPi: pip install solrat
  2. Explore the demos and tests for usage examples.
  3. Explore the documentation.

Citing:

Journal article is pending. In the meantime, if SolRaT has found use in your research, please cite it as

Yakovkin I. I. SolRaT (2023) [computer software]. Retrieved from https://www.yakovkinii.com/solrat/

References:

[LL04] Landi Degl’Innocenti, E., & Landolfi, M. 2004, Polarization in Spectral Lines (Dordrecht: Kluwer)

[ATL08] Asensio Ramos, A., Trujillo Bueno, J., & Landi Degl’Innocenti, E. (2008). Advanced Forward Modeling and Inversion of Stokes Profiles Resulting from the Joint Action of the Hanle and Zeeman Effects. The Astrophysical Journal, 683(1), 542–565.

[HAZEL2] Link

Keywords:

Non-LTE, Stokes Profiles, Inversion, Synthesis, Paschen-Back, Hanle, Zeeman, Magnetic Fields, Sun, Solar Atmosphere, Radiative Transfer, Polarization, Spectral Lines, Two-Term Atom Model

Copyright (2023) Ivan I. Yakovkin

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

solrat-1.0.5.tar.gz (57.4 kB view details)

Uploaded Source

Built Distribution

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

solrat-1.0.5-py3-none-any.whl (77.9 kB view details)

Uploaded Python 3

File details

Details for the file solrat-1.0.5.tar.gz.

File metadata

  • Download URL: solrat-1.0.5.tar.gz
  • Upload date:
  • Size: 57.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for solrat-1.0.5.tar.gz
Algorithm Hash digest
SHA256 835f2293b42beea58d5c0171f1bb8c9958143a56f65a389c3fb17cfdb5da3276
MD5 a15185e4b1a9f0ec3af46a32aa15cd8d
BLAKE2b-256 998738ed2922d04d9f7cf44b10e9e78cf74e14d17b51d7a51afb5b51d00102d5

See more details on using hashes here.

Provenance

The following attestation bundles were made for solrat-1.0.5.tar.gz:

Publisher: publish.yml on yakovkinii/SolRaT

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file solrat-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: solrat-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 77.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for solrat-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 4b8a3e174f745a8a5919a2f6a9770ae0abdbd38bec3cce32cfce5f7b9178c6c6
MD5 6369e22e32ed8e11a28a6554174f172f
BLAKE2b-256 829cbffa5807fa625adcaab46eba056cd20709910c2f32702feab7593e8c3ff5

See more details on using hashes here.

Provenance

The following attestation bundles were made for solrat-1.0.5-py3-none-any.whl:

Publisher: publish.yml on yakovkinii/SolRaT

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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