A plasma global model in python
Project description
Introduction to PyGMol
PyGMol (the Python Global Model) is a simple-to-use 0D model of plasma chemistry.
At its current form, the pygmol package defines the system of ordinary differential equations (ODE) which govern the plasma chemistry, and solves them using the scipy.integrate.solve_ivp solver. Quantities resolved presently by the pygmol model are the densities of all the heavy species specified by the chemistry input, electron density, and electron temperature (while heavy-species temperature is treated as a parameter to the model).
The equations being solved for by the model are documented in their full form in the equations document. The package inner workings, structure and some useful examples are discussed in the documentation. For further info, refer to the codebase docstrings.
Installation:
The pygmol package can be installed either from PyPI
python3 -m pip install pygmol
or from the GitHub page
python3 -m pip install git+https://github.com/hanicinecm/pygmol.git
For Developers:
It goes without saying that any development should be done in a clean virtual environment. After cloning or forking the project from its GitHub page, pygmol can be installed into the virtual environment in the editable mode by running
pip install -e .[dev]
The [dev] extra installs (apart from the package dependencies) also several development-related packages, such as pytest, coverage, ipython, or black. The unit tests can then be executed, as well as the suite of run tests and documentation tests, by running (from the project root directory)
pytest [--cov]
pytest run_tests
pytest docs
respectively.
The project does not have the requirements.txt file by design, as all the package dependencies are rather handled by the setup.py. The package therefore needs to be installed locally to run the tests, which grants the testing process another layer of usefulness.
Docstrings in the project adhere to the numpydoc styling. The project code is formatted by black.
For anyone interesting in further development of pygmol, this is where one might start.
A note on version numbering: Following the major.minor.micro versioning convention, the minor version should be increased, if the document describing the maths behind the equations requires an update. The micro version increases are reserved for any other non-breaking changes, such as documentation updates, some minor api tweaks, etc. And the major version? You tell me, I have no plan as where to go with it…
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
File details
Details for the file pygmol-1.1.2.tar.gz
.
File metadata
- Download URL: pygmol-1.1.2.tar.gz
- Upload date:
- Size: 29.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 719c7a51e8d0cd2887c8de1a8a5d1bd132207426230036dffd5af294eb1e8580 |
|
MD5 | a71c2a01707a73f76c4bcd246511ac0d |
|
BLAKE2b-256 | 4e6898888afe4acf8819c584d158e21c18dcb93b41b1073767d94189bb4975e4 |
File details
Details for the file pygmol-1.1.2-py3-none-any.whl
.
File metadata
- Download URL: pygmol-1.1.2-py3-none-any.whl
- Upload date:
- Size: 29.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.11.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f12717050d9273e24f6f4617a9db204d0cb36c89a8451eaa31e43f048805ed4e |
|
MD5 | 49269ab0ab86a9900c9ebc04e4b40cad |
|
BLAKE2b-256 | 140f47ab379ce85f7b26549a7de2adf5533fb6c902bd6d3cc8fbdeee19e97eb4 |