Stellarator Optimization Package
Improvements
Like the original package, but with bounce integrals as well as all the improvements in this fork.
A list of papers which feature DESC can be found here.
Quick Start
The easiest way to install DESC is from PyPI: pip install desc-v2
For more detailed instructions on installing DESC and its dependencies, see Installation.
The best place to start learning about DESC is our tutorials:
Basic fixed boundary equilibrium: running from a VMEC input, creating an equilibrium from scratch
Advanced equilibrium: continuation and perturbation methods.
Free boundary equilibrium: vacuum and or finite beta with external field.
Using DESC outputs: analysis, plotting, saving to VMEC format.
Basic optimization: specifying objectives, fixing degrees of freedom.
Advanced optimization: advanced constraints, precise quasi-symmetry, constrained optimization.
Near axis constraints: loading solutions from QSC/QIC and fixing near axis expansion.
Coil optimization: “second stage” optimization of magnetic coils.
For details on the various objectives, constraints, optimizable objects and more, see the full api documentation.
If all you need is an equilibrium solution, the simplest method is through the command line by giving an input file specifying the equilibrium and solver options, this way can also can also accept VMEC input files.
The code is run using the syntax desc <path/to/inputfile> and the full list of command line options are given in Command Line Interface. (Note that you may have to prepend the command with python -m)
Refer to Inputs for documentation on how to format the input file.
The equilibrium solution is output in a HDF5 binary file, whose format is detailed in Outputs.
Repository Contents
desc contains the source code including the main script and supplemental files. Refer to the API documentation for details on all of the available functions and classes.
docs contains the documentation files.
tests contains routines for automatic testing.
publications contains PDFs of publications by the DESC group, as well as scripts and data to reproduce the results of these papers.
Contribute
Metadata
Release files for desc-v2 1.18.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| desc_v2-1.18.2.tar.gz | 2.4 MB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| desc_v2-1.18.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 4.6 MB
Release files / desc_v2-1.18.2.tar.gz
| Download URL | desc_v2-1.18.2.tar.gz |
|---|---|
| Size | 2.4 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
081391980f728d6f0c61589777975531a1bfd567042c1805a2bd4fed1dc861db
|
|
BLAKE2b-256 checksum How to use checksums |
54336d6f196103b90edf7ac50d6937ee4cbf5274ead3f140716c6738c119182b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 31, 2026.
Transparency logRelease files / desc_v2-1.18.2-py3-none-any.whl
| Download URL | desc_v2-1.18.2-py3-none-any.whl |
|---|---|
| Size | 2.2 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9fa8fd2774afca1fab1613d682a82ff30063ad10488bbf46c0a733c2d7960da1
|
|
BLAKE2b-256 checksum How to use checksums |
b8bc1e9087d837d476882dd3cd980f7eb92d8675e03e598775990340b5ecce66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Jul 31, 2026.
Transparency log