Skip to main content

Quasi-isodynamic Stellarator Construction

Project description

About pyQIC

pyQIC is a python package for generating quasi-isodynamic stellarator configurations using an expansion about magnetic axis. pyQIC is written in pure python. This makes pyQIC user-friendly, with no need for compilation. though it is slower.

This code implements the equations derived by Garren and Boozer (1991) for MHD equilibrium near the magnetic axis.

Requirements

pyQIC has minimal dependencies - it requires only python3, numpy, scipy, matplotlib. If you don't already have numpy, scipy and matplotlib, they will be installed automatically by the pip install step in the Run the Code section.

USEFUL LINKS

If you need more help regarding near-axis stellarators, you can check the documentation for the quasi-symmetric version of pyQIC: click here

INSTALLATION

To install the code you will need to follow the steps bellow:

First of all you need to copy the folders and the files with the "git clone" command followed by the github repository's link. Example:

git clone https://github.com/rogeriojorge/pyQIC.git

Then, install the package to your local python environment with:

cd pyQIC
pip install -e .

Then you also need to install the librarys below:
numpy
scipy
matplotlib

Example:

pip install numpy scipy matplotlib

RUN THE CODE

To run this code you will need to use your Python and insert the following command:

from qic import Qic
stel = Qic.from_paper('r2 section 5.2')

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

qicna-0.3.4.tar.gz (84.1 kB view details)

Uploaded Source

Built Distribution

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

qicna-0.3.4-py3-none-any.whl (92.3 kB view details)

Uploaded Python 3

File details

Details for the file qicna-0.3.4.tar.gz.

File metadata

  • Download URL: qicna-0.3.4.tar.gz
  • Upload date:
  • Size: 84.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for qicna-0.3.4.tar.gz
Algorithm Hash digest
SHA256 fd5de330062b3fe9c7f1f99f88942ab555b6c975b8cd3f3c8a2b832ec4001b52
MD5 73dd604f15986ea35ac4272e680dd266
BLAKE2b-256 afd1c6845f16ad9045faf85d034d097ad3b511bf86f69d5055007e9a0b995c8a

See more details on using hashes here.

Provenance

The following attestation bundles were made for qicna-0.3.4.tar.gz:

Publisher: pypi.yml on rogeriojorge/pyQIC

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

File details

Details for the file qicna-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: qicna-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 92.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for qicna-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 71a8811744b5fcef66965ee894a45482c48b7aacca6c3a05a333c41eff6b7f57
MD5 48dbbf03668154aecf516f037eced446
BLAKE2b-256 2fe2dc7e347bb9e9e5be98bd70129f4481cf080b7ef475a3367286e1e098a3cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for qicna-0.3.4-py3-none-any.whl:

Publisher: pypi.yml on rogeriojorge/pyQIC

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