Skip to main content

Python module for an easy work with a tokamak plasma equilibrium.

Project description

PLEQUE - PLasma EQUilibrium Enjoyment module [pleɪɡ]

GitHub py3comp

Python module for the simple manipulation with the tokamak plasma equilibrium. For more information see the documentation at https://pleque.readthedocs.io.

Note: The work is still in the early development stage and pleque probably contains bugs. You are very welcome to put a your wishes, found bugs or any other comment as an issue. There also may occur minor changes in code structure before 0.1.0 release.

Getting Started

Prerequisites

The prerequisites should be maintained by pip.

python>=3.5
numpy
scipy
shapely
scikit-image
xarray
pandas
h5py
omas

Installing

From PyPI (https://pypi.org/project/pleque/):

pip install --user pleque

or use the unstable experimental release (probably with more fixed bugs):

 pip install --user -i https://test.pypi.org/simple/ pleque

or clone/copy the github repository and run

git clone https://github.com/kripnerl/pleque.git
cd pleque
pip install --user .

Examples

from pleque.io import readers
import matplotlib as plt

eqdsk_filename = "path_to_my_gfile.gfile"
# Create instance of `Equilibrium` class
eq = readers.read_geqdsk(eqdsk_filename)

# plot simple overview of the equilibrium:
eq.plot_overview()

Some other examples can be found as notebooks in the notebooks folder or in the examples directory.

Version

0.0.3

Authors

See also the list of contributors who participated in this project.

License

This project is licensed under the MIT License - see the LICENSE file for details

Related projects

  • FreeGS - Free boundary Grad-Shafranov solver in Python
  • OMFIT is an integrated modeling and experimental data analysis software for magnetically confined thermonuclear fusion experiments. The goal of OMFIT is to enhance existing scientific workflows and enable new integrated modeling capabilities. To achieve these goals OMFIT adopts a bottom-up collaborative development approach.
  • OMAS (Ordered Multidimensional Array Structure) is a Python library designed to simplify the interface of third-party codes with the ITER Integrated Modeling and Analysis Suite (IMAS) . ITER IMAS defines a data model, a data get/put API, and a data storage infrastructure used for manipulating ITER data.

References

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

pleque-0.0.3b5.tar.gz (5.1 MB view details)

Uploaded Source

Built Distribution

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

pleque-0.0.3b5-py3-none-any.whl (5.1 MB view details)

Uploaded Python 3

File details

Details for the file pleque-0.0.3b5.tar.gz.

File metadata

  • Download URL: pleque-0.0.3b5.tar.gz
  • Upload date:
  • Size: 5.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.6

File hashes

Hashes for pleque-0.0.3b5.tar.gz
Algorithm Hash digest
SHA256 1931d94dfb0b61724b4d50d3d37dea3467cafb510f9b3dc7ce33889da82c9110
MD5 c1c51cf37a374edb3d1e140e51291592
BLAKE2b-256 dfa5b5253fc49e4091eba8a91b59aa5fb3b0d21345428bceae223dd63b057b19

See more details on using hashes here.

File details

Details for the file pleque-0.0.3b5-py3-none-any.whl.

File metadata

  • Download URL: pleque-0.0.3b5-py3-none-any.whl
  • Upload date:
  • Size: 5.1 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.5.6

File hashes

Hashes for pleque-0.0.3b5-py3-none-any.whl
Algorithm Hash digest
SHA256 f7d39f9a935e4a301b9b811042ab210677c93faa409dc4a62f08fd59517d80aa
MD5 8c8955a2d2fc404f3f920e4dd14ff65b
BLAKE2b-256 2cd7a5ec9de5f6bdd051f9bcc996743fd872c3d834643d0d3fbb2ca1bdaf9f03

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