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.2.tar.gz (83.9 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.2-py3-none-any.whl (92.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: qicna-0.3.2.tar.gz
  • Upload date:
  • Size: 83.9 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.2.tar.gz
Algorithm Hash digest
SHA256 6b69916b8fed87cabb5138d5606cc8c98b02a599ef8a3f3d180c1b5d61bf5b65
MD5 08b6991c1e9e28eb0f7bacf83ed992a4
BLAKE2b-256 5b779d248cd9927d6b43b5293d6b9064aa21503b354864e44cfd1b2ab688ca69

See more details on using hashes here.

Provenance

The following attestation bundles were made for qicna-0.3.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: qicna-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 92.1 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 582f5ddad256b1dcecdd04a7e8125a9939e714e1a5b748df4d862f2601c73d3d
MD5 68eb5ea193e90f1b789806539f0e68ca
BLAKE2b-256 140344c187fd22dededb2fdde87f1363a52d54e1fe2e18cb899598b38ce622f9

See more details on using hashes here.

Provenance

The following attestation bundles were made for qicna-0.3.2-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