A code for modeling spinning dust radiation
Project description
SpyDust
SpyDust is an advanced Python package for modeling spinning dust radiation in astrophysical environments. Building upon previous models (the IDL SPDUST), SpyDust offers enhanced capabilities and corrections, making it a valuable tool for researchers in astrophysics and related fields.
Features
-
Comprehensive Grain Shape Modeling: Considers a wide range of grain geometries, providing corresponding grain dynamics, directional radiation fields, and angular momentum transports.
-
Updated Physical Processes: Incorporates corrections and extensions, including updated expressions for the effects of electrical dipole radiation back-reaction and plasma drag on angular momentum dissipation.
-
Parallisation: Functions can be run in parallel (implemented by mpi4py) by simply setting the corresponding keyword to True.
-
SPDUST as is mode: Provides a submodule, SPDUST_as_is, which is exactly the full equivalent of the IDL spdust. Just in case the user wants to stick with the spdust simulation.
-
Example notebooks: Provide some Jupyter notebooks to help users get started with this software package paper.
Requirements
SpyDust requires Python 3.7 or higher (up to Python 3.9) and the following dependencies:
numpy <= 2.0scipynumbaloggingmpi4pypandas
Installation
You can install SpyDust using pip:
pip install SpyDust
Usage
Import the package in your project and explore its functionalities for modeling spinning dust radiation. Data files required for computations are bundled with the package.
Example usage:
Resources
- Author: Zheng Zhang
- License: MIT License
- Paper: https://arxiv.org/abs/2412.03431 (Z Zhang and J Chluba 2024)
History
- Version 1.0.0: Initial release of SpyDust, introducing comprehensive grain shape modeling, updated physical processes, and degeneracy analysis tools.
TODO (Future Versions)
- Get rid of numba. Use jax instead.
- Future upgrades will include features such as the SED fitting tool (based on perturbation statistics tools like moment expansion) and improve the treatment of the grain rotation distribution.
Resources
- Author: Zheng Zhang
- License: MIT License
- Collaboration: SpyDust GitHub Collaboration
- ** Spdust Documentation**: We refer users to the website of spdust for better documentation of environmental parameters
License
This project is licensed under the MIT License - see the LICENSE file for details.
For a detailed understanding of the underlying models and theoretical background, refer to the publication: SpyDust: an improved and extended implementation for modeling spinning dust radiation.
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
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 spydust-1.0.0.tar.gz.
File metadata
- Download URL: spydust-1.0.0.tar.gz
- Upload date:
- Size: 1.8 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
28002f10ae3cb2d5532dcb7d9a02e6a5eb95bcdf1e8786ea3ccb48f0ddd4232c
|
|
| MD5 |
06fbf5d94586dd95397d26ad8324a8a6
|
|
| BLAKE2b-256 |
736813600d381e801ff186a1d8029a7e2815bb93f3e872bc79d9b3373046bfb2
|
Provenance
The following attestation bundles were made for spydust-1.0.0.tar.gz:
Publisher:
python-publish.yml on SpyDust/SpyDust
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spydust-1.0.0.tar.gz -
Subject digest:
28002f10ae3cb2d5532dcb7d9a02e6a5eb95bcdf1e8786ea3ccb48f0ddd4232c - Sigstore transparency entry: 158765761
- Sigstore integration time:
-
Permalink:
SpyDust/SpyDust@eb21479de239c563e7b85c3f8081b34b12106ad5 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/SpyDust
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@eb21479de239c563e7b85c3f8081b34b12106ad5 -
Trigger Event:
release
-
Statement type:
File details
Details for the file SpyDust-1.0.0-py3-none-any.whl.
File metadata
- Download URL: SpyDust-1.0.0-py3-none-any.whl
- Upload date:
- Size: 1.8 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.0.1 CPython/3.12.8
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3decd4de1f17959ef1d9749fb6ecdfe7dae0c68dd594b5c76cba7e33ae6344cd
|
|
| MD5 |
dd41226e953cc25eb589e933767ce2f8
|
|
| BLAKE2b-256 |
8d77275a9c783cc931d4f4385f7fadedd1535f0f0555b2947f619f071da2e628
|
Provenance
The following attestation bundles were made for SpyDust-1.0.0-py3-none-any.whl:
Publisher:
python-publish.yml on SpyDust/SpyDust
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
spydust-1.0.0-py3-none-any.whl -
Subject digest:
3decd4de1f17959ef1d9749fb6ecdfe7dae0c68dd594b5c76cba7e33ae6344cd - Sigstore transparency entry: 158765762
- Sigstore integration time:
-
Permalink:
SpyDust/SpyDust@eb21479de239c563e7b85c3f8081b34b12106ad5 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/SpyDust
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@eb21479de239c563e7b85c3f8081b34b12106ad5 -
Trigger Event:
release
-
Statement type: