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. It is similar to pyQSC but does not assume quasisymmetry.

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

Installation from pypi can be done via

pip install qicna

To install the code locally, you can run

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 in your local Python environment with:

cd pyQIC
pip install -e .

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

Example:

pip install numpy scipy matplotlib

RUN THE CODE

To run this code, you will need to use 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.6.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.6-py3-none-any.whl (92.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for qicna-0.3.6.tar.gz
Algorithm Hash digest
SHA256 66289a36ce33905cbc3f6ef06d6e6024ac3b92f6d7069bb375eb7551c2cd3e6a
MD5 3488745c6f20c699e7a1d7a1a9a3ef78
BLAKE2b-256 175d8af9edb7f63bfd81efc281b663beb6b9de646b182e61d892639fbbd81900

See more details on using hashes here.

Provenance

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

File metadata

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

File hashes

Hashes for qicna-0.3.6-py3-none-any.whl
Algorithm Hash digest
SHA256 c51e99b4f7770ed0d074cbce401a900b8bcbfb9470e716d9d1284576e997794a
MD5 847ee3d2a1232fe545c6ee1a8b0fb30a
BLAKE2b-256 1cd5fbb651dfae784a04735e8eab40e883bdc557923128035b1daad96d0e6cfd

See more details on using hashes here.

Provenance

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